![Omron CS1W-MCH71 - Скачать руководство пользователя страница 398](http://html1.mh-extra.com/html/omron/cs1w-mch71/cs1w-mch71_operation-manual_742367398.webp)
353
Command Details
Section 6-3
Operand
Nil
Description
• 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.
Repeat While
(WHILE...WEND)
While the conditional expression is being satisfied, processing between
WHILE and WEND is repeatedly executed.
Command type
WHILE: Multiple execution command
WEND: Multiple execution command
Format
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.
Operand
Nil
Description
• As long as the conditional expression is being satisfied, processing
between WHILE and WEND is repeatedly executed.
• Processing can be described over multiple lines.
IF
ENDIF
ELSE
Conditional
expression
False
True
Processing 1
Processing 2
Conditional
Expression
Format
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
greater than
(Immediate value or Variable)> = (Immediate value or Variable)
Equal to or less
than
(Immediate value or Variable)< = (Immediate value or Variable)
Содержание CS1W-MCH71 -
Страница 2: ...CS1W MCH71 CJ1W MCH71 Motion Control Unit Operation Manual Revised June 2008 ...
Страница 3: ...iv ...
Страница 29: ...xxx ...
Страница 33: ...xxxiv ...
Страница 35: ...xxxvi ...
Страница 39: ...xl ...
Страница 69: ...24 Performance Section 1 7 ...
Страница 99: ...54 Connecting MECHATROLINK Devices Section 3 5 ...
Страница 283: ...238 Saving Data Section 5 4 ...
Страница 417: ...372 Command Details Section 6 3 ...