Structure Creation Instructions - Mitsubishi MELSEC QCPU Programming Manual

Programmable logic controller
Table of Contents

Advertisement

2 INSTRUCTION TABLES

2.5.6 Structure creation instructions

Category
FOR
NEXT
Number of
repeats
BREAK
BREAKP
CALL
CALLP
RET
FCALL
FCALLP
Sub-
ECALL
routine
program
calls
ECALLP
EFCALL
EFCALLP
COM
IX
Device modification ladder
IXEND
Fixed in-
dex modifi-
IXDEV
cation
IXSET
Designates modification value
1 : n indicates number of arguments for sub-routine program.
2 : n indicates the total of the number of arguments used in the sub-routine program and the number of program name steps.
The number of program name steps is calculated as "number of characters in the program / 2" (decimal fraction is rounded up).
2 - 32
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Table 2.23 Structure Creation Instructions
Symbol
FOR
n
NEXT
BREAK
D
Pn
BREAKP
D
Pn
CALL
Pn S1 to Sn
CALLP
Pn S1 to Sn
RET
FCALL
Pn S1 to Sn
FCALLP
Pn S1 to Sn
ECALL
Pn S1 to Sn
: Program Name
ECALLP
Pn S1 to Sn
: Program Name
EFCALL
Pn S1 to Sn
: Program Name
EFCALLP
Pn S1 to Sn
: Program Name
COM
IX
S
IXEND
IXDEV
IXSET
Pn D
Processing Details
• Executes n times between FOR and
NEXT
• Forcibly ends the execution of the FOR
to NEXT cycle and jumps pointer to Pn.
• Executes sub-routine program Pn when
input condition is met.
(S1 to Sn are arguments sent to sub-
routine program. 0
n 5)
• Returns from sub-routine program
• Performs non-execution processing on
sub-routine program Pn if input
conditions have not been met
• Executes sub-routine program Pn from
within designated program name when
input condition is met.
(S1 to Sn are arguments sent to sub-
routine program. 0 n 5)
• Performs non-execution processing of
sub-routine program Pn from within
designated program name if input
condition is not met.
• Performs link refresh and general data
processing.
• Conducts index modification for
individual devices used in device
modification ladder.
• Stores modification value used for index
modification performed between IX and
IXEND in the device below that
designated by (D).
MELSEC-Q/QnA
Execution
Condition
2
7-87
1
3
7-89
1
2
7-91
+
n
1
7-94
1
2
7-95
+
n
2
3
7-99
+
n
2
3
7-102
+
n
1
7-016
2
7-112
1
1
7-120
3
2 - 32

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents