Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 572

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

• Any device used in the argument of the ECALL(P) instruction must not used in the subroutine program. Otherwise, normal
operation cannot be performed.
Ex.
Wrong operation: While D0 is specified for FD0 in the subroutine program, D1 is used in the subroutine program.
[MAIN]
M0
[ABC]
P0
M0
Before the execution of
the subroutine program
D0
0
D1
10
D2
100
D3
1000
(4)
(4)
FD0
(4)
(4)
(1) The operation result of the subroutine program is stored.
(2) These values are replaced with the function device values.
(3) The value of D1 is not replaced with the function device value.
(4) Undefined values are stored.
7 APPLICATION INSTRUCTIONS
570
7.4 Structure Creation Instructions
ECALL
/
Immediately after the execution of
the ECALL instruction
D0
0
D1
10
D2
100
D3
D3
D3
1000
0
10
FD0
100
1000
"ABC"
P0
D0
FEND
K100
K3
FD0
+
K100
D1
RET
At the execution of
the subroutine program
D0
0
(1)
D1
110
D2
100
D3
1000
(1)
33
(1)
1
FD0
100
1000
After the execution of
the RET instruction
(2)
D0
D0
D0
D0
D0
33
(3)
D1
D1
110
(2)
D2
D2
100
(2)
D3
D3
1000
(4)
(4)
FD0
(4)
(4)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents