omron — NULL transformation function

NULL transformation function NULL transformation function Syntax NULL Function Return a null transformation value-one with all zero components. Usage Considerations The word "null" cannot be used as a program name or variable name. Details A null transformation corresponds to a null vector (X = Y = Z = 0) and no rotation (yaw = pitch = roll = 0). Such a transformation is useful, for example, with a SHIFT function to create a transformation representing a translation with no rotation. Example Define a new transformation (new.loc) to be the result of shifting an existing transformation (old.loc) in the World coordinate directions.

new.loc = SHIFT(NULL BY x.shift,y.shift,z.shift):old.loc Determine the length of the vector described by the transformation test.loc. dist = DISTANCE(NULL, test.loc) Related Keywords CONFIG real-valued function NULL program instruction eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 371