EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Structure Creation Instructions; FOR to NEXT Instruction Loop

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
457
7
7.6 Structure Creation Instructions
FOR to NEXT instruction loop
FOR, NEXT
Processing details
When the processing in the FOR to NEXT loop is executed n-times without conditions, the step following the NEXT
instruction will be executed.
The value of n can be designated at between 1 and 32767. If it is designated from -32768 to 0, the processing which is
executed when n=1 will be performed.
If you do not desire to execute the processing called for within the FOR to NEXT loop, use the CJ or SCJ instruction to
jump.
FOR instructions can be nested up to 16 deep.
n: Number of repetitions of FOR to NEXT loop (1 to 32767) (BIN 16 bits)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
n
Basic
Process
High
performance
Redundant
Universal
LCPU
n
NEXT
FOR
Repeat program
FOR
NEXT
FOR instructions can be
nested up to 16 deep.
K5FOR
K3FOR
K100FOR
NEXT
NEXT
NEXT
X
X1
X2

Table of Contents

Related product manuals