Programming example
Programing Example

Machining with static processing unit
The programming example below is conceived for one workpiece only. If all the workpieces are to be machined identically, an endless loop could be inserted before block N040 and after block N190. In this example, the linear conveyor started in line N020 is controlled by the CNC. This line is omitted if the linear conveyor is controlled externally.
In this program, blocks N130 - N160 represent the actual contour on the workpiece. If the contour depends on the current measurement, the position used there could be replaced by V.E. variables assigned by the PLC:
%
(- Home the axes )
N010 G74 Y1 C1
(- Start conveyor )
N020 S1[MC_MoveVelocity Velocity=100000 Acceleration=2000 Deceleration=2000 Jerk=750000 Direction=1]
N030 G0 G90 Y0 C0
(- Request spindle measured value)
N040 S1 [MC_TouchProbe Channel=1]
(- Synchronise with conveyor )
N050 #SYNC IN [CONVEYOR=S1, CONV_VEL=18000 FEED_CONT=0]
N060 G0 G90 X0 Y0 C0
(- Activate automatic tracking )
N070 #CAXTRACK ON [AX=C, ANGLIMIT 3, OFFSET 180, ROTMODE=1]
(- Feed rate is ignored and corresponds to the conveying velocity )
N080 F100
N090 #SPLINE TYPE BSPLINE
N100 #SPLINE ON
(- Start of tangential movement )
N110 G1 G90 X-0 Y0
N120 G1 G90 X-50 Y0
N130 G1 G90 X-200 Y-30
N140 G1 G90 X-350 Y30
N150 G1 G90 X-550 Y0
(- End of tangential movement )
N160 G1 G90 X-600 Y0
N170 #SPLINE OFF
N180 #SYNC OUT [FEED_CONT=5]
N190 X[INDP_SYN G0 G90 POS0 INTERRUPTIBLE] Y[INDP_SYN G0 G90 POS0 INTERRUPTIBLE]
N200 #CAXTRACK OFF
N210 M30