Mitsubishi Electric MELSEC-Q/L Programming Manual page 466

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

■Incorrect operation example
The following example shows the operation performed when D0 is specified for FD0 in the subroutine program and D1 is used
in the subroutine program.
[Program example]
[Operation performed after subroutine program execution]
Before the execution
of subroutine program
D0
0
D1
10
D2
100
D3
1000
Indefinite
Indefinite
FD0
Indefinite
Indefinite
*1 Stores the execution result of the subroutine program.
*2 Replaced by the value of the function device.
*3 D1 does not reflect the value of the function device.
■Correct operation example
The following example shows the operation performed when D0 is specified for FD0 in the subroutine program and D4 is used
in the subroutine program.
[Program example]
7 APPLICATION INSTRUCTIONS
464
7.6 Structure Creation Instructions
Immediately after the execution
of CALL instruction
D0
0
D1
10
D2
100
Transfer
D3
1000
0
10
FD0
100
1000
At the time of subroutine
program execution
D0
0
*1
D1
110
D2
100
Transfer
D3
1000
*1
33
*1
1
FD0
100
1000
After the execution
of RET instruction
*2
D0
33
*3
D1
110
*2
D2
100
*2
D3
1000
Indefinite
Indefinite
FD0
Indefinite
Indefinite

Advertisement

Table of Contents
loading

Table of Contents