CHAPTER 6 – Functions and Methods
OMRON
Page 44
Revision 2.0
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 left to right.
context
This argument is optional and may be omitted. It defines which side of the
object is filled from. May be one of:
@LEFT – fill from the left
@RIGHT – fill from the right
If omitted, @LEFT is assumed
Typical Examples
horizontal%fill (50)
The current object to which this example applies is filled by 50%.
ELLIPSE_1.horizontal%fill (GAS_LEVEL, @RIGHT)
The object ‘ELLIPSE_1’ is filled from the right, provided the point ‘GAS_LEVEL’ returns a valid
result, between 0 and 100.
Move
Syntax
objectname.move (x co-ordinate, y co-ordinate)
Remarks
Argument Description
objectname
This is the name of the object. following any amendment to the object name.
Where a script is directly attached to an object,
objectname
is not required.
x co-ordinate
y co-ordinate
The
x
and
y
co-ordinates of the origin of the object at its resultant position in
pixels are specified in the form (x, y). Points alone or as part of an arithmetic
expression may be used as a basis for this expression.
Typical Examples
move (100, 200)
The current object to which this example applies is moved to the specified position.
POLYGON_1.move (xpos, ypos/5)
The object ‘POLYGON_1’ is moved to the position specified by points ‘xpos’ and ‘ypos’ divided by
5.
Summary of Contents for CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Page 2: ...CX Supervisor Script Language Software Revision 2 0...
Page 3: ......
Page 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Page 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Page 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Page 13: ......
Page 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Page 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Page 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Page 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...