Mitsubishi — 9.5 O Pointers/M-codes

Chapter 9 Multiaxial Interpolation  M-codes Description:  M102 indicates the end of O100, and M02 indicates the end of a motion subroutine. Users should avoid using M102 and M02.  M-codes are used in Ox motion subroutines, If an M-code is executed, the M-code will be stored in SR703, and SM1050 will be automatically set to ON. If SM1050 is OFF, the execution of an M-code is complete.  If an M-code is executed, SM1050 will be ON, and the M-code will be stored in SR703. Users can set control conditions in O100 by means of this character.  When M50 is executed, Y0.8 is ON. The execution of M50 will be complete after one second. O100 is shown below.  M codes can be used in two modes.

If an M-code forms a line, it is used in after mode. If an M-code is in back of a motion instruction, it is used in with mode. The difference is described below.  After mode: An M-code forms a line. M100 Timing diagram: The execution of G01 is complete. G01 M100 SM1050 After G01 is executed, the M-code M100 will be started automatically, and SM1050 will be automatically turned ON. If users want to stop M100, they have to turn SM1050 OFF. If they want to start the M-code again, they can create a program that starts the M-code again. 9-23 Instruction code Operand Function M0~M65535 None M-code instructions G01 X500.0 Y300.0 F5000