Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 563

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

Advertisement

• Do not use any device used in the argument of the CALL(P) instruction in the subroutine program. If used, 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.
M0
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.
CALL
/
K100
Immediately after the execution
of the CALL instruction
D0
0
D1
10
D2
100
D3
D3
D3
1000
0
10
FD0
100
1000
P0
D0
FEND
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)
7 APPLICATION INSTRUCTIONS
7.4 Structure Creation Instructions
7
561

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents