FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
4)
The figure below shows the data structure batch-stored in
· When the nest structure is not used
Index register
[1] ZPUSH
Z0
instruction
V0
Number of times
Z1
of batch-storage
is
D
V1
incremented by "1".
Z2
V2
[2] ZPOP
instruction
Z7
Number of times of
batch-storage
V7
is
D
decremented by
"1".
*1 Number of times of batch-storage
Related instruction
Instruction
ZPOP(FNC103)
Cautions
• When not using the nest structure, clear the number of batch-storage times
(FNC102) instruction.
• When using the nest structure, clear the number of batch-storage times
instruction the first time.
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in
D8067.
• When the range of points used after
range (error code: K6706)
• When the number of batch-storage times
executed (error code: K6706)
· When the nest structure is used
Batch-
stored data
Index register
*1
+0
Z0
D
+1
Z0
V0
+2
V0
Z1
+3
Z1
V1
+4
V1
Z2
+5
Z2
+6
V2
Z7
V7
+15
Z7
+16
V7
[3] ZPOP instruction
Number of times of
batch-storage
D
Restores the index registers V0 to V7 and Z0 to Z7 which were batch-stored temporarily by the ZPUSH
(FNC102) instruction.
D
in ZPUSH (FNC102) instruction exceeds the corresponding device
D
17 Data Transfer 2 – FNC100 to FNC109
17.1 FNC102 – ZPUSH/Batch Store of Index Register
D
and later.
[1] ZPUSH
instruction
Number of times
of batch-storage
1st nesting
: 0 → 1
Number of
D
times of
batch-
[4] ZPOP
storage
instruction
= 1
D
Number of times
of batch-storage
: → 0
D
[2] ZPUSH instruction
Number of times
of batch-storage
2nd nesting
: 1 → 2
Number of
D
times of
batch-
storage
= 2
D
: 2 → 1
Description
D
stores a negative value while the ZPUSH (FNC102) instruction is
Batch-
stored data
*1
+0
D
+1
Z0
+2
V0
+3
Z1
16 points
+4
V1
for 1
+5
Z2
nesting
+15
Z7
+16
V7
+17
Z0
+18
V0
+19
Z1
+20
V1
D
before executing ZPUSH
before executing ZPUSH (FNC102)
11
12
13
14
15
16
17
18
19
20
483