omron — SET program instruction

SET program instruction 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: eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 461