Fnc 09 - Next / End A For/Next Loop - Mitsubishi FX3G Series Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G Series:
Table of Contents

Advertisement

FX
/FX
/FX
/FX
3G
3U
3GC
3UC
Programming Manual - Basic & Applied Instruction Edition
8.10
FNC 09 – NEXT / End a FOR/NEXT Loop
Outline
NEXT instruction specifies the end position of the loop.
1. Instruction format
FNC 09
NEXT
2. Set data
Operand type
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T
Explanation of function and operation
The loop between FOR and NEXT instructions is repeated "n" times (which is specified by the source data).
After the loop is repeated by the specified number of times, steps after NEXT instruction are executed.
Related instruction
NEXT instruction and FOR (FNC 08) instruction are set as a pair in programming.
Caution
1. Limitation in the number of nesting
FOR-NEXT loop can be nested up to 5 levels.
236
Series
Mnemonic
Independent Inst.
1 step
NEXT
There is no set data.
Digit Specification
FNC 08
S
FOR
FNC 09
NEXT
FOR
FOR
FOR
NEXT
NEXT
NEXT
8.10 FNC 09 – NEXT / End a FOR/NEXT Loop
Operation Condition
This instruction is the independent type, and
Continuous
does not require drive contact.
Operation
Description
Word Devices
Special
System User
Unit
C D R U \G
There are no applicable devices.
S
Repeated "
"
times.
1st
2nd
3rd
level
level
level
8 Program Flow – FNC 00 to FNC 09
Others
Con-
Real
Index
stant
Number
V
Z Modify K H
E
FOR
FOR
NEXT
FOR
NEXT
NEXT
Data type
Charac-
Pointer
ter String
" "
P
1st
level
2nd
level
1st
level

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3gc seriesFx3uc series

Table of Contents