Справочник Пользователя для Mitsubishi Electronics FXCPU

Скачать
Страница из 838
7 Applied Instructions (Program Flow)
7.9 FOR / Start a FOR/NEXT Loop
128
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
7.9
FOR / Start a FOR/NEXT Loop
Outline
FOR instruction specifies the number of repetition of the loop between FOR and NEXT instructions.
1. Format and operation, execution form
2. Set data
3. Applicable devices
S: Refer to "Cautions".
Function and operation explanation
→ Refer to Section 7.10 for details.
Related instruction
FOR instruction and NEXT instruction are set as a pair in programming.
Cautions
1) Some restrictions to applicable devices
S1: The FX
3G
, FX
3GC
, FX
3U
 and FX
3UC
 PLCs only are applicable.
S2: The FX
3U
 and FX
3UC
 PLCs only are applicable.
FX
3U(C)
FX
3G(C)
FX
3S
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/FX
2C
FX
0N
FX
0(S)
Instruction 
name
Operation
Execution 
form
Expression in each language
Structured ladder/FBD
ST
FOR
16 bits
Continuous
Syntax such as condition sentence is used.
Refer to the following manual for syntaxes.
→ Q/L/F Structured
Programming Manual
(Fundamentals)
Variable
Description
Data type
Input
variable
EN
Execution condition
Always TRUE
Number of repetition of the loop between FOR and NEXT 
instructions
ANY16
Output
variable
ENO
Execution state
Bit
Operand 
type
Bit Devices
Word Devices
Others
System User
Digit Specification
System 
User
Special 
Unit
Index
Constant
Real 
Number
Character 
String
Pointer
X Y M T C S D
.b KnX KnY KnM KnS T C D R U
\G
V Z Modifier K
H
E
"
"
P
z
z
z
z z z z
S1
S2
z z
z
z
z
FOR
EN
n
ENO