CHAPTER 4 – CX-Supervisor Script Language
OMRON
Page 14
Revision 2.0
Remarks
Argument Description
Pointname
The point name to be assigned a value based on a logical expression.
Expression
The Boolean value to be assigned to
pointname
or the Boolean value forming
a conditional statement. The expression includes the following operators with
points and constants:
•
And ‘AND’.
•
Or ‘OR’.
•
Not ‘NOT’.
Typical Examples
flag = temp AND speed
The Boolean point ‘flag’ is assigned a value based on the logic of point ‘temp’ AND point ‘speed’. If
‘temp’ and ‘speed’ are both not zero, ‘flag’ is set to 1, or ‘‘TRUE’’. A value of zero in either ‘temp’
or ‘speed’ supplies ‘FALSE’ or 0 to ‘flag’.
IF flag AND temp AND speed THEN
flag = FALSE
ENDIF
The Boolean point ‘flag’ is assigned ‘FALSE’, on the condition that ‘flag’ AND point ‘temp’ AND
point ‘speed’ are all not zero. If the condition fails, then ‘flag’ is not assigned ‘FALSE’.
References
Refer to chapter 4, Control Statements for details of the use of the IF THEN ELSE/ELSEIF ENDIF
statements.
Relational Operators
Syntax
IF expression
or
DO WHILE expression
or
DO UNTIL expression
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...