OMRON
CHAPTER 4 – CX-Supervisor Script Language
Revision 2.0
Page 15
Remarks
Argument Description
Expression
The value forming a conditional statement. The expression may include the
following operators with points and constants:
•
Greater than ‘>’.
•
Less than ‘<’.
•
Greater than or equal to ‘>=’.
•
Less than or equal to ‘<=’.
•
Not equal to ‘!=’.
•
Equal to ‘==’.
Typical Example
IF fuel < 0 THEN
fuel = 0
ENDIF
The point ‘fuel’ is assigned the value 0 on the condition that currently, ‘fuel’ is less than 0. If ‘fuel’
is not less than 0, then it is not assigned the new value.
References
Refer to chapter 4, Control Statements
for details of the use of the IF THEN ELSE/ELSEIF ENDIF
statements.
Control Statements
Simple Conditional Statements
Syntax
IF condition THEN
statementblock1
ENDIF
or
IF condition THEN
statementblock1
ELSE
statementblock2
ENDIF
Summary of Contents for CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Page 2: ...CX Supervisor Script Language Software Revision 2 0...
Page 3: ......
Page 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Page 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Page 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Page 13: ......
Page 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Page 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Page 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Page 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...