17 Applied Instructions (Data Transfer 2)
17.1 ZPUSH / Batch Store of Index Register
436
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Program example
This is a program for retracting the contents of index registers Z0 to Z7, V0 to V7 before execution of
subroutine program after D0, when using the index register in the subroutine after pointer P0.
M8000
ZPUSH
EN ENO
d
D0
M8000
ZPOP
EN ENO
d
D0
[Structured ladder/FBD]
X005
M8002
X030
[ ST ]
Y000
RST
EN ENO
d
MOVP
EN
s
ENO
d
X000
CALL
EN
p
ENO
X000 V0
FEND
EN ENO
X006
MOVP
EN
s
ENO
d
X006
MOVP
EN
s
ENO
d
SRET
EN ENO
OUT_T
EN
TCoil
TValue
ENO
TC0
D100 V0
K10
V0
P0
K5
V0
P0
X005
MOVP
EN
s
ENO
d
K10
V0
RUN monitor
K5
V0
RST(M8002, D0);
MOVP(X005, K5, V0);
MOVP(NOT X005, K10, V0);
OUT(X000V0, Y000);
ZPUSH(M8000, D0);
ZPOP(M8000, D0);
FBDD(····················);
Function block of the function
corresponding to the subroutine
program.
Index register and
programs being used
D0