12 - 81 
MELSEC-Q
12   CONTROL SUB FUNCTIONS 
 
(2)   AFTER mode 
The M code ON signal (X4, X5, X6, X7) is turned ON 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.44 M code ON/OFF timing (AFTER mode) 
 
[2]   M code OFF request 
When the M code ON signal (X4, X5, X6, X7) is ON, 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 
1 
Axis 
2 
Axis 
3 
Axis 
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 follows if the M code ON signal is 
not turned OFF. (The processing differs according to the "
Da.1
 Operation 
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. If the M code is set to 
the next positioning data, a warning "M codeON signal ON start" 
(warning code: 503) will occur. (Refer to Fig. 12.43.)