
Chapter 9 Functions
9-171
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 : 1 ~ 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
M code mode
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.
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
Time
ON
Time
Start command
In operation
ON
Positioning
complete
0
M code no.
ON
Dwell time
M code ON
ON
0
M code release
m
ON
Time
ON
Time
Start command
In operation
ON
Positioning
complete
0
M code no.
ON
Dwell
time
M code ON
ON
0
M code release
m
ON
1 : With mode
2 : After mode
Summary of Contents for XBF-PN04B
Page 1: ...Programmable Logic Controller Positioning Module EtherCAT XGB Series XBF PN04B XBF PN08B ...
Page 626: ...Chapter 9 Functions BPS37 setup RS232 and PC connection BPS37 option board LED 9 193 ...
Page 796: ...Appendix3 Dimension A3 1 Appendix 3 Dimension Appendix 3 1 Dimension of XBF PN04B PN08B ...