7. APPLICATION INSTRUCTIONS
7
−
88
MELSEC-A
7.7 FOR to NEXT Instructions
7.7.1 FOR to NEXT (FOR, NEXT)
Available Device
Bit device
Word (16-bit) device
Constant
Pointer
Level
Ca
rr
y
fla
g
Err
o
r
fla
g
X Y M L S B F T C D W R A0
A1
Z V K H P I N
D
igit specification
Inde
x
M9012 (M9010, M9011)
n
O O O O O O O O O O O
O
Functions
(1) When the processing of FOR to NEXT instructions is executed "n" times
unconditionally, performs the processing of the next step to the NEXT
Instruction.
(2) At "n" , 1 to 32767 can be specified. When - 32767 to 0 has been specified, the
same processing an n = 1 is performed. (positive integers)
(3) When it is not desired to execute the processing of FOR to NEXT instructions,
cause a jump by use of the CJ or SCJ instruction
Applicable
CPU
All CPUs
FOR
n
NEXT
Repeat program
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......