Colour - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

Object Commands
6-1-4

Colour

Note:
48
Argument
Description
colour
Colour to blink to. 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.
status
This argument may be omitted. May be on of:
TRUE - turn blinking On.
FALSE - turn blinking Off.
If omitted, TRUE is assumed.
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'.
Syntax
objectname.colour (expression, context)
colour (expression, context)
or
objectname.colour (colourID, context)
colour (colourID, context)
An
equals
sign
brackets:
objectname.colour = expression
colour = expression
or
objectname.colour = colourID
colour = expression
Either spelling 'colour' or 'color' is acceptable.
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.
SECTION 6 Functions and Methods
may be
used
as an
alternative to

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents