Frames
6.2 Frame variables / assigning values to frames
Job planning
6-12 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
6.2.2 Reading and changing frame components (TR, FI, RT, SC, MI)
Function
This feature allows you to access individual data of a frame, e.g., a specific offset value or
angle of rotation. You can modify these values or assign them to another variable.
Programming
R10=$P_UIFR[$P_UIFNUM, X, RT]
]
Assign the angle of rotation RT around the X axis
from the currently valid settable zero offset
$P_UIFRNUM to the variable R10.
R12=$P_UIFR[25, Z, TR]
Assign the offset value TR in Z from the data
record of set frame no. 25 to the variable R12.
R15=$P_PFRAME[Y, TR]
Assign the offset value TR in Y of the current
programmable frame to the variable R15.
$P_PFRAME[X, TR]=25
Modify the offset value TR in X of the current
programmable frame. X25 applies immediately.
Parameters
$P_UIFRNUM This command automatically establishes the reference to
the currently valid settable zero offset.
P_UIFR[n, …, …] Specify the frame number n to access the settable frame
no. n.
TR
FI
RT
SC
MI
X Y Z
Specify the component to be read or modified:
TR Translation,
FI Translation Fine,
RT Rotation,
SC Scale scale change,
MI mirroring.
The corresponding axis X, Y, Z is also specified
(see examples).
Value range for RT rotation
Rotation around 1st geometry
axis:
-180° to +180°
Rotation around 2nd geometry
axis:
-89.999° to +90°
Rotation around 3rd geometry
axis:
-180° to +180°