K2: Axis Types, Coordinate Systems, Frames
10.5 Frames
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
747
Reading or writing mirroring component-by-component is independent of the machine data:
MD10612 $MN_MIRROR_TOGGLE
A value = 0 means that the axis is not mirrored and a value = 1 means that the axis will always be mirrored,
irrespective of whether it has already been mirrored or not.
Axial replacement G58, G59 (only 840D sl)
The translation component of the programmable frame is split into an absolute component and a component for
the total of all additively programmed translations. The absolute component can be changed using
TRANS
,
CTRANS
or by writing the translation components, in which the additive component is set to zero.
G58
changes
only the absolute translation component for the specified axis; the total of additively programmed translations is
retained.
G58 X... Y... Z... A... ...
G59
is used to axially overwrite the additively programmed translations for the specified axes that were
programmed with
ATRANS
.
G59 X... Y... Z... A... ...
Example:
G58
and
G59
can only be used if:
MD24000 $MC_FRAME_ADD_COMPONENTS (frame components for G58 / G59) = TRUE
Otherwise Alarm "18311 Channel %1 block %2 frame: instruction not permissible" is output.
The function can also only be used in conjunction with a configured fine offset for the programmable frame. If
G58
or
G59
is used without a configured fine offset, alarm "18312 channel %1 block %2 frame: Fine offset not
configured" is output.
The absolute component of the translation is stored in the rough offset component and the additive translation
component is stored in the fine offset component. To this end, the programmable frame or the fine offset is
expanded.
$P_NCBFR[0,x,mi]=1
; the x axis is always mirrored.
$P_NCBFR[0,x,mi]=0
; x axis mirroring off.
TRANS X10 Y10 Z10
ATRANS X5 Y5
; Total translations X15 Y15 Z10
G58 X20
; Total translations X25 Y15 Z10
G59 X10 Y10
; Total translations X30 Y20 Z10