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

Script language
Table of Contents

Advertisement

CHAPTER 6 – Functions and Methods
Typical Examples
TEXT_3.colour (blue)
or
TEXT_3.colour = blue
The object 'TEXT_3' is set to blue.
BALL.colour (35 + 0x1000000)
The object 'BALL' is set to colour 35 from the colour palette.
BALL.colour (0xFF0000,@FILL)
The object 'BALL' is set to blue.
shade = tint1 + tint2
IF shade > 65 OR shade < 0 THEN
shade = 0
ENDIF
ELLIPSE_1.colour (shade + 0x1000000)
The point 'shade' is set to a value based on 'tint1' and 'tint2', and is tested first to ensure that it is a
value between 0 and 65. If 'shade' falls outside this range, then it cannot be applied as a colour to an
object, and is therefore reset to 0 (or black). ELLIPSE_1' is set to the palette colour of the value of
shade.
References
Refer to chapter 6, Colour Palette for details of colour names and colour numbers.
Disable
Syntax
objectname.disable (expression)
Remarks
Argument
objectname
expression
Typical Examples
disable (TRUE)
The current pushbutton object to which this example applies is disabled.
PUSH_8.disable (count AND flag)
Page 42
This is the name of the selectable object. Where a script is directly attached
to an object, objectname is not required.
The expression can be made up of points resulting in 'TRUE' or 'FALSE'.
Description
OMRON
Revision 2.0

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents