Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual page 54

Script language
Table of Contents

Advertisement

OMRON
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
objectname
expression
colourID
context
Revision 2.0
This is the name of the object. Where a script is directly attached to an
object, objectname is not required.
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).
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.
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.
CHAPTER 6 – Functions and Methods
Description
Equivalent to @FILL | @FRAME
Page 41

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents