Structure Creation Instructions - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

7.6

Structure creation instructions

7.6.1
FOR to NEXT instruction loop (FOR,NEXT)
FOR,NEXT
FOR
NEXT
Setting
Data
n
Function
(1) When the processing in the FOR to NEXT loop is executed n-times without conditions, the
step following the NEXT instruction will be executed.
(2) The value of n can be designated at between 1 and 32767. If it is designated from
to 0, the processing which is executed when n=1 will be performed.
(3) 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.
(4) FOR instructions can be nested up to 16 deep.
Repeat program
n : Number of repetitions of FOR to NEXT loop (1 to 32767) (BIN 16 bits)
Internal Devices
R, ZR
Bit
Word
FOR
X
FOR
X1
FOR
X2
High
Basic
performance
J
\
U
\G
Bit
Word
K5
K3
FOR instructions can be
K100
nested up to 16 deep.
NEXT
NEXT
NEXT
FOR,NEXT
Process
Redundant Universal
LCPU
n
FOR
NEXT
Constants
Zn
Other
K, H
––
32768
7-105
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents