7 APPLICATION INSTRUCTIONS
7.4 Structure Creation Instructions
581
7
• Any device used in the argument of the XCALL instruction must not used in the subroutine program. Otherwise, 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
XCALL P0 D0
INC FD0
FEND
+K100D1
RET
1000
100
10
0
1000
100
10
1
FD0
FD0 FD0FD0
1000
100
10
0
1000
100
10
0
1000
100
110
1000
100
10
1
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)
D0D0D0
D3D3D3
(4)
(4)
(4)
(4)
(4)
(4)
(4)
(4)
Before the execution of
the subroutine program
Immediately after the execution of
the XCALL instruction
At the execution of
the subroutine program
After the execution of
the RET instruction
Transfer Transfer