Omron CS1W-MCH71 Operation Manual page 398

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

Advertisement

Command Details
Operand
Description
Repeat While
(WHILE...WEND)
Command type
Format
Operand
Description
Nil
• If the conditional expression is satisfied, processing 1 will be executed. If
the conditional expression is not satisfied, processing 2 will be executed.
• Processing 1 is described between IF and ELSE (can be described over
multiple lines).
• Processing 2 is described between ELSE and ENDIF (can be described
over multiple lines).
• ELSE and processing 2 can be omitted.
IF
Conditional
expression
True
Processing 1
ENDIF
While the conditional expression is being satisfied, processing between
WHILE and WEND is repeatedly executed.
WHILE: Multiple execution command
WEND: Multiple execution command
WHILE_<conditional expression>;
<processing>
WEND;
Ex: WHILE_#DW0001 = = 1;
INC MOVE [J01]100.00 [J02]200.00;
WEND;
The formats of conditional expressions are shown in the following table.
Immediate values and variables are the only comparison objects. If a different
data type is used, an alarm will occur in pre-analysis.
Conditional
Expression
Equal to
(Immediate value or Variable) = = (Immediate value or Variable)
Not equal to
(Immediate value or Variable)<>(Immediate value or Variable)
Greater than
(Immediate value or Variable)>(Immediate value or Variable)
Less than
(Immediate value or Variable)<(Immediate value or Variable)
Equal to or
(Immediate value or Variable)> = (Immediate value or Variable)
greater than
Equal to or less
(Immediate value or Variable)< = (Immediate value or Variable)
than
Nil
• As long as the conditional expression is being satisfied, processing
between WHILE and WEND is repeatedly executed.
• Processing can be described over multiple lines.
False
ELSE
Processing 2
Format
Section 6-3
353

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Cj1w-mch71

Table of Contents