12 - 60
MELSEC-
A
12 CONTROL AUXILIARY FUNCTIONS
12.7.3 M code output function
The "M code output function" is used to command auxiliary work (clamping, drill
rotation, tool replacement, etc.) related to the positioning data being executed.
When the M code ON signal [RXnD, RXnE] is turned ON during positioning execution,
a No. called the M code is stored in "Valid M code (RWrn+4, RWrn+12)".
These "Valid M code (RWrn+4, RWrn+12)" are read, and used to command auxiliary
work. M codes can be set for each positioning data. (Set in setting item "
Da.9 M
code" of the positioning data.)
The timing for outputting (storing) the M codes can also be set in the "M code output
function".
The details shown below explain about the "M code output function".
(1) M code ON signal output timing
(2) M code OFF request
(3) Precautions during control
(4) Setting the M code output function
(5) Reading M codes
(1) M code ON signal output timing
The timing for outputting (storing) the M codes can be set in the "M code output
function". (The M code is stored in "Valid M code (RWrn+4, RWrn+12)" when the
M code ON signal is turned ON.)
The following shows the two types of timing for outputting M codes: the "WITH"
mode and the "AFTER" mode.
(a) WITH mode
The M code ON signal [RXnD, RXnE] is turned ON at the positioning start,
and the M code is stored in "Valid M code (RWrn+4, RWrn+12)".
Valid M code
M code OFF request
Positioning start signal
BUSY signal
M code ON signal
Positioning
*
*
01 00
m1
m2
* m1 and m2 indicate set M codes.
Dwell time
V
t
OFF
OFF
OFF
ON
ON
Da. 1 Operation pattern
[RXn4, RXn5]
[RY(n+1)0, RY(n+1)1]
[RXnD, RXnE]
[RY(n+2)6, RY(n+4)6]
[RWrn+4, RWrn+12]
ON
OFF
ON
Fig. 12.37 M code ON/OFF timing (WITH mode)