CHAPTER 4 – CX-Supervisor Script Language
OMRON
Page 18
Revision 2.0
Remarks
Argument Description
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.
conditionB
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.
statementblock1
One or more statements which are performed if
conditionA
is met.
statementblock2
One or more statements which are performed if
conditionA
is not met.
statementblock3
One or more statements which are performed if
conditionB
is met.
statementblock4
One or more statements which are performed if
conditionB
is not met.
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
Содержание 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...