Structure Creation Instructions - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

2.5.6

Structure creation instructions

Category
FOR
NEXT
Number of
repeats
BREAK
BREAKP
CALL
CALLP
RET
FCALL
Subroutine
program
calls
FCALLP
ECALL
ECALLP
*1:
n indicates number of arguments for subroutine program.
*2:
n indicates the total of the number of arguments used in the subroutine 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).
*3:
The subset is effective only with the
Symbol
FOR
n
NEXT
BREAK
D
Pn
BREAKP
D
Pn
CALL
Pn
CALL
Pn S1 Sn
CALLP
Pn
CALLP
Pn S1 Sn
RET
FCALL
Pn
FCALL
Pn S1 Sn
FCALLP
Pn
FCALLP
Pn Sn S1
ECALL
Pn
ECALL
Pn S1 Sn
: File name
ECALLP
ECALLP
Pn S1 Sn
: File name
Universal model QCPU
Processing Details
• Executes n times between the
and
NEXT
.
• Forcibly ends the execution of the
to
NEXT
cycle and jumps
FOR
pointer Pn.
• Executes subroutine program Pn when
input condition is met. (S1 to Sn are
arguments sent to subroutine program.
n
5)
• Returns from subroutine program
• Performs non-execution processing of
subroutine program Pn if input
conditions have not been met. (S1 to
Sn are arguments sent to subroutine
program. n
5)
• Executes subroutine program Pn from
within designated program name when
input condition is met. (S1 to Sn are
arguments sent to subroutine program.
n
5)
and LCPU.
Execution
Condition
2
-
FOR
1
-
3
-
*1
2
+
*3
n
1
-
*1
2
-
+
n
*2
3
-
+
n
2
3
Page
383
4
Page
385
5
Page
6
386
7
Page
390
8
Page
391
Page
395
59

Advertisement

Table of Contents
loading

Table of Contents