Mitsubishi Electric MELDAS C6 Programming Manual page 239

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

FOR, NEXT ... Command loop
Bit device
X
Y M
L
F
B SB T SM V T
n
(Note) "n" is used with FOR command.
FOR
NEXT
Function
(1) After the processing in the FOR to NEXT loop is executed n-times without conditions, the step
following the NEXT command will be executed.
(2) The value of "n" can be designated at between 1 and 32767.
If it is designated at a value of from, -32768 to 0, it will be executed as though n=1.
(3) If you do not desire to execute the processing called for within the FOR to NEXT loop, use the CJ
command to jump past it.
(4) FOR command can be nested up to 16 deep.
X
X1
X2
8. Function Commands
FOR, NEXT
Usable device
Word device
C D R W SW Z SD K
FOR
Repeated program
FOR
K5
FOR
K3
FOR
K100
NEXT
NEXT
NEXT
- 230 -
Get other manuals https://www.bkmanuals.com
Con-
Pointer
stant
H
P
n
Setting data
Number of repetitions
of the FOR to NEXT
n
loop
NEXT
(from 1 to 32767).
FOR command can be
nested up to 16 deep.
Digit
No. of
desig-
Index
steps
nation
5/4

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents