456
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
17 Data Transfer 2 – FNC100 to FNC109
17.1 FNC102 – ZPUSH/Batch Store of Index Register
Program example
In the program shown below, the contents of the index registers Z0 to Z7 and V0 to V7 before execution of
subroutine program are batch-stored in D0 and later when index registers are used in the subroutine after the
pointer P0.
X000
M8002
Label
P 0
M8000
RUN monitor
M8000
FNC 01
CALL
P 0
D 0
RST
FNC 06
FEND
FNC102
ZPUSH
D 0
END
FNC103
ZPOP
D 0
FNC 02
SRET
Program using index registers