7 APPLICATION INSTRUCTIONS
7.11 Index Register Instructions
855
7
Returning the selected data of the index register and long index
register
ZPOP(P)
These instructions read the data, which has been saved to the specified area, into the index register and long index register.
■Execution condition
■Description, range, data type
*1 When specifying data with a label, define the array so that an area required for operation can be secured, and specify the array label
element.
■Applicable devices
• These instructions read the data, which has been saved to the device specified by (d) or the array label element and later,
into the index register or long index register.
• When the data saved to the index register and long index register is read, the number of saves (d) is decremented by 1.
• The date data in the device specified by (s) is regarded as dummy data and ignored.
• Refer to the following for the configuration of the areas used after (d).
Page 852 ZPUSH(P)
Ladder ST
ENO:=ZPOP_2(EN,s,d);
ENO:=ZPOPP_2(EN,s,d);
FBD/LD
( is replaced by ZPOP_2 or ZPOPP_2.)
Instruction Execution condition
ZPOP
ZPOPP
Operand Description Range Data type Data type (label)
(s) Dummy 16-bit unsigned binary ANY16
(d) Start device to which the index register will be restored 16-bit signed binary ANY16
*1
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s)
(d)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)