470
7
7 Motion Control7.3 Execution and Call of Motion Control Subprogram
b) Creating and calling an MC subprogram
Creating an MC subprogram: Right-click Program Block and choose Insert MC Subprogram (M).
Motion control
subprogram
label set
Motion control
subprogram enable
After an MC subprogram is created, run an MC instruction to program the MC subprogram. The MC
instruction connects the bus.
X-axis inverted
compensation
enable
Y-axis inverted
compensation
enable
Z-axis inverted
compensation
enable
Calling an MC subprogram: The MC subprogram can be called in the main program or a subprogram by
setting the MC number in SD90 and setting SM90 to ON.