6
12.98 Frames
6.2 Frame variables/assi
nin
values to frames
6
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC
810D
840Di
ï›™
Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
6-199
Reading and changing frame components
Programming (examples)
R10=$P_UIFR[$P_UIFRNUM, X, RT]
Assign the angle of rotation RT around the X
axis from 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.
Explanation of the commands
$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
Specify the component to be read or modified:
TR translation, FI translation fine, RT rotation, SC scale change, MI
mirroring.
The corresponding axis is also specified (see examples).