Programming #CYL [EDGES.. OPEN..]
Open edges
This extension permits the user to define 2 edges between which the profile is opened.
Notice
The kinematic parameters in ID 79 must be set for this machining type.
Syntax to select open profiled tube machining:
Syntax: | |
#CYL [ EDGES=.. ROUNDING=.. LENGTH1=.. [LENGTH2=.. ] [ OPEN=.. CLOSE=.. ] ] | modal |
EDGES=.. | Number of edges (corners) of the closed profiled tube, positive integer. The number of profile edges is limited to minimum 3 and maximum 16. |
ROUNDING=.. | Edge rounding radius (corner radius), [mm, inch]. |
LENGTH1=.. | Side length for symmetrical tubes or first side length for rectangular tubes, [mm, inch] |
LENGTH2=.. | Second side length for rectangular tubes, [mm, inch] |
OPEN=.. | Number of the edge [ 1; <EDGES>] where the workpiece is open. Ascending number in lateral surface projection (positive UPCS direction). |
CLOSE=.. | Number of the edge [ 1; < EDGES>] where the workpiece closes again (positive UPCS direction). |
Syntax to deselect open profiled tube machining:
Syntax: | |
#CYL OFF | modal |
Programing Example
Programming #CYL [EDGES.. OPEN..]
…
N3 U0 X0
N4 #CYL [EDGES=4 ROUNDING=5 LENGTH1=60 LENGTH2=45 OPEN=1 CLOSE=2]
N5 G01 G91 X10 F5000
Notice
To determine the edge numbers for 'OPEN' and 'CLOSE', start with '1 PCS' in the positive PCS direction (clockwise, CW) from 'OPEN' to 'CLOSE' across the profile. This ensures that all profiled parts between 'OPEN' and 'CLOSE' are in the open range.
OPEN=1 / CLOSE=2: -> U open right
OPEN=3 / CLOSE=4 -> U open left
OPEN=1 / CLOSE=3: -> L open right
OPEN=2 / CLOSE=4: -> L open right
Attention
It is only possible to select profile machining if a closed profile edge is orientated towards the tool when the rotating axis is in zero position.
For example the following command is not permitted:
#CYL [EDGES=4 ROUNDING=5 LENGTH1=60 OPEN=4 CLOSE=1]
Notice
If it is necessary to cross an open profile edge to the adjacent surface (e.g. if the path to the new target position is shorter), deselect the profile transformation (#CYL OFF) or possibly retract the tool, reposition the rotating axis and repeat selection of the profile transformation with #CYL [EDGES…].
Examples of open profiles
Programing Example
Profile transformation of square profile
(* Polygonal tube transformation, square tube, segmentation at circumference, *)
(* Absolute programming *)
(* Open profile *)
%L SUB_CONT
N[10+P30] G00 G90 X0 Z100 U0
N[20+P30] G162
P1=20 (* inner circle radius *)
P2=50 (* outer circle radius *)
P3=22.5
P4=2*P3
G261
$FOR P10=0, 8 , 1
P6=P10*P4
P7=SIN[P6]
P8=COS[P6]
N[40+P10] G01 X[P2*P8] U[P2*P7] F5000
P20=SIN[P3 + P6]
P21=COS[P3 + P6]
N[50+P10] G01 X[P1*P21] U[P1*P20] F5000
$ENDFOR
G260
M29
%prof_open_close_.nc
N10 #SLOPE [TYPE=STEP]
N20 G00 X0 Y0 Z100 U0
N25 #CONTOUR MODE[DEV PATH_DEV 2]
N65 G00 G90 Y0 U0
N70 #CYL[EDGES=4 ROUNDING=5 LENGTH1=20 LENGTH2=20 OPEN=2 CLOSE=3]
P30=2000
N80 LL SUB_CONT
N90 #CYL OFF
M30