EasyManuals Logo

Mitsubishi MELSEC iQ-F FX5 series User Manual

Mitsubishi MELSEC iQ-F FX5 series
888 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
Page #343 background imageLoading...
Page #343 background image
7 APPLICATION INSTRUCTION
7.4 Structuring instruction
341
7
Precautions
The FOR-NEXT loop can be nested up to 16 levels.
The FOR-NEXT loop cannot be interrupted by the I, IRET, SRET, RET, FEND, or END instruction.
When FOR-NEXT loop is repeated many times, the operation cycle is too long, and a watchdog timer error may occur. In
such a case, change the watchdog timer time or reset the watchdog timer.
The following programs are regarded as errors.
Operation error
To terminate the FOR to NEXT instruction loop halfway, use the BREAK instruction. (Page 342
Forcibly terminating the FOR to NEXT instruction loop)
When the NEXT instruction is located before FOR No NEXT instruction
When the number of FOR instructions is not equivalent to the number of
NEXT instructions
When the NEXT instruction is located after the FEND or END instruction
Error code
(SD0/SD8067)
Description
3340 After the FOR instruction is executed, the END or GOEND instruction is executed before the NEXT instruction is executed.
3361 When the FOR instruction is nested, the 17th level is executed.
FOR
FOR
FOR
NEXT
NEXT
NEXT
FOR
FOR
FOR
NEXT
NEXT
NEXT
3rd level
2nd level
1st level
2nd level
1st level
1st level
FOR
NEXT
FOR
NEXT
Not programmed
FOR
NEXT
NEXT
FOR
Not programmed
FOR
NEXT
FEND
NEXT
END

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC iQ-F FX5 series and is the answer not in the manual?

Mitsubishi MELSEC iQ-F FX5 series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC iQ-F FX5 series
CategoryController
LanguageEnglish

Related product manuals