orientation an positional data of a robot target are stored independantly and can be changed as such. a searched (like searchL or seachC) or a camera pos value... or updated target declared as a variable or persistant can have its orientation changed with the following:
(heres the declared data)
CONST robtarget mydropositionROTZ30:=[[211.75,662.28,351.74],[0.060461,-0.374626,-0.872132,-0.308844],[-1,0,0,0],[0.0476658,9E+09,9E+09,9E+09,9E+09,9E+09]];
PERS robtarget mydropposition:=[[228,732,272],[0.003551,0.034379,-0.946917,-0.319617],[-1,0,-1,0],[0.0456902,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST pose ROTZ30:=[[0,0,0],[0,0,0.707107,-0.707107]];
CONST orient orient1 := [1, 0, 0, 0];
You can set the rotation value from another robot target like this:
mydropposition.rot:=mydropositionROTZ30.rot;
or Alternately you can record or calculate a pose value and update it like this:
mydropposition.rot:=ROTZ30.rot;
or you can record or calculate just the orientation (quaternion) like this:
mydropposition.rot:=orient1;
as they said above there is an instruction to convert euler angles into quaterions
VAR num anglex;
VAR num angley;
VAR num anglez;
VAR pose mydroppose;
.
mydroppose.rot := OrientZYX(anglez, angley, anglex)
if you were somehow measuring those rotations or just wanted to input them from a table or something like that.
anyway good luck