Download Print this page

Omron NS Reference Manual page 32

Hide thumbs Also See for NS:

Advertisement

Section2 Functions
NS series Macro Reference
GETPARTS
Applicable versions
Format
Function
Return Value
Example
Gets displayed rectangle of the object
System version 2 or higher
GETPARTS(n, Left, Top, Right, Bottom)
Get displayed rectangle of the object ID number "n". Set coordinate (Left, Top) at
the upper left, (Right, Bottom) at the lower right on rectangle.
(Left T op )
Setting range is 0 to 1023. If you set other value or ID number that does not exist,
return value 1 will be returned.
0: Completed normally
-1:Specified no object
GETPARTS(1, $W0, $W1, $W2, $W3);
'Set coordinate of displayed rectangle of object ID number1
'to ($W0, $W1)-($W2, $W3)
(Right, Bottom)
12

Advertisement

loading

This manual is also suitable for:

Ns-series