8 for construct (for, end_for), 1 ) operation, 2 ) format – Yaskawa MP900 Series Ladder Programming Manual User Manual
Page 160

5.5 Program Control Instructions
5.5.8 FOR Construct (FOR, END_FOR)
5-91
Instructions
5
5.5.8 FOR Construct (FOR, END_FOR)
( 1 ) Operation
The programming between the FOR and END_FOR instructions is repeatedly executed.
The initial value starts with the value in a register specified as the variable. This variable is incremented by the step
value each time execution is repeated.
The conditional expression for the FOR instruction is no longer satisfied when the value of the variable exceeds the
maximum value, so program execution jumps to the next step.
( 2 ) Format
∗ C and # registers cannot be used.
Initialization of FOR
instruction variables
Next step
Programming
Variable > Maximum value?
Satisfied.
Not satisfied.
END_FOR
Variable = Variable + Step value
Parameter Name
Applicable Data Types
B
W
L
F
A
Index
Constant
Variable (Var)
×
{
*
×
×
×
{
×
Initial value (Init)
×
{
×
×
×
{
{
Maximum value (Max)
×
{
×
×
×
{
{
Step value (Step)
×
{
×
×
×
{
{
,
Programming
Variable
Initial value
Maximum value
Step value
Icon:
Key entry: FOR, FEND