Download Print this page

Omron NS Reference Manual page 35

Hide thumbs Also See for NS:

Advertisement

Section2 Functions
NS series Macro Reference
MOVEPARTS
Applicable versions
Format
Function
Return Value
Example
Reference
When setting macro "MOVEPARTS" for ON/OFF button, Word button, Command button and
Multifunction Object and moving these objects or these objects with frame, select "Touch Off Timing".
If "Touch On Timing" is selected, the status of the object will be pressed.
Moves object display area
System version 2 or higher
MOVEPARTS (n,x,y)
Move the object ID number "n" to specified coordinate (x, y).
Specify coordinate upper left of the moving object for "x, y".
Setting range for "n" is 0 to 1023. If the value out side the range or ID number that
does not exist is specified, return value –1 will be returned. There is no restriction
on setting value for "x, y". However, set the value for the coordinate of x and y in
order that the objects are displayed inside of the screen. All objects or some
objects on the screen may be deleted depending on the set value so care must be
taken.
0: Completed normally
-1: Specified no object
MOVEPARTS (3, 150, 200);
Move the object ID number 3 to position (150,200)
15

Advertisement

loading

This manual is also suitable for:

Ns-series