EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 487

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 APPLICATION INSTRUCTIONS
7.6 Structure Creation Instructions
485
7
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]
[Operation performed after subroutine program execution]
*1 Stores the execution result of the subroutine program.
*2 Replaced by the value of the function device.
Operation error
In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4101 The device specified for the argument cannot be secured for the data size. 
4210 There is no subroutine program for the pointer specified in the XCALL (P)
instruction.

4211 After the XCALL (P) instruction was executed, the END, FEND, GOEND, or
STOP instruction was executed prior to the RET instruction.

4212 The RET instruction was executed prior the XCALL (P) instruction. 
4213 The 17th nesting level is executed. 
D0
D3
D2
D1
0
1000
100
10
D0
D3
D4
D2
D1
0
1000
100
10
0
1000
100
10
D0
D3
D2
D1
33
*2
1000
*2
100
*2
1
*2
D0
D3
D2
D1
0
1000
100
1
*1
33
*1
1000
100
10
D4 0 0
D4 100D4100
*1
FD0 FD0 FD0 FD0
Immediately after the execution
of XCALL instruction
Indefinite
Indefinite
Indefinite
Indefinite
Indefinite
Indefinite
Indefinite
Indefinite
Transfer
Transfer
After the execution
of RET instruction
Before the execution
of subroutine program
At the time of subroutine
program execution

Table of Contents

Related product manuals