EasyManua.ls Logo

Mitsubishi Electric MELSEC FX3U - 9. Move and Compare - FNC 10 to FNC 19

Mitsubishi Electric MELSEC FX3U
1000 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
251
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.10 FNC 09 – NEXT / End a FOR/NEXT Loop
1
Introduction
2
Overview
3
Instruction
List
4
Devices
in Detail
5
Specified the
Device &
Constant
6
Before
Programming
7
Basic
Instruction
8
FNC00-FNC09
Program Flow
9
FNC10-FNC19
Move & Compare
10
FNC20-FNC29
Arith. & Logic
Operation
Caution
1. Limitation in the number of nesting
FOR-NEXT loop can be nested up to 5 levels.
Errors
1. Watchdog timer error
When FOR-NEXT loop is repeated many times, the operation cycle (D8010) is too long, and a watchdog
timer error may occur. In such a case, change the watchdog timer time or reset the watchdog timer.
For details on changing the watchdog timer time, refer to Subsection 37.2.2.
For resetting the watchdog timer, refer to WDT (FNC 07) instruction.
2. Examples of wrong programs
The following programs are regarded as errors.
FOR
1st
level
FOR
FOR
NEXT
NEXT
NEXT
2nd
level
3rd
level
FOR
1st
level
FOR
FOR
NEXT
NEXT
NEXT
2nd
level
1st
level
When NEXT instruction does not exist
FOR
When NEXT instruction is located before FOR
instruction
FOR
When number of FOR instructions is not
equivalent to the number of NEXT instructions
NEXT
FOR
Not programmed
FOR
NEXT
When NEXT instruction is located after FEND or
END instruction
FOR
FEND
END
NEXT
NEXT
NEXT
NEXT
Not programmed

Table of Contents

Related product manuals