Control Statements - Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual

Script language
Table of Contents

Advertisement

CHAPTER 4 – CX-Supervisor Script Language
Remarks
Argument
Pointname
Expression
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
Page 14
The point name to be assigned a value based on a logical 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'.
Description
OMRON
Revision 2.0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents