Move; Rotate - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

Object Commands
6-1-8

Move

6-1-9

Rotate

The object 'ELLIPSE_1' is filled from the right, provided the point
'GAS_LEVEL' returns a valid result, between 0 and 100.
Syntax
objectname.move (x co-ordinate, y co-ordinate)
Remarks
Argument
Description
objectname
This is the name of the object. Where a script is directly
attached to an object, objectname is not required.
x co-ordinate
The x and y co-ordinates of the origin of the object at its
y co-ordinate
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.
Syntax
objectname.rotate
ycoord)
Remarks
Argument
Description
objectname
This is the name of the object. Where a script is directly
attached to an object, objectname is not required.
angle
The angle of rotation can range between 0 to 360 in a
clockwise direction. Points alone, or as part of an
arithmetic expression may be used as an angle.
SECTION 6 Functions and Methods
(angle,
context,
fixed,
xcoord,
51

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents