CHAPTER 2 - Expressions
OMRON
Page 4
Revision 2.0
the current object is resized accordingly. This example is an Integer or Real example, whereby the
value of the point either falls inside or outside the specified range. In this example, the point 'redcars'
must fall between 0 and 40 for the expression to be met.
The following example of a more complex expression contains a test on point ‘position’. If ‘position’
is more than 300 in value, and ‘position’ is less than 450 in value, i.e. the value of ‘position’ is
between 300 and 450, then the expression has been met, and an action is initiated (in this instance the
current object is made visible if the expression is met). This example is a Boolean example, whereby
either the expression is met (‘TRUE’) or not met (‘FALSE’). A Boolean value is always returned
from a
Digital Expression:
field, as opposed to an
Expression:
field, which returns an Integer or Real
value.
Operators used within this example are fully described in chapter 4, Logic and Arithmetic.
The following example of an expression contains a value point ‘prompt’ which is included at the
value position denoted by a ‘#’ symbol.
Содержание 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...