7.17 Other Instructions
7.17.8 Batch save and recovery of index registers
7-365
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
ZPUSH, ZPOP
ZPUSH, ZPOP
7.17.8
Batch save and recovery of index registers
ZPUSH, ZPOP
Function
ZPUSH(P)
(1) Saves the contents of the following index registers to
and the following devices.
(When contents of an index register are saved,
+ 0 (the number of saves made) is
increased by 1.)
• High Performance model QCPU: Z0 to Z15
• Universal model QCPU: Z0 to Z19
(2) The ZPOP(P) instruction is used for data recovery. The ZPUSH(P) and ZPOP(P)
instructions are used as a pair and can be nested.
(3) If nesting has been done, each time the ZPUSH(P) instruction is executed, the field used
following
will be added, so a field large enough to accommodate the number of times the
instruction will be used should be reserved from the beginning.
ZPUSH(P)
ZPOP(P)
P: Executing condition
:
indicates any of the following
instructions.
ZPUSH
ZPUSHP
ZPOP
ZPOPP
Input argument,
EN:
Executing condition
:Bit
Output argument,
ENO:
Execution result
:Bit
d:
Start number of the device whose index registers are saved or
recovered
:ANY16
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
Others
Bit
Word
Bit
Word
−
−
Universal
UD
High
Performance
Structured ladder
ST
ZPU
SH
EN
ENO
d
ZPU
SH
(EN, d);
ENO:=
d
d
d
d
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......