V+ Language Reference Guide, v17.x


SET program instruction

Syntax

SET location_var = location_value

Function

Set the value of the location variable on the left equal to the location value on the right of the equal sign.

Parameters

location_var Single location variable or compound transformation that ends with a transformation variable.
location_value Location value of the same type as the location variable on the left of the equal sign, defined by a variable or function (or compound transformation).

Details

An error message is generated if the right-hand side is not defined or is not the same type of location representation (that is, transformation or precision point).

If a compound transformation is specified to the left of the equal sign, only its right-most relative transformation is defined. An error condition results if any other transformation in the compound transformation is not already defined.

If a transformation variable is specified on the left-hand side, the right-hand side can contain a transformation, a compound transformation, or a transformation function.

Examples

Set the value of the transformation pick equal to the location of corner plus the location of shift relative to corner:

SET pick = corner:shift

Set the value of the precision point #place equal to that of the precision point #post:

SET #place = #post

Set the value of the transformation part to the current robot location, relative to the transformation pallet.

SET pallet:part = HERE

Set the value of loc1 to X = 550,Y = 450, Z = 750, y = 0, p = 180, r = 45:

SET loc1 = TRANS(550, 450, 750, 0, 180, 45)

Related Keywords

HERE monitor command

HERE program instruction

POINT monitor command


Submit comments to: techpubs@adept.com
Last modified on: 3/27/2012
Copyright © 1994 - 2012. Adept Technology, Inc.