Fnc 09 - Next / End A For/Next Loop - Mitsubishi Electric MELSEC FX3U Programming Manual

Melsec fx series programmable logic controllers
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.
250
Mnemonic
Independent Inst.
1 step
NEXT
There is no set data.
Digit Specification
FNC 08
S
FOR
FNC 09
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
V Z Modify K H
There are no applicable devices.
S
Repeated "
"
times.
8 Program Flow – FNC 00 to FNC 09
Data type
Others
Con-
Real
Charac-
Index
stant
Number
ter String
E
" "
Pointer
P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents