12 - 67

MELSEC-Q
12 CONTROL SUB FUNCTIONS
(2) AFTER mode

The M code ON signal (X4, X5, X6, X7) is turned O N at the positioning

completion, and the M code is stored in " Md.25 Valid M code".

01 00
m1 m2
V
t
OFF
ON
OFF
OFF
ON
ON
00 1
Positioning start signal
BUSY signal
M code ON signal
Positioning
m1 and m2 indicate set M codes.
Md. 25 Valid M code
Da. 1 Operation pattern
Cd. 7 M code OFF request
[XC, XD, XE, XF]
[Y10, Y11, Y12, Y13]
[X4, X5, X6, X7]

Fig. 12.39 M code ON/OFF timing (AFTER mode)

[2] M code OFF request

When the M code ON signal (X4, X5, X6, X7) is O N, it must be turned OFF by

the sequence program.

To turn OFF the M code ON signal, set "1" (turn OFF the M code signal) in

"Cd.7 M code OFF request".

Buffer memory address
Setting item Setting
value Setting details Axis
1Axis
2Axis
3Axis
4
Cd.7 M code OFF
request 1 Set "1: Turn OFF the M code ON signal". 1504 1604 1704 1804
Refer to Section 5.7 "List of control data" for details on the setting details.

The next positioning data will be processed as f ollows if the M code ON signal is

not turned OFF. (The processing differs accord ing to the " Da.1 Opera tion

pattern".)

Da.1 Operation pattern Processing
00 Independent positioning control
(Positioning complete)
01 Continuous positioning control
The next positioning data will not be executed until the M code ON
signal is turned OFF.
11 Continuous path control The next positioning data will be executed, but a warning "M code
ON signal ON start" (warning code: 503) will occur.