Fnc 08 - For / Start 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.9
FNC 08 – FOR / Start a FOR/NEXT Loop
Outline
FOR instruction specifies the number of repetition of the loop between FOR and NEXT (FNC 09) instructions.
1. Instruction format
FNC 08
FOR
2. Set data
Operand type
S
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T
S
: This function is supported only in FX
Explanation of function and operation
Related instruction
FOR instruction and NEXT (FNC 09) instruction are set as a pair in programming.
Series
Mnemonic
16-bit Instruction
3 steps
FOR
Number of repetition of the loop between FOR and NEXT instructions
[
S
= K1 to K32767]
(A value from −32768 to 0 is handled as "1".)
Digit Specification
/FX
3U
3UC
8.9 FNC 08 – FOR / Start a FOR/NEXT Loop
Operation Condition
32-bit Instruction
Continuous
Operation
Description
Word Devices
Special
System User
Index
Unit
C D R U \G
V
Z Modify K H
PLCs.
→ For details, refer to NEXT (FNC 09) instruction.
8 Program Flow – FNC 00 to FNC 09
Mnemonic
Operation Condition
Data type
16-bit binary
Others
Con-
Real
Charac-
stant
Number
ter String
E
" "
1
2
3
4
Pointer
P
5
6
7
8
9
10
235

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3gc seriesFx3uc series

Table of Contents