Coordinate transformation (FRAMES)
5.7 NCU global frames
Job planning
306 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
$P_CHBFRMASK and $P_NCBFRMASK complete basic frame
The system variables
$P_CHBFRMASK and $P_NCBFRMASK can be used to select, which basic
frames to include in the calculation of the "complete" basic frame. The variables can only be
programmed in the program and read via the operator panel interface. The value of the
variable is interpreted as bit mask and determines which basic frame field element of
$P_ACTFRAME is included in the calculation.
$P_CHBFRMASK can be used to define which channel-specific basic frames are included, and
$P_NCBFRMASK can be used to define which NCU-global basic frames are included in the
calculation.
When the variables are programmed, the total basic frame and the total frame are calculated
again. After a reset and in the default setting, the value of
$P_CHBFRMASK = $MC_CHBFRAME_RESET_MASK and
$P_NCBFRMASK = $MC_CHBFRAME_RESET_MASK.
e.g.,
$P_NCBFRMASK = 'H81' ;$P_NCBFRAME[0] : $P_NCBFRAME[7]
$P_CHBFRMASK = 'H11' ;$P_CHBFRAME[0] : $P_CHBFRAME[4]
$P_IFRAME Current settable frame
The predefined frame variable
$P_IFRAME can be used to read and write the current settable
frame, which is valid in the channel, in the parts program. The written settable frame is
immediately included in the calculation.
In the case of NCU-global settable frames, the modified frame acts only in the channel in
which the frame was programmed. If the frame is to be modified for all channels of an NCU,
$P_UIFR[n] and $P_IFRAME must be written simultaneously. The other channels must then
activate the corresponding frame, e.g., with G54.
$P_PFRAME Current programmable frame
$P_PFRAME is the programmed frame that results from the programming of TRANS/ATRANS,
G58/G59
, ROT/AROT, SCALE/ASCALE, MIRROR/AMIRROR or from the assignment of CTRANS, CROT,
CMIRROR
, CSCALE to the programmed FRAME.
Current, programmable frame variable that establishes the reference between the settable
● zero system (SZS) and the
● workpiece coordinate system (WCS)
P_ACTFRAME Current complete frame
The resulting current complete frame $P_ACTFRAME is now a chain of all basic frames, the
current settable frame and the programmable frame. The current frame is always updated
whenever a frame component is changed.
$P_ACTFRAME corresponds to
$P_PARTFRAME : $P_SETFRAME : $P_EXTFRAME : $P_ACTBFRAME : $P_IFRAME :
$P_TOOLFRAME : $P_WPFRAME : $P_TRAFRAME : $P_PFRAME : $P_CYCFRAME