CHAPTER 6 – Functions and Methods
OMRON
Page 42
Revision 2.0
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 Description
objectname
This is the name of the selectable object. Where a script is directly attached
to an object,
objectname
is not required.
expression
The expression can be made up of points resulting in ‘TRUE’ or ‘FALSE’.
Typical Examples
disable (TRUE)
The current pushbutton object to which this example applies is disabled.
PUSH_8.disable (count AND flag)
Содержание 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...