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

Script language
Table of Contents

Advertisement

CHAPTER 6 – Functions and Methods
Remarks
Argument
objectname
expression
context
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
objectname
x co-ordinate
y co-ordinate
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.
Page 44
This is the name of the object. Where a script is directly attached to an
object, objectname is not required.
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.
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
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.
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.
Description
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?

Questions and answers

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents