program to turn the output signal No. 100 and No. 101 signals ON and OFF during the movement.
50mm/s
M_00=0 ‘ Turn synchronization flag OFF
Fine 0 ‘ Disable positioning pulse designation
Mvs P1 ‘ Move to wait position with linear interpolation
‘
PR1=(0, 0, 0, 0, 0, 0)(0, 0) ‘ Set the reference coordinate system for frame transformation
(PR1 to PR3)
PR2=(20, 0, 0, 0, 0, 0)(0, 0)
PR3=(0, 20, 0, 0, 0, 0)(0, 0)
PC1=(0, 40, 0, 0, 0, 0)(0, 0) ‘ Set the position of the transformed reference coordinate system
(PC1 to PC3)
PC2=(0, 60, 0, 0, 0, 0)(0, 0) ‘ (90-degree turn around Z axis in respect to pre-transformation,
PC3=(-20, 40, 0, 0, 0, 0)(0, 0) ‘ coordinate system moved 40mm in Y axis direction)
SetCalFrm PR1, PR2, PR3, PC1, PC2, PC3 ‘ Calculate and set coordinate system for frame transformation
‘
Fine 200
M_00=1
MvSpl 5, 50, 10, 2 ‘ Execute frame transformation on spline No. 5 path point
‘ and spline interpolation path 2
M_00=0
Fine 0
Mvs P1
End