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