EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 584

Mitsubishi Electric MELSEC iQ-R Series
2110 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...
582
7 APPLICATION INSTRUCTIONS
7.4 Structure Creation Instructions
Ex.
Correct operation: While D0 is specified for FD0 in the subroutine program, D4 is used in the subroutine program.
Precautions
An FBD/LD program cannot be created as a subroutine program.
FBD/LD does not support the execution of a subroutine program with an argument.
Operation error
(1) The operation result of the subroutine program is stored.
(2) These values are replaced with the function device values.
(3) Undefined values are stored.
Error code
(SD0)
Description
2820H The device specified in an argument from (s1) to (s5) cannot be secured for the data size.
3360H More than 16 XCALL instructions are nested. (The 17th instruction is executed.)
3380H The subroutine program corresponding to the pointer specified by (P) does not exist.
3381H After execution of the XCALL instruction, the END, FEND, GOEND, or STOP instruction is executed before the RET instruction.
3382H The RET instruction is executed before the XCALL instruction.
M0
M0
P0
XCALL P0 D0
/K3K100 FD0
FEND
+K100D4
RET
1000
100
10
0
1000
100
1
33
FD0
FD0 FD0FD0
1000
100
10
0
1000
100
10
0
1000
100
10
1000
0 0 100 100
100
1
33
D0
D1
D2
D3
D0
D1
D2
0
D0
D1
D2
D3
D0
D1
D2
D3
D0
D1
D2
D3
(2)
(2)
(2)
(2)
(1)
D0D0D0
D3
D4 D4 D4D4D4D4 D4D4
(1)
(1)
(3)
(3)
(3)
(3)
(3)
(3)
(3)
(3)
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

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals