7 AUXILIARY AND APPLIED FUNCTIONS
7.1 M-code Output Function
425
7
7
AUXILIARY AND APPLIED FUNCTIONS
This section describes the auxiliary and applied functions for positioning control in the Multiple CPU system.
7.1
M-code Output Function
M-code is a code No. between 0 and 32767 which can be set for every positioning control.
During positioning control, these M-codes are read using the Motion SFC program to check the servo program during
operation and to command auxiliary operations, such as clamping, drill rotation and tool replacement.
Setting of M-codes
M-code can be set using MT Developer2 at the creation and correction of the servo program.
Storage of M-code and read timing
• M-codes are stored in the M-code storage register of the axis specified with the positioning start completion and specified
points (continuous trajectory control). During interpolation control, the M-codes are stored in all axes which perform
interpolation control.
• When the M-code is read at the positioning start completion, use the "[St.1060] Positioning start complete (R: 32n/
Q: M2400+20n)" as the reading command.
• When the M-code is read at positioning completion, use the "[St.1061] Positioning complete (R: 32n/Q:
M2401+20n)" as the read command.
■
At the position control or speed control
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 set during the speed switching
control or continuous trajectory control, the M-code output of the servo program takes priority.
[St.1060] Positioning start complete
(R: 32n/Q: M2400+20n)
[St.1040] Start accept flag
(R: n/Q: M2001+n)
[Rq.1120] PLC ready flag
(R: M30000/Q: M2000)
[St.1061] Positioning complete
(R: 32n/Q: M2401+20n)
OFF
ON
M-code
Storage of setting M-code No.
OFF
ON
OFF
ON
OFF
ON
Servo program start
t
Dwell time
V
Summary of Contents for MELSEC iQ-R16MTCPU
Page 2: ......
Page 477: ...APPENDICES Appendix 1 Processing Times of the Motion CPU 475 A MEMO ...
Page 481: ......