![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212054.webp)
OMRON
CHAPTER 6 – Functions and Methods
Revision 2.0
Page 41
Typical Examples
blink (red, TRUE)
Start blinking red.
LINE_1.blink(OxFFFFOO, status)
The object LINE_1 starts or stops blinking yellow depending on value of Boolean point ‘status’.
Colour
Syntax
objectname.colour (expression, context)
colour (expression, context)
or
objectname.colour (colourID, context)
colour (colourID, context)
An equals sign may be used as an alternative to brackets:
objectname.colour = expression
colour = expression
or
objectname.colour = colourID
colour = expression
Either spelling ‘colour’ or ‘color’ is acceptable.
Note: An equals sign may also be used for most other object commands, even if it is not directly
specified in this manual.
Remarks
Argument Description
objectname
This is the name of the object. Where a script is directly attached to an
object,
objectname
is not required.
expression
The
expression
may be an Integer point, or a calculation of constants and/or
points that produce an Integer value between 0 and 16777215. This is the
desired colour’s RGB value. (format is 0xBBGGRR).
colourID
Some colour values within the colour palette have a meaningful
colourID
.
This takes the form of the colour name, e.g., ‘black’ or ‘yellow’.
Alternatively, an integer value of 0x1000000 can be added to a number 0-65
to select a palette entry.
context
This argument is optional an may be omitted. It defines which part of the
object has it’s colour changed. May be one or more of:
@FILL – change fill colour
@FRAME – changes frame colour
If omitted both are changed. Equivalent to @FILL | @FRAME
Содержание 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...