7 APPLICATION INSTRUCTIONS
7.4 Structure Creation Instructions
561
7
• 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.
Wrong operation: While D0 is specified for FD0 in the subroutine program, D1 is used in the subroutine program.
(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.
M0
M0
P0
CALL P0 D0
/K3K100 FD0
FEND
+K100D1
RET
1000
100
10
0
1000
100
1
33
FD0
FD0 FD0FD0
1000
100
10
0
1000
100
10
0
1000
100
110
1000
100
110
33
D0
D1
D2
D3
D0
D1
D2
0
D0
D1
D2
D3
D0
D1
D2
D3
D0
D1
D2
D3
(3)
(2)
(2)
(2)
(1)
(1)
(1)
D0D0D0
D3D3D3
(4)
(4)
(4)
(4)
(4)
(4)
(4)
(4)
Before the execution of
the subroutine program
Immediately after the execution
of the CALL instruction
At the execution of
the subroutine program
After the execution of
the RET instruction