Chapter 9 Functions
9-92
9.6.2 M code
This is used to confirm the current operation step no. and carry out the auxiliary work (Clamp, Drill rotation, Tool
change etc.) by reading M Code from the program.
(1) Characteristics of Control
(a) M code should be set in the M code item of operation data.(Setting range : 0 ~ 65535)
(b) If M code is set as “0”, M code signal will not occur.
(c) If M code occurs, M code no.(1 ~ 65535) and M code signal (On) will occur simultaneously.
(d) In case of Go-on operation mode, if M code no. and M code signal occur, it becomes standby for the next
step; if executing M code release command, it carries out Go-on operation to the next step without start
command.
(e) In continuous operation mode, even if M code no. and M code On signal occur, not to wait but execute
continuous operation to the next step.
(f) User may turn M code signal off and set M code no. to 0 with M code release command. M code release
command can be used even during operation.
(g) M code mode is set from M code output item of extended parameter. ( 0 : NONE, 1 : WITH, 2 : AFTER)
■ Related parameter setting (Extended parameter)
Items Setting value Description
0 : None Not to output M code signal and M code no.
1 : With
Start and turn M code signal on at the same time,
then output M code no. set in operation data.
M code mode
2 : After
After finishing positioning by start command, turn M
code signal on and then output M code no. set in
operation data.
(2) Operation timing