7 APPLICATION INSTRUCTIONS
7.11 Index Register Instructions
851
7
Returning all data of the index register
ZPOP(P)
These instructions read the data, which has been saved to the specified area, into the 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.
• When the content of the index register is read, the number of saves (d) is decremented by 1.
• Refer to the following for the configuration of the areas used after (d).
Page 849 ZPUSH(P)
Ladder ST
ENO:=ZPOP(EN,d);
ENO:=ZPOPP(EN,d);
FBD/LD
Instruction Execution condition
ZPOP
ZPOPP
Operand Description Range Data type Data type (label)
(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 $
(d)
Error code
(SD0)
Description
3405H The number of saves in (d)+0 is 0.
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)