![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212059.webp)
CHAPTER 6 – Functions and Methods
OMRON
Page 46
Revision 2.0
Vertical Fill
Syntax
objectname.vertical%fill (expression, context)
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
This is an arithmetic expression that must return a value between 0 and 100.
On return of a valid result, the fill commences from bottom to top.
context
This argument may be omitted. May be one of:
@DOWN – Fill object downwards
@UP – Fill object upwards
If omitted, @UP is assumed
Typical Examples
vertical%fill (50)
The current object to which this example applies is filled by 50%.
ELLIPSE_1.vertical%fill (OIL_QUANTITY, @DOWN)
The object ‘ELLIPSE_1’ is filled provided the point ‘OIL QUANTITY’ returns a valid result,
between 0 and 100.
Visible
Syntax
objectname.visible (expression)
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 can be made up of points resulting in ‘TRUE’ or ‘FALSE’.
Typical Examples
visible (TRUE)
The current object to which this example applies becomes visible.
POLYLINE_8.visible (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...