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

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

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
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 C D R U \G
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.
Mnemonic
Independent Inst.
1 step
NEXT
There is no set data.
Digit Specification
FNC 08
S
FOR
FNC 09
NEXT
FOR
FOR
FOR
1st
level
NEXT
NEXT
NEXT
8.10 FNC 09 – NEXT / End a FOR/NEXT Loop
Operation Condition
This instruction is the independent type, and
Continuous
Operation
does not require drive contact.
Description
Word Devices
Special
System User
Unit
V
There are no applicable devices.
S
Repeated "
"
times.
2nd
3rd
level
level
8 Program Flow – FNC 00 to FNC 09
Data type
Others
Con-
Real
Charac-
Index
stant
Number
ter String
Z Modify K H
E
" "
FOR
FOR
1st
level
NEXT
FOR
1st
level
NEXT
NEXT
1
2
3
4
Pointer
P
5
6
7
8
9
2nd
level
10
241

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents