Specifications

4.6 Index Setting
4-53
4
PROGRAM
CONFIGURATION
(6) Precautions
(a) Using the index setting for arguments of instruction/application function/function/
function block
When "Use ZZ" is checked in "Indexing Setting for ZR Device" setting in the
<<Device>> tab of the PLC parameter, and Z device is used for the argument of
instruction/application function/function/function block, the expression is converted to
"ZZ" at the compilation. This may cause unintended device accesses.
When "Use ZZ" is checked, use ZZ devices for arguments of instruction/application
function/function/function block.
(b) Applying the index setting within the FOR to NEXT instruction loop
The pulses can be output by using edge relays (V) within the FOR to NEXT instruction
loop.
Note that the pulses cannot be output by the PLS, PLF, or pulse ( P) instruction.
[When using an edge relay] [When not using an edge relay]
(M0Z1 pulse is output normally.) (M0Z1 pulse is not output normally.)
Remark
The ON/OFF information of X0Z1 is stored to the edge relay V0Z1.
For example, the ON/OFF data of X0 is stored to V0 and the ON/OFF data of X1
is stored to V1.
Z0 and Z1 cannot be used when labels are used for array indexes within the FOR
to NEXT instruction loop.
SM400
MOV
EN ENO
ds
Z10
FOR
EN ENO
n10
X0Z1
EGP
EN ENO
d
V0Z1
OUT
EN ENO
dM0Z1
SM400
INC
EN ENO
d
Z1
NEXT
EN
ENO
SM400
MOV
EN ENO
ds
Z10
FOR
EN ENO
n10
X0Z1
PLS
EN ENO
dM0Z1
SM400
INC
EN ENO
d
Z1
NEXT
EN
ENO