APPENDICES
(5) Create the Motion SFC program to start synchronous control.
(Executed after home position return completion)
sync_ax1
[F0]
SET M2042 //All axes servo ON
[G0]
M2415*!M2001
//Axis 1 servo ready ON, start accept flag OFF?
[F1]
SET M12000 //Axis 1 Synchronous control start
[G1]
M100*M10880
//M100 ON and axis 1 during synchronous control?
[F2]
D14692L=72000000 //Command generation axis
//JOG speed=72000.000degree/min
SET M11022 //Command generation axis 4
//forward rotation JOG ON
[G2]
!M100 //M100 OFF? (Synchronous control stop)
[F3]
RST M11022 //Command generation axis 4
//forward rotation JOG OFF
[G3]
!M9870 //Command generation axis 4
//start accept flag OFF?
[F4]
RST M12000 //Axis 1 synchronous control stop
[G0]
M2415*!M2001
//Axis 1 servo ready ON, start accept flag OFF?
END
APP - 42