Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
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, FX3GC, FX3U and FX3UC PLCs only are applicable.
S2: The FX
3U and FX3UC PLCs only are applicable.
FX3U(C) FX3G(C) FX3S FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(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
XYMTCS
D.b
KnX KnY KnM KnS T C D R
U\G
VZModifier K H E
""
P
zzzzzzz
S1 S2
zz z z z
FOR
EN
n
ENO