![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212027.webp)
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
Содержание CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Страница 2: ...CX Supervisor Script Language Software Revision 2 0...
Страница 3: ......
Страница 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Страница 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Страница 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Страница 13: ......
Страница 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Страница 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Страница 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Страница 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...