EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 448

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.11 Data Transfer 2
446
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]
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

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals