Download Print this page

Structuring Instruction - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

8.4

Structuring Instruction

FOR to NEXT
FOR, NEXT
When the processing between the FOR and NEXT instructions is executed (n) times without any condition, the processing of
the step following the NEXT instruction is executed.
Ladder diagram
FOR
(n)
A
NEXT
A: Repetition program
FBD/LD
FOR
EN
ENO
n
Setting data
■Descriptions, ranges, and data types
Operand
Description
(n)
Number of repetitions of the loop between FOR and NEXT
instructions
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(n)
Processing details
• When the processing between the FOR and NEXT instructions is executed (n) times without any condition, the processing
of the step following the NEXT instruction is executed.
• In (n), any of 1 to 32767 can be specified. If any of -32768 to 0 is specified, the processing of (n)=1 is applied.
• To skip the processing between the FOR and NEXT instructions, jump the program execution with the CJ instruction.
• Up to 16 FOR instructions can be nested.
NEXT
EN
ENO
Word
T, ST, C, D, W,
U\G
SD, SW, R
Structured text
Not supported
Range
Data type
1 to 32767
16-bit signed binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
Data type (label)
ANY16
BOOL
BOOL
Constant
Others
K, H
E
$
8 APPLICATION INSTRUCTION
8.4 Structuring Instruction
8
395

Hide quick links:

Advertisement

loading