C h a p t e r 9 M u l t i a x i a l I n t e r p o l a t i o n
M-codes
Instruction code
Operand
Function
M0~M65535 None
M-code instructions
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 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
G01
X500.0
Y300.0
F5000
Timing diagram:
M100
G01
SM1050
Th e e xecu tio n o f G0 1 is comp le te .
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 - 2 3
Summary of Contents for AH500
Page 9: ...viii...
Page 53: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Yaskawa servo drive 2 32...
Page 55: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Fuji servo drive 2 34...
Page 115: ...AH500 Motion Control Module Manual 4 16 MEMO...
Page 375: ...AH500 Motion Control Module Manual 5 260 MEMO...
Page 383: ...AH500 Motion Control Module Manual 6 8 MEMO...
Page 419: ...AH500 Motion Control Module Manual 7 36 MEMO...
Page 436: ...Chapter 8 Electronic Cam 8 17...
Page 483: ...AH500 Motion Control Module Manual 10 8 MEMO...
Page 505: ...AH500 Motion Control Module Manual 12 8 MEMO...
Page 515: ...AH500 Motion Control Module Manual 13 10 MEMO...
Page 544: ...Appendix A Error Code Table Table of Contents A 1 Error Code Table A 2 A 1...