N110
N120 / N220
N130 / N230
N140 / N240
10.5.7
Predefined frame functions
10.5.7.1
Inverse frame
To round off the frame arithmetic, the part program provides a function which calculates the
inverse frame from another frame. The chaining between a frame and its inverse frame always
produces a zero frame.
FRAME INVFRAME( FRAME )
Frame inversion is an aid for coordinate transformations. Measuring frames are usually
calculated in the WCS. If you should wish to transform this calculated frame into another
coordinate system, i.e. the calculated frame should be entered into any desired frame within
the frame chain, then the calculations below should be used.
The new complete frame is a chain of the old complete frame and the calculated frame.
$P_ACTFRAME = $P_ACTFRAME : $AC_MEAS_FRAME
The new frame in the frame chain is therefore:
Target frame is $P_SETFRAME:
$P_SETFRAME = $P_ACTFRAME : $AC_MEAS_FRAME : INVFRAME($P_ACTFRAME) :
$P_SETFRAME
The target frame is the nth channel basic frame $P_CHBFRAME[n]:
n = 0: TMP = $P_PARTFRAME : $P_SETFRAME : $P_EXTFRAME : $P_NCBFRAME[0..k]
n <> 0: TMP = $P_PARTFRAME : $P_SETFRAME : $P_EXTFRAME : $P_NCBFRAME[0..k] :
$P_CHBFRAME[0..n-1]
k = $MN_MM_NUM_GLOBAL_BASE_FRAMES
$P_CHBFRAME[n] = INVFRAME(TMP) : $P_ACTFRAME : $AC_MEAS_FRAME :
INVFRAME($P_ACTFRAME) : TMP : $P_CHBFRAME[n]
The target frame is $P_IFRAME:
TMP = $P_PARTFRAME : $P_SETFRAME : $P_EXTFRAME : $P_BFRAME
$P_IFRAME = INVFRAME(TMP) : $P_ACTFRAME : $AC_MEAS_FRAME :
INVFRAME($P_ACTFRAME) : TMP : $P_IFRAME
Application example:
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Writing of the settable data management frame $P_UIFR[1]:
Moving the zero point of the Z axis to 10 mm
Mapping the axial frame data:
Channel 1: Z ≙ AX1 ⇔ channel 2: Z ≙ AX4
Channel synchronization for consistent activation of new frame data
Activating the new frame data
Checking the zero point of the Z axis for: 10 mm
zero frame
K2: Axis Types, Coordinate Systems, Frames
10.5 Frames
765