98
(c) Both network numbers and device numbers can be performed indexing with link direct devices*
1
.
*1: For the intellingent function module device, link direct devices, refer to the QnUCPU User’s Manual (Function Explanation,
Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User’s Manual (Function Explanation, Program Fundamentals)
(d) When indexing is used for multiple CPU shared devices*
2
, indexing for the head I/O numbers of CPU modules and
indexing for the CPU shared memory address are automatically executed.
*2: For the multiple CPU shared device, refer to the QnUCPU User’s Manual (Function Explanation, Program Fundamentals) or
Qn(H)/QnPH/QnPRHCPU User’s Manual (Function Explanation, Program Fundamentals)
(e) Index modification using extended data register (D) and extended link register (W) by 32 bits (Universal model
QCPU(except Q00UJCPU) and LCPU.)
Like index modification using file register (ZR), index modification using extended data register (D) and extended
link register (W) by 32 bits can be performed by the following two methods.
• Specifing the index registers’ range used for indexing with 32-bit.
• Specifing the 32-bit indexing using “ZZ” specification.
32-bit indexing with the "ZZ" specification is only available for the following CPU modules. See the programming tool
operating manual for the available programming tools.
• The first five digits of the serial No. for QnU(D)(H)CPU is “10042” or higher. (except Q00UJCPU)
• QnUDE(H)CPU
• LCPU
(6) Cautions
(a) Performing indexing between the FOR and NEXT instructions
Pulses can be output between the FOR and NEXT instructions 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.)
Remark
The ON/OFF data of X0Z1 is stored by the edge relay V0Z1.
For example, the ON/OFF data of X0 is stored by V0, and that of X1 by V1.
MO
V
J1Z1\K4X0Z2 D0
I
f
Z1=2
an
d Z2=
8
,
then
J(1+2)\K4X(0+
8
)=J3\K4X
8
MOV U3E0Z1
\
G0Z2 D0
If Z1=2 and Z2=8,
then U3E(0+2)\G(0+8)=U3E2\G8
SM400
X0Z1
Z1
M0Z1
NEXT
K0
MO
V
K10
FOR
V
0Z1
Z1
INC
SM400
SM400
X0Z1
Z1
NEXT
K0
MO
V
K10
FOR
Z1
INC
SM400
M0Z1
PLS