CHAPTER 4 – CX-Supervisor Script Language
Remarks
Argument
conditionA
conditionB
statementblock1
statementblock2
statementblock3
statementblock4
Typical Examples
IF burner AND fuel > 0 AND rate > 0 THEN
lift = lift + rate/5
ELSE
count = 1
IF altitude > 140 THEN
lift = lift - 0.2
ENDIF
ENDIF
Provided a successful evaluation has been made to points 'burner' AND 'fuel' AND 'rate', point
'lift' is updated with the current value of rate divided by 5 plus 'lift'. Otherwise, a further evaluation
is required on point 'altitude'. If 'altitude' is currently greater than 140, then 'lift' is decremented by
0.2.
IF burner AND fuel > 0 AND rate > 0 THEN
lift = lift + rate/5
ELSE
IF altitude > 140 THEN
lift = lift - 0.2
ENDIF
ENDIF
IF burner AND fuel > 0 AND rate > 0 THEN
lift = lift + rate/5
ELSEIF altitude > 140 THEN
lift = lift - 0.2
ENDIF
Page 18
The condition is made up of points and constants, using relational, logical or
arithmetical notation as a test. The condition can evaluate Boolean state
'TRUE' and 'FALSE', Integer or Real numbers, or a text string.
This condition is nested in the first condition, either on a successful or
unsuccessful evaluation of conditionA. The condition is made up of points
and constants, using relational, logical or arithmetical notation as a test. The
condition can evaluate Boolean state 'TRUE' and 'FALSE', Integer or Real
numbers, or a text string. There is no limit to the number of nested
conditional statements.
One or more statements which are performed if conditionA is met.
One or more statements which are performed if conditionA is not met.
One or more statements which are performed if conditionB is met.
One or more statements which are performed if conditionB is not met.
Description
OMRON
Revision 2.0
Need help?
Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?
Questions and answers