99
2
3
4
5
6
7
8
3.3
Indexing
(b) Performing indexing with the CALL instruction
Pulses can be output with the CALL instruction by use of the edge relay (V). However, pulse output using the PLS/
PLF/pulse ( P) instruction is not allowed.
[When edge relay is used]
[When edge relay is not used]
(M0Z1 provides normal pulse output.)
(M0Z1 does not provide normal pulse output.)
(c) Device range check during indexing
1) Basic model QCPU, High Performance model QCPU, Process CPU, and Redundant CPU
Device range checks are not conducted during indexing.
Therefore, when the data after index modification exceed the user specified device range, the data is written to
another device without causing an error.
(Note, however, that when the data after index modification is written to the device for system use exceeding the
user specified device range, an error occurs. (Error code: 1103))
Take extra precaution when using indexing in programming.
2) Universal model QCPU and LCPU
The device range is checked for indexing.
With changing the settings of the PLC parameter, the device range is not checked.
(d) Changing indexing with 16-bit index register for indexing with 32-bit index register
For changing indexing with 16-bit index register for indexing with 32-bit index register, check if the program has
enough spaces for indexing.
For indexing with 32-bit index registers, the specified index register (Zn) and the next index register of the specified
register (Zn+1) are used. Be sure not to overlap index registers to be used.
SM400
Z1
K0
MO
V
P0
CALL
SM400
Z1
K1
MO
V
P0
CALL
X0Z1
M0Z1
V
0Z1
FEND
RET
P0
SM400
Z1
K0
MO
V
P0
CALL
SM400
Z1
K1
MO
V
P0
CALL
X0Z1
FEND
RET
P0
M0Z1
PLS