![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212016.webp)
OMRON
CHAPTER 2 - Expressions
Revision 2.0
Page 3
CHAPTER 2
Expressions
This chapter describes the use of expressions within scripts.
Expressions consist of operators and operands:
♦
Operators are relational, arithmetic, logical and include many functions.
♦
Operands are constants or point variables.
Expressions can be used in a script as part of a statement (refer to chapter 3 Scripts, chapter 4 CX-
Supervisor Script Language, and Chapter 6 Functions and Methods). However expressions can be
applied to the following actions directly using the associated
Expression:
or
Digital Expression:
field:
♦
Blink.
♦
Close page.
♦
Colour Change (Analogue).
♦
Colour Change (Digital).
♦
Display Status Text.
♦
Display Text Point.
♦
Display Value.
♦
Edit point value (Analogue).
♦
Edit point value (Digital).
♦
Edit point value (Text).
♦
Enable/Disable.
♦
Horizontal move.
♦
Horizontal percentage fill.
♦
Resize height.
♦
Resize width.
♦
Rotate.
♦
Show page.
♦
Vertical move.
♦
Vertical percentage fill.
♦
Visible.
The following example of a simple expression contains a point (‘redcars’) attached to a particular
object with an appropriate object action, Resize (Height). At runtime, once the value of the point has
been met within the attributes declared within the
Active Expression Range/Required Height:
fields,
Содержание 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...