7 - 2
7 AUXILIARY AND APPLIED FUNCTIONS
(c) When the M-code is read at positioning completion, use the positioning
complete signal (M2401+20n) as the read command.
At the position control or speed control
Dwell time
Storage of setting M-code No.
M-code
Positioning complete
signal (M2401+20n)
Start accept flag (M2001+n)
Servo program start
PLC ready flag (M2000)
OFF
ON
OFF
OFF
OFF
ON
ON
ON
t
V
Positioning start complete
signal (M2400+20n)
At the speed switching control
t
P3 (Stop)
P2 (Speed-switching point)
P1 (Speed-switching point)
V
OFF
OFF
OFF
Positioning start complete
signal (M2400+20n)
Start accept flag (M2001+n)
Servo program start
PLC ready flag (M2000)
ON
ON
ON
ON
Storage of setting M-code No.
M-code
Positioning complete
signal (M2401+20n)
OFF
(3) Resetting of M-codes
M-codes can be reset by setting of the M-code output devices to zero.
Use this method during positioning control to perform operations unrelated to the
servo program, such as when it has been difficult to output the M-code during the
previous positioning control.
However, M-code is set55 during the speed switching control or constant-speed
control, the M-code output of the servo program takes priority.