Omron CS1W-MCH71 Operation Manual page 399

Sysmac cs/cj-series
Hide thumbs Also See for CS1W-MCH71:
Table of Contents

Advertisement

Command Details
Repeat FOR
(FOR...NEXT)
Command type
Format
Operand
Operand
Setting range
Work registers for
Variable
repeat count
Repeat end value
1 to
2147483647
−2147483648 to
Number of increment
steps
2147483647
Note
Description
354
WHILE
Conditional
expression
True
Processing
WEND
Processing is repeated for the specified number of times.
FOR:
Multiple execution command
NEXT: Multiple execution command
<Default value setting> ( ← can be omitted)
FOR_W<work registers for repeat count> L<repeat end value> S<number of
increment steps>;
<processing>
NEXT;
Ex: FOR_W#DL0002 L1000 S1;
INC MOVE [J01]100.00 [J02]200.00;
NEXT;
Decimal
Bit
No
No
No
No
No
No
(1) Word data is extended to long word data with a sign in the MC Unit.
(2) Figures below the decimal point are to be omitted.
• Processing between FOR and NEXT will be repeatedly executed until
Work resisters for repeat count becomes equal to or greater than Repeat
end value.
• When decrementing (when No. of increment steps is signed "minus"), the
condition will be until Repeat end value becomes equal to or greater than
Work register for repeat count.
• Number of increment steps specifies the incrementing amount of Work
resisters for repeat count. If negative value is set, it will be the decrement-
ing amount.
False
Variable specification
Word
Long
Real
word
number
No
Yes
No
Yes (See
Yes
Yes (See
note 1.)
note 2.)
Yes (See
Yes
Yes (See
note 1.)
note 2.)
Section 6-3
INC/ ABL
influ-
Indirect
ence
specifi-
cation
No
No
Yes
No
Yes
No

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Cj1w-mch71

Table of Contents