Omron CS1W-MCH71 Operation Manual page 397

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

Advertisement

Command Details
Operand
Description
Conditional
Branching
(IF ELSE ENDIF)
Command type
Format
352
Conditional
Expression
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
• If the conditional expression is satisfied, execution of the next block is
interrupted.
• Checking the conditional expression will be completed when execution of
[Block to end the operation midway] is completed.
• Commands that can be interrupted are all the axis movement commands,
DWELL command, and WAIT command.
• STOPOP command execution will be completed when condition settings
are completed inside the system.
Ex:STOPOP_#DW0001 = = 1;
MOVE [J01] 10000; Axis travel command
#DW0002 = 1;
If #DW0001 becomes 1 during execution of MOVE, MOVE is interrupted,
#DW0002 is set to 1 and then the next block is executed.
If the conditional expression is satisfied, processing 1 will be executed.
If the conditional expression is not satisfied, processing 2 will be executed.
IF:
Multiple execution command
ELSE: Multiple execution command
ENDIF: Multiple execution command
IF_<conditional expression>;
<processing 1>
{ELSE;
<processing 2>}
ENDIF;
Ex: IF_#DW0001 = = 1;
MOVE [J01]100.00 [J02]200.00;
ELSE;
MOVE [J03]-100.00 [J04]-10.00;
ENDIF;
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
Section 6-3
Format
Format

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Cj1w-mch71

Table of Contents