SINUMERIK 840D sl NC programming. Programming Manual (2020) - page 11

 

  Index      Manuals     SINUMERIK 840D sl NC programming. Programming Manual (2020)

 

Search            copyright infringement  

 

   

 

   

 

Content      ..     9      10      11      12     ..

 

 

 

SINUMERIK 840D sl NC programming. Programming Manual (2020) - page 11

 

 

Work preparation
3.9 Transformations
Meaning
TRACYL(<d>):
Activate TRACYL with the first TRACYL data set and working diameter <d>
TRACYL (<d>,<n>):
Activate TRACYL with the <n>th TRACYL data set and working diameter
<d>
<d>:
Reference or working diameter
The value must be greater than 1.
<n>:
TRACYL data set number (optional)
Range of values:
1, 2
<k>:
The parameter <k> is only relevant for transformation type 514
k = 0:
without groove side correction
k = 1:
with groove side correction
If the parameter is not specified, then the parameterized basic position
applies:
$MC_TRACYL_DEFAULT_MODE_<n>
With <n> = TRACYL data set number
Note
A TRACYL transformation active in the channel is switched-off with:
• Deactivate transformation: TRAFOOF
• Activation of another transformation: E.g. TRAANG, TRANSMIT, TRAORI
Example
Program code
Comment
N40 TRACYL(40.)
; Activate TRACYL with the first TRACYL data set
and working diameter 40 mm.
Further information
Program structure
A part program for milling a groove with TRACYL transformation 513 (TRACYL with groove side
offset) generally comprises the following steps:
1. Select tool.
2. Select TRACYL.
3. Select suitable coordinate offset (frame).
4. Positioning.
5. Program OFFN.
6. Select TRC.
7. Approach block (position TRC and approach groove side).
NC programming
698
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.9 Transformations
8. Groove center line contour.
9. Deselect TRC.
10.Retraction block (retract TRC and move away from groove side).
11.Positioning.
12.TRAFOOF.
13.Reselect original coordinate shift (frame).
Contour offset (OFFN)
In order to mill grooves using TRACYL transformation 513, the center line of the groove and half
of the groove width via the OFFN address are programmed in the part program.
To avoid damage to the groove side, OFFN acts only when the tool radius compensation is active.
It is possible to change OFFN within a part program. This allows the groove center line to be
offset from the center:
① OFFN
② Programmed path
Note
OFFN should be at least as large as the tool radius to avoid damage occurring to the opposite side
of the groove wall.
Note
OFFN acts differently with TRACYL than it does without TRACYL. Since, even without TRACYL,
OFFN is included when TRC is active, OFFN should be reset to zero after TRAFOOF.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
699
Work preparation
3.9 Transformations
NOTICE
Effect of OFFN depends on the transformation type
For TRACYL transformation 513 (TRACYL with groove side offset), half the groove width is
programmed for OFFN.
For TRACYL transformation 512 (TRACYL with groove side offset), the value of OFFN acts as an
allowance for the TRC.
Tool radius compensation (TRC)
For TRACYL transformation 513, the TRC is not taken into account relative to the groove side, but
to the programmed center of the groove. In order that the tool travels to the left of the groove
side, statement G42 must be programmed instead of G41 or the value of OFFN specified with a
negative sign.
Tool diameter
With TRACYL and a tool whose diameter is less than the groove width, the same groove side
geometry is not generated as with a tool whose diameter is the same as the groove width. To
improve the precision, it is recommended that the tool diameter is selected to be only slightly
less than the groove width.
Axis utilization
Note
The following axes cannot be used as a positioning axis or a reciprocating axis:
• The geometry axis in the peripheral direction of the cylinder peripheral surface (Y axis).
• The additional linear axis for groove side compensation (Z axis).
3.9.8.3
Activating an oblique angle transformation with programmable angle (TRAANG)
The oblique angle transformation with programmable angle is activated in the part program or
synchronized action using the TRAANG statement.
NC programming
700
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.9 Transformations
Restriction for kinematic chains
For a parameterization with machine data, the angle α of the inclined axis with respect to the
corresponding coordinate axis is defined in a rectangular coordinate system via machine data.
The angle α can be changed when called via TRAANG(<α>). A changed angle results in a change
to the kinematic model, so other applications may also be affected by this. A specification of the
angle is therefore only permissible if the angle is identical with the angle resulting from the
kinematic chain.
Note
Angle definition
The angle is only defined if the inclined axis results from the rotation around a coordinate axis.
There is therefore only one geometry axis, which is not parallel to one of the coordinate axes and
lies in the main plane.
Syntax
TRAANG
TRAANG()
TRAANG(, <n>)
TRAANG(<α>)
TRAANG(<α>,<n>)
Meaning
TRAANG:
Activate TRAANG with the first TRAANG data set and last valid angle <α>
TRAANG():
TRAANG(, <n>):
Activate TRAANG with the <n>th TRAANG data set and last valid angle
<α>
TRAANG(<α>):
Activate TRAANG with the first TRAANG data set and angle <α>
TRAANG(<α>,<n>):
Activate TRAANG with the <n>th TRAANG data set and angle <α>
<α>:
Angle of the inclined axis (optional)
Value range:
-90° < α < + 90°
The initial state parameterized in the machine data is effective if an angle
is not specified:
MD2xxxx $MC_TRAANG_ANGLE_<n>
<n>:
TRAANG data set number (optional)
Value range:
1, 2
Note
Oblique angle transformation TRAANG active in the channel is deactivated using:
• Deactivate transformation: TRAFOOF
• Activation of another transformation: E.g. TRACYL, TRANSMIT, TRAORI
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
701
Work preparation
3.9 Transformations
Example
Program code
Comment
N20 TRAANG(45)
; Activate TRAANG with the first TRAANG data set and angle 45°
3.9.8.4
Oblique plunge-cutting on grinding machines (G5, G7)
The G commands G7 and G5 are used to simplify programming of oblique plunge-cutting on
grinding machines with "inclined axis (TRAANG)", so that when plunge cutting, only the inclined
axis is traversed.
Only the required end position of the plunge-cutting motion has to be programmed in X and Z.
For G7, starting from the actual position of the X axis, the NC calculates and approaches the
programmed end position and angle α of the inclined axis.
The starting position is calculated from the point where the two straight lines intersect:
• Straight line parallel to the Z axis, at a distance from the actual position of the X axis
• Straight line parallel to the inclined axis through the programmed end position
With the subsequent G5, the inclined axis is traversed to the programmed end position.
Syntax
G7 <Endpos_X> <Endpos_Z>
G5 <Endpos_X>
Meaning
G7:
Calculate the starting position for the oblique plunge-cutting and approach.
G5:
Traverse the inclined axis to the programmed end position
<Endpos_X>:
X axis end position
<Endpos_Z>:
End position of the Z axis
NC programming
702
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.9 Transformations
Example
˞
80
;
1
1
= =0
0
&0
$60
①
Grinding wheel
②
Workpiece
③
Parallel to the inclined axis through the programmed end position
④
Starting position
⑤
Plunge-cutting: Starting position
⑥
Plunge-cutting: End position
⑦
Parallel to the Z axis, at a distance from the actual position of the X axis
X
Geometry axis
Z
Geometry axis
ZM
Machine axis
UM
Machine axis
Figure 3-5
Programming an inclined axis
Program code
Comment
N... G18
; Select XZ plane.
N40 TRAANG (45.0)
; Activate TRAANG transformation, angle = 45°
N50 G7 X40 Z70 F4000
; Calculate the starting position and approach
N60 G5 X40 F100
; Traverse inclined axis to the end position.
N70 ...
3.9.9
Activate concatenated transformation (TRACON)
A configured concatenated transformation is activated in the part program or synchronized
action via the TRAFOON (Page 728) or TRACON operation.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
703
Work preparation
3.9 Transformations
To be able to activate a transformation parameterized with a kinematic chain with TRACON, this
must be parameterized in the system variable $NT_TRACON_CHAIN.
Syntax
TRACON(<Trafo_No>,<Par_1>,...,<Par_n>,<Par_n+1>)
TRAFOOF
Meaning
TRACON:
Activate concatenated transformation
If another transformation was previously activated, it is implicitly
disabled by means of TRACON().
<Trafo_No>:
Number of the concatenated transformation
Type:
INT
Value range:
0 ... 2
Value:
0, 1
First/only concatenated transformation
2
Second concatenated transformation
Not
Same meaning as with 0 or 1
speci-
fied
Note:
Values not equal to 0, 1, 2 generate an error alarm.
<Par_1>, ..., <Par_n>,
Parameters for the concatenated transformations
<Par_n+1>:
<Par_1>, ..., <Par_n>
Parameters of the first transforma-
tion in the chain
The actual number depends on the
transformation type:
• TRAORI: 2 parameters
• TRACYL: 1 to 2 parameters
<Par_n+1>
Parameters of the second transfor-
mation in the chain (TRAANG)
≙ angle of the inclined axis
If parameters are not set, the defaults or the parameters last used
take effect. Commas must be used to ensure that the specified pa-
rameters are evaluated in the sequence in which they are expected,
if default settings are to be effective for previous parameters. In par-
ticular, a comma is required before at least one parameter, even
though it is not necessary to specify <Trafo_No> - for example TRA-
CON( , 3.7).
TRAFOOF:
Deactivate the last activated (concatenated) transformation
NC programming
704
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.9 Transformations
Example
Program code
Comment
N230 TRACON(1,45.)
; Activate first concatenated transformation.
; The previously active transformation is automatically de-
selected.
; The angle for the inclined axis is 45°.
N330 TRACON(2,40.)
; Activate second concatenated transformation.
; The angle for the inclined axis is 40°.
N380 TRAFOOF
; Deactivate second concatenated transformation.
3.9.10
Cartesian PTP travel
3.9.10.1
Activating/deactivating Cartesian PTP travel (PTP, PTPG0, PTPWOC, CP)
The Cartesian point-to-point or PTP travel is activated/deactivated in the NC program using G
group 49 commands.
The commands are modal. The default setting is travel with Cartesian path motion (CP).
Contrary to CP, for active PTP travel, only the Cartesian target point is transformed, and the
machine axes are traversed in synchronism.
In order that the Cartesian target point can be uniquely converted into machine axis values, in
addition to position and angular data, information is also necessary that identifies the axis
positions. This data is retrieved from the adjustable addresses STAT (Page 706) and TU
(Page 710).
Requirement
Transformation TRAORI_DYN, TRAORI_STAT, TRANSMIT_K, RCTRA or ROBX is active
(conventional TRAORI and TRANSMIT).
RCTRA or ROBX are not available for kinematic chains.
Syntax
PTP / PTPG0 / PTPWOC
CP
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
705
Work preparation
3.9 Transformations
Meaning
PTP:
Activating point-to-point motion PTP
The programmed Cartesian position in G0 and G1 blocks is approached with synchro-
nous axis motion.
PTPG0:
Activating point-to-point motion PTPG0
Only in G0 blocks is the programmed Cartesian position approached with synchronous
axis motion. In G1 blocks, a switchover is made to CP path motion.
PTPWOC:
Activate point-to-point movement PTPWOC (only possible if orientation transformation
is active)
Just the same as PTP, however, without any compensatory motion, which is caused by
motion of rotary axes and orientation axes.
CP:
Deactivating point-to-point motion and activating path motion CP
Cartesian path motion is executed with CP.
Note
PTPWOC
It does not make any sense to use PTPWOC in combination with a RCTRA or ROBX transformation!
RCTRA or ROBX are not available for kinematic chains.
Examples
See:
• Example 1: PTP travel of a 6-axis robot with ROBX transformation (Page 713)
• Example 2: PTP travel for generic 5-axis transformation (Page 714)
• Example 3: PTPG0 and TRANSMIT (Page 715)
3.9.10.2
Specify the position of the joints (STAT)
Position data with Cartesian coordinates and specification of the tool orientation are not
sufficient to uniquely identify the machine position, as several joint positions are possible for the
same tool orientation. Depending on the kinematics involved, there can be as many as 8
different joint positions. These different joint positions are transformation-specific.
In an order to avoid any ambiguity, the joint positions are specified under the STAT address.
Note
The control takes into account programmed STAT values only for PTP motions. They are ignored
with CP motions because a change of position is not normally possible while traversing with an
active transformation. When traversing with active CP, the position for the target point is taken
from the starting point.
Syntax
STAT=<Value>
NC programming
706
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.9 Transformations
Meaning
STAT:
Adjustable address to specify joint positions
<value>:
Binary or decimal value
Contains one bit for each possible position. The significance of the bits is defined by the
particular transformation.
The use of STAT is to be illustrated by the example of a 6-axis articulated robot with milling
spindle. The kinematic transformation is to be realized using the ROBX robot transformation
(precondition: Compile cycle "RMCC/ROBX Transformation Extended Robotics" is loaded and
active).
Note
Example with ROBX only with conventional machine data parameterization
The example is only possible with machine data parameterization, not with kinematic chains.
$
$
$
$
$
$
Axes A1, A2 and A3 are the main axes of the articulated robot. The axes A4, A5 and A6, which
are also designated as head or hand/wrist axes, are positioned in the working area with the main
axes. The additional motion options of the hand/wrist axes enable the milling spindle to be
orientated in space as required for the particular machining task. Various articulated joint
positions are possible to achieve the same tool orientation.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
707
Work preparation
3.9 Transformations
The articulated joint positions required for machining are selected by programming bit 0 ... 2 of
the adjustable STAT address:
Bit 0
Position of the intersection points of the hand/wrist axes (A4, A5, A6)
= 0
Basic range (shoulder right)
The robot is in the basic range if the X value of
the intersection point of the hand/wrist axes
is positive in relation to to the A1 coordinate
system.
= 1
Overhead range (shoulder left)
The robot is in the overhead range if the X
value of the intersection point of the hand/
wrist axes is negative in relation to the A1 co-
ordinate system.
%LW
%LW
;
;
Example: The intersection point of
the hand/wrist axes lies in the basic
range
Bit 1
Position of axis 3
The angle at which the value of bit 1 changes depends on the particular robot type. The
following applies to robots whose axes 3 and 4 intersect:
= 0
A3 <0° (elbow down)
= 1
A3 ≥0° (elbow up)
Note:
For robots with an offset between axes 3 and 4, the
angle at which the value of bit 1 changes depends on
the magnitude of this offset.
Offset between A3 and A4
Bit 2
Position of axis 5
= 0
A5 ≥0° (no handflip)
= 1
A5 <0° (handflip)
Program example:
Program code
Comment
N14 T="T8MILLD20" D1
; $TC_DP3[1,1]=132.95
NC programming
708
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.9 Transformations
Program code
Comment
N16 ORIMKS
N17 G1 PTP X1665.67 Y0 Z1377.405 A=0 B=0 C=0 STAT=... F2000
; The STAT value defines
the articulated joint
positions (see below)
STAT=1 ('B001')
→ Shoulder left
=
→ Elbow down
→ No handflip
<
;
STAT=2 ('B010')
→ Shoulder right
=
→ Elbow up
→ No handflip
<
;
STAT=5 ('B101')
→ Shoulder left
=
→ Elbow down
→ Handflip
<
;
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
709
Work preparation
3.9 Transformations
STAT=6 ('B110')
→ Shoulder right
=
→ Elbow up
→ Handflip
<
;
TRANSMIT_K (conventional TRANSMIT)
For TRANSMIT_K, the address STAT is used to resolve the ambiguity regarding the pole.
The following applies if the rotary axis must rotate through 180º or the contour for CP would go
through the pole:
Bit 0
Only relevant for $NT_POLE_SIDE_FIX[n] = 1 or 2
for machine data parameterization the $MC_TRANSMIT_POLE_SIDE_FIX_1/2 = 1 or 2:
= 0
Rotary axis traverses through +180º or rotates clockwise.
= 1
Rotary axis rotates through -180º or rotates counterclockwise.
Bit 1
Only relevant for $NT_POLE_SIDE_FIX[n] = 0
for machine data parameterization the $MC_TRANSMIT_POLE_SIDE_FIX_1/2 = 0:
= 0
The axis traverses through the pole. The rotary axis does not rotate.
= 1
The axis rotates around the pole. Bit 0 of STAT is relevant.
3.9.10.3
Specify the sign of the axis angle (TU)
In order that rotary axes can also approach axis angles exceeding +180° or less than -180°
without requiring a special traversing strategy (e.g. intermediate point), the sign of the axis
angle must be specified under the adjustable address TU.
Note
The control only takes into account programmed TU values for PTP motion. CP motion is ignored.
Syntax
TU=<Value>
NC programming
710
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.9 Transformations
Meaning
TU:
Adjustable address to specify axis angle signs
<value>:
Binary or decimal value
For each axis that is involved in the transformation, there is a bit that indicates the sign
of the axis angle (θ), and therefore the traversing direction.
Bit
= 0
Axis angle sign: +
Axis angular range: 0° ≤ θ < 360°
= 1
Axis angle sign: -
Axis angular range: - 360° < θ < 0°
Example: 6-axis articulated robot
$
$
$
$
$
$
Bit
Meaning
Value
Axis angle
Axis angle
sign
Bit 0 1)
Sign for the axis angle of A1
= 0
+/-
≥ 0°
= 1
-
< 0°
Bit 1 1)
Sign for the axis angle of A2
= 0
+/-
≥ 0°
= 1
-
< 0°
Bit 2 1)
Sign for the axis angle of A3
= 0
+/-
≥ 0°
= 1
-
< 0°
Bit 3 1)
Sign for the axis angle of A4
= 0
+/-
≥ 0°
= 1
-
< 0°
Bit 4 1)
Sign for the axis angle of A5
= 0
+/-
≥ 0°
= 1
-
< 0°
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
711
Work preparation
3.9 Transformations
Bit
Meaning
Value
Axis angle
Axis angle
sign
Bit 5 1)
Sign for the axis angle of A6
= 0
+/-
≥ 0°
= 1
-
< 0°
1)
The actual TU bit numbers obtained from the channel axis numbers of the robot axes! In the example,
robot axes (A1 to A6) are the first six axes in the channel; as a consequence, TU bits 0 ... 5 are used. For
another channel axis assignment of the robot axes, the TU bit numbers of the robot axes would
correspondingly change (e.g.: robot axes are the 3rd to 8th channel axis, i.e. TU bits 2 ... 7 are used for
the robot axes).
TU=19 (corresponds to TU='B010011) would therefore signify:
Bit
Value
Axis angle
0
= 1
⇒
θA1 <0°
1
= 1
⇒
θA2 <0°
2
= 0
⇒
θA3 ≥0°
3
= 0
⇒
θA4 ≥0°
4
= 1
⇒
θA5 <0°
5
= 0
⇒
θA6 ≥0°
Note
In the case of axes with a traversing range > ±360°, the axis always moves along the shortest
path because the axis position cannot be specified uniquely by the TU information.
If no TU is programmed for a position, then depending on MD30455
$MA_MISC_FUNCTION_MASK the shorter or longer path is traversed.
TRANSMIT_K (conventional TRANSMIT)
For PTP travel with TRANSMIT active, the address of TU has no meaning!
NC programming
712
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.9 Transformations
Example
The rotary axis position shown in the following diagram can be approached in the negative or
positive direction. The angular position is programmed under address A1. The traversing
direction is only absolutely clear when TU is specified.
6WDUWLQJ SRVLWLRQ
1HJDWLYH GLUHFWLRQ
$
r 78 ELW
3RVLWLYH GLUHFWLRQ
$
r 78 ELW
7DUJHW SRVLWLRQ
3.9.10.4
Example 1: PTP travel of a 6-axis robot with ROBX transformation
In the following application example, Cartesian PTP travel and the associated NC commands are
shown in the form of an example.
Note
Only with conventional machine data parameterization
The example does not work with kinematic chains.
=
<
;
Figure 3-6
6-axis articulated robot with milling spindle
N1 G90
N2 T=“T8MILLD20“ D1 M6
N3 TRAORI
;$P_UIFR[1]=CTRANS(X,1500,Y,0,Z,400):CROT(X,0,Y,0,Z,-90)
N4 G54
N5 M3 S20000
N6 ORIWKS
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
713
Work preparation
3.9 Transformations
N7 ORIVIRT1
N8 CYCLE832(0.01,_FINISH,1)
;HOME
N9 TRAFOOF
N10 G0 RA1=0.0000 RA2=-90.0000 RA3=90.0000 A=0.0000 B=90.0000 C=0.0000
N11 TRAORI
N12 G54
N13 G0 PTP X1369.2426 Y956.7528 Z502.5517 A=135.5761 B=-33.2223
C=161.1435 STAT='B010' TU='B001011'
N14 G0 X1355.1242 Y1014.9394 Z424.9695 A=135.8491 B=-33.1439
C=160.9941 STAT='B010' TU='B001011'
N15 G1 CP X1354.8361 Y1016.1269 Z423.3862 A=136.0635 B=-33.0819 C=160.8770
F1000
N16 G1 X1336.4283 Y1016.1269 Z426.6311 A=136.0484 B=-32.2151 C=160.9643
F2000
N17 G1 X1317.9831 Y1016.1269 Z429.6730 A=136.0175 B=-31.3394 C=161.0655
;HOME
N18 TRAFOOF
N19 G0 RA1=0.0000 RA2=-90.0000 RA3=90.0000 A=0.0000 B=90.0000 C=0.0000
N20 M30
3.9.10.5
Example 2: PTP travel for generic 5-axis transformation
Assumption: Right-angled CA kinematics used as basis.
Program code
Comment
TRAORI
;Transformation CA kinematics ON
PTP
; Activate PTP traversal
N10 A3=0 B3=0 C3=1
; rotary axis positions C=0 A=0
N20 A3=1 B3=0 C3=1
; rotary axis positions C=90 A=45
N30 A3=1 B3=0 C3=0
; rotary axis positions C=90 A=90
N40 A3=1 B3=0 C3=1 STAT=1
; rotary axis positions C=270 A=-45
Select clear approach position of rotary axis position:
In block N40, the rotary axes - as a result of the programming of STAT=1 - travel the longer
distance from their start point (C=90, A=90) to the end point (C=270, A=-45). On the other
hand, with STAT=0, the rotary axes would travel along the shortest path to the end point (C=90,
A=45).
NC programming
714
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.9 Transformations
3.9.10.6
Example 3: PTPG0 and TRANSMIT
Traversing around the pole with PTPG0 and TRANSMIT
<
PTP
CP
1
* ;
<
1
;
<
;
Program code
Comment
N001 G0 X30 Z0 F10000 T1 D1 G90
;Initial setting absolute dimension
N002 SPOS=0
N003 TRANSMIT
;TRANSMIT transformation
N010 PTPG0
; for each G0 block, automatically PTP -
and then CP again.
N020 G0 X30 Y20
N030 X-30 Y-20
N120 G1 X30 Y20
N110 X30 Y0
M30
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
715
Work preparation
3.9 Transformations
Traversing from the pole with PTPG0 and TRANSMIT
<
PTP
CP
30
N070 X20 Y2
20
10
N060 X0 Y0
-30
-20
-10
10
20
30
;
-10
-20
-30
N050 X10 Y0
Programming
Comment
N001 G0 X90 Z0 F10000 T1 D1 G90
;Initial setting
N002 SPOS=0
N003 TRANSMIT
;TRANSMIT transformation
N010 PTPG0
; for each G0 block, automatically PTP -
and then CP again.
N020 G0 X90 Y60
N030 X-90 Y-60
N040 X-30 Y-20
N050 X10 Y0
N060 X0 Y0
N070 X-20 Y2
N170 G1 X0 Y0
N160 X10 Y0
N150 X-30 Y-20
M30
3.9.11
Constraints when selecting a transformation
Function
Transformations can be selected via a part program or MDA. Please note:
• No intermediate movement block is inserted (chamfer/radii).
• Spline block sequences must be excluded; if not, a message is displayed.
• Fine tool compensation must be deselected (FTOCOF); if not a message is displayed.
NC programming
716
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.9 Transformations
• Tool radius compensation must be deselected (G40); if not a message is displayed.
• An activated tool length offset is included in the transformation by the control.
• The control deselects the current frame active before the transformation.
• The control deselects an active operating range limit for axes affected by the transformation
(corresponds to WALIMOF).
• Protection zone monitoring is deselected.
• Continuous path control and rounding are interrupted.
• All the axes specified in the machine data must be synchronized relative to a block.
• Axes that are exchanged are exchanged back; if not, a message is displayed.
• A message is output for dependent axes.
Tool change
Tools may only be changed when the tool radius compensation function is deselected.
A change in tool length offset and tool radius compensation selection/deselection must not be
programmed in the same block.
Frame change
All statements, which refer exclusively to the base coordinate system, are permissible (FRAME,
tool radius compensation). However, a frame change with G91 (incremental dimension) -
unlike with an inactive transformation - is not handled separately. The increment to be traveled
is evaluated in the workpiece coordinate system of the new frame - regardless of which frame
was effective in the previous block.
Exceptions
Axes affected by the transformation cannot be used
• as a preset axis (alarm),
• for approaching a checkpoint (alarm),
• for referencing (alarm).
3.9.12
Deselecting a transformation (TRAFOOF)
The predefined TRAFOOF procedure deactivates all active transformations and frames.
Note
For deselecting the transformation, the same secondary conditions (Page 716) apply as for
selecting.
Frames required after this must be activated by renewed programming.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
717
Work preparation
3.9 Transformations
Syntax
TRAFOOF
Meaning
TRAFOOF:
Deactivating all active transformations/frames
NC programming
718
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.10 Kinematic chains
3.10
Kinematic chains
3.10.1
Deletion of components (DELOBJ)
The DELOBJ() function "deletes" components by resetting the assigned system variables to
their default values:
• Elements from kinematic chains
• Protection areas, protection area elements and collision pairs
• Transformation data
Syntax
[<RetVal>=] DELOBJ(<CompType>[,,,<NoAlarm>)])
[<RetVal>=] DELOBJ(<CompType>,<Index1>[,,<NoAlarm>])
[<RetVal>=] DELOBJ(<CompType>[,<Index1>][,<Index2>][,<NoAlarm>])
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
719
Work preparation
3.10 Kinematic chains
Meaning
DELOBJ:
Deletion of elements from kinematic chains, protection areas, protection area ele-
ments, collision pairs and transformation data
<CompType>:
Component type to be deleted
Data type:
STRING
Value: "KIN_CHAIN_ELEM"
Meaning: System variables of all kinematic elements: $NK_...
Value: "KIN_CHAIN_SWITCH"
Meaning: System variable $NK_SWITCH[<i>]
Value: "KIN_CHAIN_ALL"
Meaning: All kinematic elements and switches.
Is the same as the successive call of DELOBJ with "KIN_CHAIN_ELEM" and
"KIN_CHAIN_SWITCH"
Value: "PROT_AREA"
Meaning: System variables of the protection areas:
• $NP_PROT_NAME
• $NP_CHAIN_NAME
• $NP_CHAIN_ELEM
• $NP_1ST_PROT
Value: "PROT_AREA_ELEM"
Meaning: System variables of the protection area elements of machine protection
areas and/or automatic tool protection areas:
• $NP_NAME
• $NP_NEXT
• $NP_NEXTP
• $NP_COLOR
• $NP_D_LEVEL
• $NP_USAGE
• $NP_TYPE
• $NP_FILENAME
• $NP_PARA
• $NP_OFF
• $NP_DIR
• $NP_ANG
Value: "PROT_AREA_COLL_PAIRS"
Meaning: System variables of the collision pairs:
• $NP_COLL_PAIR
• $NP_SAFETY_DIST
Value: "PROT_AREA_ALL"
Meaning: All protection areas, protection area elements and collision pairs (system
variable $NP_... )
Is the same as the successive call of DELOBJ with "PROT_AREA," "PROT_AREA_ELEM,"
and "PROT_AREA_COLL_PAIRS"
Value: "TRAFO_DATA"
Meaning: System variables of all transformations $NT_...
NC programming
720
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.10 Kinematic chains
<Index1>:
Index of the first component to be deleted (optional)
Data type:
INT
Default value:
-1
Value range:
-1 ≤ x ≤ (maximum number of configured components -1)
Value
Meaning
0, 1, 2,
Index of the component to be deleted
-1
All components of the specified type are deleted. <Index2> is not
evaluated.
<Index2>:
Index of the last components to be deleted (optional)
If <Index2> is not programmed, only the system variables of the component refer-
enced in <Index1> are deleted.
Data type:
INT
Default value:
Only the system variables of the component referenced in <In-
dex1> are deleted.
Value range:
<Index1> < x ≤ (max. number of configured components -1)
<NoAlarm>:
Alarm suppression (optional)
Data type:
BOOL
Default value:
FALSE
Value
Meaning
FALSE
In the event of an error (<RetVal> < 0), program processing is stop-
ped and an alarm displayed.
TRUE
In the event of an error, the program processing is not stopped and
no alarm displayed.
Application: User-specific reaction corresponding to the return val-
ue
<RetVal>:
Function return value
Data type:
INT
Value range:
0, -1, -2, ... -7
Value
Meaning
0
No error occurred
-1
Call of the function without parameters. At least parameter
<CompType> must be specified.
-2
<CompType> identifies an unknown component
-3
<Index1> is less than -1
-4
<Index1> is greater than the configured number of components
-5
<Index1> has a value not equal to -1 when deleting a compo-
nent group
-6
<Index2> is less than <Index1>
-7
<Index2> is greater than the configured number of components
-8
Insufficient write permission
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
721
Work preparation
3.10 Kinematic chains
3.10.2
Index determination by means of names (NAMETOINT)
User-specific names are entered in the system variable arrays of type STRING. Based on the
identifier of the system variables and the name, the NAMETOINT() function determines the
index value belonging to the name under which it is stored in the system variable array.
Syntax
<RetVal> = NAMETOINT(<SysVar>,<Name>[,<NoAlarm>])
Meaning
NAMETOINT:
Determining the system variable index
<SysVar>:
Name of the system variable array of typeSTRING
Data type:
STRING
Range of val-
Name of all NC system variable arrays of type STRING
ues:
<Name>:
Character string or name for which the system variable index is to be determined.
Data type:
STRING
<NoAlarm>:
Alarm suppression (optional)
Data type:
BOOL
Default value:
FALSE
Value
Meaning
TRUE
In the event of an error, the program processing is not stopped and
no alarm displayed.
Application: User-specific reaction corresponding to the return val-
ue
FALSE
In the event of an error (<RetVal> < 0), program processing is stop-
ped and an alarm displayed.
<RetVal>:
System variable index or error message
Data type:
INT
Range of val-
-1 ≤ x ≤ (max. number of configured components -1)
ues:
Value
Meaning
≥ 0
The sought name has been found under the specified system var-
iable index.
-1
The sought name has not been found or an error has occurred.
Example
Program code
Comment
DEF INT INDEX
$NP_PROT_NAME[27]="Cover"
INDEX = NAMETOINT("$NP_PROT_NAME","Cover")
; INDEX == 27
NC programming
722
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.11 Collision avoidance with kinematic chains
3.11
Collision avoidance with kinematic chains
Note
Protection areas
The protection areas specified in the following chapters refer to the "Geometric machine
modeling" function.
Information about this function, see Function Manual Monitoring and Compensation.
3.11.1
Check for collision pair (COLLPAIR)
The COLLPAIR() function determines whether two protection areas form a collision pair.
Syntax
[<RetVal> =] COLLPAIR(<Name_1>,<Name_2>[,<NoAlarm>)])
Meaning
COLLPAIR:
Check whether part of a collision pair
<RetVal>:
Function return value
Data type:
INT
Value:
≥ 0
The two protection zones form a collision pair.
Return value == collision pair index m (see
$NP_COLL_PAIR)
-1
Either two strings have not been specified or at least one
of the two is the zero string.
-2
The protection zone specified in the first parameter has
not been found.
-3
The protection zone specified in the second parameter
has not been found.
-4
Neither of the two specified protection zones has been
found.
-5
Both specified protection zones have been found, but
not together in a collision pair.
<Name_1>:
Name of the first protection zone
Data type:
STRING
Range of val-
Parameterized protection zone names
ues:
<Name_2>:
Name of the second protection area
Data type:
STRING
Range of val-
Parameterized protection zone names
ues:
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
723
Work preparation
3.11 Collision avoidance with kinematic chains
<NoAlarm>:
Alarm suppression (optional)
Data type:
BOOL
Value:
FALSE (Default)
In the event of an error (<RetVal> < 0), the
program processing is stopped and an alarm
displayed.
TRUE
In the event of an error, the program process-
ing is not stopped and no alarm displayed.
Application: User-specific reaction correspond-
ing to the return value
3.11.2
Request recalculation of the machine model of the collision avoidance
(PROTA)
If system variables of the kinematic chain $NK_..., the geometric machine modeling or the
collision avoidance $NP_... are written in the part program, the PROTA procedure must
subsequently be called so that the change becomes effective in the NC-internal machine model
of the collision avoidance.
Syntax
PROTA[(<Par>)]
Meaning
PROTA:
Request recalculation of the machine model of the collision avoidance
• Triggers a preprocessing stop.
• Must be alone in the block.
<Par>:
Parameter (optional)
Data type:
STRING
Value:
---
No parameters.
The machine model is recalculated. The states of the pro-
tection areas are retained.
"R"
The machine model is recalculated. The protection areas are
set to their initialization status corresponding to $NP_IN-
IT_STAT.
Supplementary conditions
Simulation
The PROTA procedure must not be used in part programs in conjunction with the simulation
(simNC).
Example: Avoiding the PROTA call while the simulation is active.
Program code
Comment
NC programming
724
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.11 Collision avoidance with kinematic chains
Program code
Comment
IF $P_SIM == FALSE
; IF simulation not active
PROTA
THEN recalculate collision model
ENDIF
; ENDIF
See also
Setting the protection zone status (PROTS) (Page 725)
3.11.3
Setting the protection zone status (PROTS)
The PROTS() procedure sets the state of protection areas to the specified value.
Syntax
PROTS(<State>[,<Name_1>,...,<Name_n>])
Meaning
PROTS:
Sets the state of protection areas
• Must be alone in the block.
<State>:
Status to which the specified protection zones are to be set
Data type:
CHAR
Value:
"A"or "a"
Status: Active
"I"or "i"
Status: Inactive
"P"or "p"
Status: Preactivated or PLC-controlled 1)
"R"or "r"
Status: NC-internal value of the initialization
status 2)
<Name_1> ...
Name of one or more protection areas that are to be set to the specified status
<Name_n>:
(optional)
If no name is specified, the specified status is set for all defined protection zones.
Data type:
STRING
Range of values:
Parameterized protection zone names
Note
The maximum number of protection areas that can be specified as parameters de-
pends only on the maximum possible number of characters per program line.
1) The activation/deactivation is performed via: DB10.DBX234.0 - DBX241.7
2) The status is set to the NC-internal value of the initialization status, i.e. to the value that the system
variable $NP_INIT_STAT had at the time of the last PROTA( ) (Page 724) call.
3.11.4
Determining the clearance of two protection zones (PROTD)
The PROTD() function calculates the clearance of two protection areas.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
725
Work preparation
3.11 Collision avoidance with kinematic chains
Function properties:
• The clearance calculation is performed independent of the protection area status (activated,
deactivated, preactivated).
• To calculate the clearance of two protection areas, only protection area elements are used,
which are marked with $NP_USAGE = "C" or "A". Protection area elements of the protection
area, which are marked with $NP_USAGE = "V", are not taken into consideration.
• Protection areas, where all protection area elements of the protection area are marked with
$NP_USAGE = "V", cannot be used for the clearance calculation.
• The clearance calculation is performed with the positions valid at the end of the previous
block.
• Overlays that are included in the main run calculation (e.g. DRF offset or external zero offset)
are included in the clearance calculation with the values valid at the function interpretation
time.
Note
Synchronization
When using the PROTD() function, it is the sole responsibility of the user to synchronize the
main run and preprocessing, if required, with the STOPRE preprocessing stop.
Collision
If there is a collision between the specified protection areas, the function returns a clearance of
0.0. There is a collision if both the protection areas touch or intersect each other.
The safety clearance for the collision check (MD10622 $MN_COLLISION_SAFETY_DIST) is not
taken into account in the clearance calculation.
Syntax
[<RetVal> =] PROTD([<Name_1>],[<Name_2>],VAR <Vector>[,<System>])
Meaning
PROTD:
Calculates the clearance of the two specified protection areas.
• Must be alone in the block.
<RetVal>:
Function return value: Absolute clearance value of the two protection areas or 0.0 with
collision (see above: Collision paragraph)
Data type:
REAL
Range of values:
0.0 ≤ x ≤ +max. REAL value
<Name_1>,
Names of the two protection areas whose clearance is to be calculated (optional)
<Name_2>:
Data type:
STRING
Range of values:
Parameterized protection area names
Default value:
"" (empty string)
If no protection areas have been specified, the function calcu-
lates the current smallest clearance from all the activated and
preactivated protection areas in the collision model.
NC programming
726
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.11 Collision avoidance with kinematic chains
<Vector>:
Return value: 3-dimensional clearance vector from protection area <Name_2> to pro-
tection area <Name_1> with:
• <Vector>[0]: X coordinate in the world coordinate system
• <Vector>[1]: Y coordinate in the world coordinate system
• <Vector>[2]: Z coordinate in the world coordinate system
For collision: <Vector> == zero vector
Data type:
VAR REAL [3]
Range of values:
<Vector> [n]: 0.0 ≤ x ≤ ±max. REAL value
<System>:
Measuring system (inch/metric) for clearance and clearance vector (optional)
Data type:
BOOL
Value:
FALSE (Default)
Measuring system corresponding to the cur-
rently active G command from G group 13
(G70, G71, G700, G710).
TRUE
Measuring system corresponding to the set
basic system:
MD52806 $MN_ISO_SCALING_SYSTEM
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
727
Work preparation
3.12 Transformation with kinematic chains
3.12
Transformation with kinematic chains
3.12.1
Activating transformation (TRAFOON)
A transformation defined with kinematic chains is activated with the predefined TRAFOON
procedure. The call must be alone in a block.
Note
Alternatively, a transformation defined with kinematic chains can also be activated via
conventional NC commands, such as TRAORI or TRANSMIT. For this purpose, an appropriate
value, not equal to zero, must be entered in the $NT_TRAFO_INDEX system variable.
For further information on $NT_TRAFO_INDEX see "System Variables List Manual".
Syntax
TRAFOON(<Trafoname>,<Diameter>,<k>)
Meaning
TRAFOON:
Procedure for activating a transformation defined with kinematic chains
<Trafoname>:
Name of the transformation data set
Data type:
STRING
Range of values:
All names of transformation data sets defined via $NK_NAME
Note:
The name of the transformation data set must be unique. It must only occur once
in $NT_NAME.
<Diameter>:
Reference or working diameter (TRACYL only)
Data type:
REAL
The value must be > 1.
<k>:
Defines the use of the groove side offset (TRACYL only).
Data type:
BOOL
Value:
FALSE
Without groove side offset
TRUE
With groove side offset
Corresponds to the TRACYL transformation type 514 (groove side offset can be
programmed). If <k> is not specified, the parameterized setting of bit 10 in
$NT_CNTRL[<n>] applies.
Example
Program code
Comment
TRAFOON["Trans_1"]
Activates the transformation with the name Trans_1.
NC programming
728
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.12 Transformation with kinematic chains
3.12.2
Modifying the orientation transformation after the machine measurement
(CORRTRAFO)
For machines with orientation transformations that were defined by means of kinematic chains,
the user can use the predefined CORRTRAFO function in order to modify the offset vectors or the
direction vectors of the orientation axes in the kinematic model of the machine after a machine
measurement.
Note
The correction values written with the CORRTRAFO function are not immediately effective in the
transformation. The correction values do not become effective until after a transformation
deselection, NEWCONF and transformation selection.
Syntax
<Corr_Status> = CORRTRAFO(<Corr_Vect>, <Corr_Index>, <Corr_Mode>,
[ <No_Alarm>])
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
729
Work preparation
3.12 Transformation with kinematic chains
Meaning
CORRTRAFO:
Function call
NC programming
730
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.12 Transformation with kinematic chains
<Corr_Status>:
Function return value
Data type:
INT
Values:
0
The function was executed without an error.
1
No transformation is active.
2
The currently active transformation is not an orientation trans-
formation.
3
The active orientation transformation was not defined with kin-
ematic chains.
10
The <Corr_Index> call parameter is negative.
11
The <Corr_Mode> call parameter is negative.
12
Invalid reference to a section of a subchain (units position
of <Corr_Index>). The value must not be greater than the
number of orientation axes in the subchain.
13
Invalid reference to the orientation axis of a subchain (units
position of <Corr_Index>). The value must be less than the
number of orientation axes in the subchain.
14
Invalid reference to a subchain (tens position
of <Corr_Index>). Only the values 0 and 1 are permissible
(reference to part or tool chain). This error number occurs if the
subchain to which <Corr_Index> refers does not exist.
15
There is no correction element in the section referred to with
the <Corr_Index> parameter ($NT_CORR_ELEM_P or
$NT_CORR_ELEM_T).
20
Invalid correction mode (units position of <Corr_Mode>). On-
ly the values 0 and 1 are permissible.
21
Invalid correction mode (tens and/or hundreds position
of <Corr_Mode>). Only the units position can be not equal to
zero when writing an axis direction.
30
The hundreds position of <Corr_Mode> is invalid. Only the
values 0 and 1 are permissible.
31
The thousands position of <Corr_Mode> is invalid. Only the
values 0 and 1 are permissible.
40
The direction vector that is to be taken as axis direction is the
zero vector. This error can only happen if the thousands position
of <Corr_Mode> is equal to 0. If the thousands position of this
parameter is equal to 1 (monitoring of the maximum correction
deactivated), the zero vector can also be written.
41
For the correction of an offset vector, the difference to the cur-
rent value in at least one coordinate is greater than the maxi-
mum value specified by the setting data SD41610
$SN_CORR_TRAFO_LIN_MAX. The <Corr_Vect> parameter
will be overwritten by an error vector. This also applies when the
processing is aborted with alarm (see <No_Alarm> parame-
ter).
In the components whose correction value has exceeded the
permissible limit, the error vector has the difference, with the
correct sign, between the determined correction value and the
limit.
The content of the components that have not exceeded their
limit is zero.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
731
Work preparation
3.12 Transformation with kinematic chains
42
For the correction of a direction vector, the angular displace-
ment compared to the current direction is greater than the
maximum value specified by the setting data SD41611
$SN_CORR_TRAFO_DIR_MAX.
43
The attempt to write a system variable was rejected because of
missing write rights.
<Corr_Vect>:
Correction vector
The content of the correction vector is defined by the following parameters
<Corr_Index> and <Corr_Mode>.
If <Corr_Status> = 41, the content of the vector is overwritten (see above).
Data type:
REAL
<Corr_Index>:
Section whose correction element is to be modified /
index of the orientation axis whose direction vector is to be modified
Data type:
INT
The <Corr_Index> parameter is decimal coded (units to tens position):
Units
Contains the index of the section or the orientation axis in the sub-
position:
chain.
Tens
Refers to the subchain.
position:
0x
Workpiece chain
1x
Tool chain
NC programming
732
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.12 Transformation with kinematic chains
<Corr_Mode>:
Correction mode
Data type:
INT
The <Corr_Index> parameter is decimal coded (units to thousands position):
Units
Specifies which element is to be corrected.
position:
xxx0
Correction of a linear offset vector
xxx1
Correction of the direction vector of an orientation axis
Tens
Specifies how the correction element to which the content
position:
of <Corr_Index> refers, is to be modified.
xx0x
The correction vector is written immediately to the correc-
tion element.
This variant can be used to immediately write the correction
element without the index <n> of the relevant system data
($NK_OFF_DIR[<n>, ...]) having to be known.
xx1x
As 0, but with the difference that the transferred correction
value is interpreted in world coordinates.
A difference between variants 0 and 1 can always occur
when the kinematic chain in the initial state (positions of all
orientation axes equal to 0) contains other rotations.
xx2x
As 1, but with the difference that the correction value refers
to the entire section, i.e. a value is entered in the correction
element so that the entire section reaches the length de-
fined by the correction value.
Note:
The values 1 and 2 are not permissible when writing the direction
vector of an orientation axis.
Hundreds
Specifies how the content of the <Corr_Vect> parameter is to be
position:
interpreted.
x0xx
The transferred correction vector <Corr_Vect> contains
the entire new length of the correction element or the sec-
tion to which the <Corr_Index> in conjunction with the
tens position of <Corr_Mode> refers (absolute correction).
x1xx
The transferred correction vector <Corr_Vect> only con-
tains the difference compared to the current length of the
correction element or the section to which
the <Corr_Index> in conjunction with the tens position
of <Corr_Mode> refers (incremental correction).
Note:
For the correction of the direction vector of an orientation axis, the
content of the hundreds position must be 0.
Thousands
Specifies whether the correction is to be limited by the following
position:
maximum value:
• SD41610 $SN_CORR_TRAFO_LIN_MAX
or
• SD41611 $SN_CORR_TRAFO_DIR_MAX
0xxx
Monitoring of the maximum correction is active.
1xxx
Monitoring of the maximum correction is not active.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
733
Work preparation
3.12 Transformation with kinematic chains
<No_Alarm>:
Behavior in the event of an error (return value > 0) (optional)
Data type:
BOOL
Value:
FALSE
In the event of an error, the program processing is stop-
(default)
ped and alarm 14103 is displayed.
TRUE
In the event of an error, the program processing is not
stopped and no alarm is displayed.
Application: User-specific reaction corresponding to the
return value
Note
In the event of an error when the function is called, either an alarm is output or an error number
returned (see <No_Alarm> parameter), so that the user can respond in a suitable way to the error
state. The cause of the error is described in more detail through an alarm parameter. An error
number returned instead of an alarm is identical to the alarm parameter.
Further information on CORRTRAFO
The kinematic structure of a machine with orientation transformation is described by one or two
kinematic chains (subchains), starting from the zero point of the world coordinate system. One
of the two chains, the tool chain, ends at the reference point of the tool, the other chain,
the workpiece chain ends in the zero point of the basic coordinate system.
The CORRTRAFO function writes lever arm lengths and axis directions on machines with an
orientation transformation in special correction elements. A kinematic chain is described, for
example, with elements of the type OFFSET, which are defined via $ NK_TYPE.
CORRTRAFO works with sections
The two subchains can each be divided into a maximum of four sections:
• Section 1 begins at the starting point of the chain and ends at the first orientation axis.
• Section 2 is the section between orientation axis 1 and orientation axis 2.
• Section 3 is the section between orientation axis 2 and orientation axis 3.
• Section 4 is the section between orientation axis 3 and the end of the tool or workpiece chain.
Each section may contain constant chain elements of the type OFFSET or ROT_CONST.
The following figure shows an orientation transformation with 2 orientation axes.
NC programming
734
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.12 Transformation with kinematic chains
,
6HFWLRQ
:RUNSLHFH UHIHUHQFH SRLQW
ZRUNSLHFH FKDLQ (QG SRLQW
RI NLQHPDWLF FKDLQ
,
6HFWLRQ
,
6HFWLRQ
Y
˞
Y
˞
=HUR SRLQW RI WKH ZRUOG
FRRUGLQDWH V\VWHP
Figure 3-7
CORRTRAFO example
The sections are clearly defined: If you run through the kinematic subchain from the starting
point to the end point, the first section has the index 0, the next the index 1, and so on. The index
of the last section is then always equal to the number of orientation axes.
Correction elements
A reference can be made to a constant kinematic chain element (chain element of the type
$NK_TYPE[<n>] = "OFFSET") in each section with the $NT_CORR_ELEM_T[<n>, 0 ... 3] or
$NT_CORR_ELEM_P[<n>, 0 ... 3] system variables. The correction values that were determined
during the machine measurement are written to these elements with the CORRTRAFO function.
Example with transformation index = 1:
• $NT_CORR_ELEM_T[1,0] = "C_AXIS_OFFSET"; Offset of the C axis (orientation axis 1) in
section 1 is defined as correction element.
• $NT_CORR_ELEM_T[1,1] = "B_AXIS_OFFSET"; Offset of the B axis (orientation axis 2) in
section 2 is defined as correction element.
• $NT_CORR_ELEM_T[1,2] = "BASE_TOOL_OFFSET"; Offset of the B axis from the tool reference
point in section 3 is defined as correction element.
The sequence of the references in $NT_CORR_ELEM_T/P[<n>, 0 ... 3] must correspond to the
sections described above, i.e. only one chain element can be in $NT_CORR_ELEM_T/P [<n>, 0]
which is before the first orientation axis, etc.
The CORRTRAFO function writes the values determined by measuring the machine into the
correction elements defined in this way. The modification of the correction values is defined in
CORRTRAFO via the <Corr_Mode> parameter.
Closing a chain
If bit 7 or bit 8 are set in the $NT_CNTRL[<n>] system variable, additional constant chain
elements that establish a connection from the end point of the chain to the machine zero point
are automatically inserted internally at the end of the workpiece chain (bit 7) or before the
starting point of the tool chain (bit 8) ("close chain").
These automatically inserted elements cannot be written externally, only read (see the
$AC_TRAFO_CORR_ELEM_P/T system variables).
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
735
Work preparation
3.12 Transformation with kinematic chains
Point to close the tool chain
If the $NT_CLOSE_CHAIN_T system variable is not empty, the tool chain is not closed at the end
point of the chain, but rather at the end point of the designated chain element. Other chain
elements that are behind this point result in a corresponding work offset when the
transformation is activated.
Index of an orientation axis
In addition to the constants offsets between the orientation axes, the direction vectors of the
orientation axes can also be written with the CORRTRAFO function. The index of an orientation
axis is the index that results when the kinematic subchain is run through from the origin to the
end, where the count starts at zero. The index of an orientation axis is therefore always the same
as the index of the preceding section.
The index of an orientation axis can also be determined with the $AC_TRAFO_ORIAX_LOC
system variable.
Maximum permissible change of a chain element
The maximum permissible change of a chain element can be limited by the two setting data
SD41610 $SN_CORR_TRAFO_LIN_MAX for offset vectors and SD41611
$SN_CORR_TRAFO_DIR_MAX for direction vectors of the orientation axes. SD41610
$SN_CORR_TRAFO_LIN_MAX specifies the maximum amount by which each individual vector
component can be changed with regard to its reference value. SD41611
$SN_CORR_TRAFO_DIR_MAX specifies the maximum angle by which the direction of the axis
vector can be changed with regard to its reference value. The reference value is always the
corresponding value that is active in the transformation that is active when CORRTRAFO is called.
This means that the changed content of the kinematic data may have no effect on the method
of operation of the CORRTRAFO function after the activation of the transformation.
NC programming
736
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.13 Tool offsets
3.13
Tool offsets
3.13.1
Offset memory
Structure of the offset memory
Every data field can be called with a T and D number, and contains not only the geometric
specifications for the tool but also further entries, such as the tool type.
User cutting edge data
User cutting edge data can be configured via machine data. Please refer to the machine
manufacturer's instructions.
Tool parameters
Note
Individual values in the offset memory
The individual values of the offset memory P1 to P25 can be read and written by the program via
system variables. All other parameters are reserved.
The tool parameters $TC_DP6 to $TC_DP8, $TC_DP10 and $TC_DP11 as well as $TC_DP15 to
$TC_DP17, $TC_DP19 and $TC_DP20 have another meaning depending on tool type.
Tool parameter number
Meaning of system variables
Remark
(DP)
$TC_DP1
Tool type
For overview see list
$TC_DP2
Cutting edge position
Only for turning tools
Geometry
Length compensation
$TC_DP3
Length 1
Allocation to
$TC_DP4
Length 2
Type and level
$TC_DP5
Length 3
Geometry
Radius
$TC_DP6 1)
Radius 1 / length 1
Milling/turning/grinding tool
$TC_DP6 2)
diameter d
Slotting saw
$TC_DP7 1)
Length 2 / corner radius, tapered milling tool
Milling tools
$TC_DP7 2)
Slot width b corner radius
Slotting saw
$TC_DP8 1)
Rounding radius 1 for milling tools
Milling tools
$TC_DP8 2)
projecting length k
Slotting saw
$TC_DP9 1) 3)
Rounding radius 2
Reserved
$TC_DP10 1)
Angle 1 face end of tool
Tapered milling tools
$TC_DP11 1)
Angle 2 tool longitudinal axis
Tapered milling tools
Wear
Length and radius compensation
$TC_DP12
Length 1
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
737
Work preparation
3.13 Tool offsets
Tool parameter number
Meaning of system variables
Remark
(DP)
$TC_DP13
Length 2
$TC_DP14
Length 3
$TC_DP15 1)
Radius 1 / length 1
Milling/turning/grinding tool
$TC_DP15 2)
diameter d
Slotting saw
$TC_DP16 1)
Length 2 / corner radius, tapered milling tool, slot width Milling tools
$TC_DP16 3)
b corner radius
Slotting saw
$TC_DP17 1)
Rounding radius 1 for milling tools
Milling / 3D face milling
$TC_DP17 2)
projecting length k
Slotting saw
$TC_DP18 1) 3)
Rounding radius 2
Reserved
$TC_DP191)
Angle 1 face end of tool
Tapered milling tools
$TC_DP201)
Angle 2 tool longitudinal axis
Tapered milling tools
Tool base dimension/
Length offsets
adapter
$TC_DP21
Length 1
$TC_DP22
Length 2
$TC_DP23
Length 3
Technology
$TC_DP24
Clearance angle
Only for turning tools
$TC_DP25
Reserved
1)
Also applies with milling tools for 3D face milling
2)
For slotting saw tool type
3)
reserved
Remarks
Several entry components are available for geometric variables (e.g. length 1 or radius). These
are added together to produce a value (e.g. total length 1, total radius), which is then used for
the calculations.
Offset values not required must be assigned the value zero.
Tool parameters $TC-DP1 to $TC-DP23 with contour tools
Note
The tool parameters not listed in the table, such as $TC_DP7, are not evaluated, i.e. their content
is meaningless.
Tool parameter number
Meaning
Cutting Dn
Remark
(DP)
$TC_DP1
Tool type
400 to 599
$TC_DP2
Cutting edge position
Geometry
Length compensation
$TC_DP3
Length 1
NC programming
738
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.13 Tool offsets
Tool parameter number
Meaning
Cutting Dn
Remark
(DP)
$TC_DP4
Length 2
$TC_DP5
Length 3
Geometry
Radius
$TC_DP6
Radius
Geometry
Limit angle
$TC_DP10
Minimum limit angle
$TC_DP11
Maximum limit angle
Wear
Length and radius compensation
$TC_DP12
Wear length 1
$TC_DP13
Wear length 2
$TC_DP14
Wear length 3
$TC_DP15
Wear radius
Wear
Limit angle
$TC_DP19
Wear min. limit angle
$TC_DP20
Wear max. limit angle
Tool base dimension/
Length offsets
adapter
$TC_DP21
Length 1
$TC_DP22
Length 2
$TC_DP23
Length 3
Basic value and wear value
The resultant values are each a total of the basic value and wear value (e.g. $TC_DP6 + $TC_DP15
for the radius). The basic measurement ($TC_DP21 - $TC_DP23) is also added to the tool length
of the first cutting edge. All the other parameters, which may also impact on effective tool length
for a standard tool, also affect this tool length (adapter, orientatable toolholder, setting data).
Limit angles 1 and 2
Limit angles 1 and 2 each refer to the vector of the cutting edge center point to the cutting edge
reference point and are counted counterclockwise.
3.13.2
Additive offsets
3.13.2.1
Selecting additive offsets (DL)
Additive offsets can be considered as process offsets that can be programmed in the machining.
They refer to the geometrical data of a cutting edge and are therefore a component of tool
cutting data.
Data of an additive offset is addressed using a DL number (DL: Locationdependent; offsets
regarding the location of use) and entered via the user interface.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
739
Work preparation
3.13 Tool offsets
Application
Dimension errors caused be the location of use can be compensated using additive offsets.
Syntax
DL=<number>
Meaning
DL:
Command to activate an additive offset
<number>:
The additive tool offset data to be activated is specified using the <number> param-
eter
Note
The machine data is used to define the number of additive offsets and also activate them
(→ carefully observe the machine OEM's data!).
Example
The same cutting edge is used for two bearing seats:
/RFDWLRQ RI XVH
/RFDWLRQ RI XVH
;
' '/
'
=
Program code
Comment
N110 T7 D7
; The revolver is positioned to location 7. D7 and DL=1
are activated and moved through in the next block.
N120 G0 X10 Z1
N130 G1 Z-6
N140 G0 DL=2 Z-14
; DL=2 is activated in addition to D7 and is moved through
in the next block.
N150 G1 Z-21
N160 G0 X200 Z200
; Approach tool change point.
NC programming
740
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.13 Tool offsets
Program code
Comment
3.13.2.2
Specify wear and setup values ($TC_SCPxy[t,d], $TC_ECPxy[t,d])
Wear and setting-up values can be read and written to using system variables. The logic is based
on the logic of the corresponding system variables for tools and tool noses.
System variables
$TC_SCPxy[<t>,<d>]:
Wear values that are assigned to the particular geometry parameters
via xy, whereby x corresponds to the number of the wear value and y
establishes the reference to the geometry parameter.
$TC_ECPxy[<t>,<d>]:
Setting-up values that are assigned to the particular geometry param-
eter via xy, whereby x corresponds to the number of the setting-up
value and y establishes the reference to the geometry parameter.
<t>: T number of the tool
<d>: D number of the tool cutting edge
Note
The defined wear and setup values are added to the geometry parameters and the other offset
parameters (D numbers).
Example
The wear value of length 1 is set to the value of 1.0 for the cutting edge <d> of tool <t>.
Parameter: $TC_DP3 (length 1, with turning tools)
Wear values: $TC_SCP13 to $TC_SCP63
Setup values: $TC_ECP13 to $TC_ECP63
$TC_SCP43 [<t>,<d>] = 1.0
3.13.2.3
Delete additive offsets (DELDL)
The DELDL command deletes the additive offsets for the cutting edge of a tool (to release
memory space). Both the defined wear values and the setup values are deleted.
Syntax
DELDL[<t>,<d>]
DELDL[<t>]
DELDL
<Status>=DELDL[<t>,<d>]
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
741
Work preparation
3.13 Tool offsets
Meaning
DELDL:
Command to delete additive offsets
<t>:
T number of the tool
<d>:
D number of the tool cutting edge
DELDL[<t>,<d>]:
All additive offsets of the cutting edges <d> of the tool <t> are deleted.
DELDL[<t>]:
All additive offsets of all cutting edges of tool <t> are deleted.
DELDL:
All additive offsets of all cutting edges of all tools of the TO unit are deleted (for
the channel in which the command is programmed).
<Status>:
Delete status
Value:
Meaning:
0
Deletion was successfully completed.
-
Offsets have not been deleted (if the parameter settings specify ex-
actly one tool edge), or not deleted completely (if the parameter
settings specify several cutting edges).
Note
Wear and setting-up values of active tools cannot be deleted (essentially the same as the delete
behavior of D or tool data).
3.13.3
Special handling of tool offsets
The evaluation of the sign for tool length and wear can be controlled using setting data SD42900
to SD42960.
The same applies to the behavior of the wear components when mirroring geometry axes or
changing the machining plane, and also to temperature compensation in tool direction.
Wear values:
If reference is made to wear values in the following, then this should be understood as the sum
of the actual wear values ($TC_DP12 to $TC_DP20) and the sum offsets with the wear values
($SCPX3 to $SCPX11) and setting-up values ($ECPX3 to $ECPX11).
Information about summed offsets, see Function Manual Tool Management.
Setting data
SD42900 $SC_MIRROR_TOOL_LENGTH
Mirroring of tool-length components and compo-
nents of the tool base dimension.
SD42910 $SC_MIRROR_TOOL_WEAR
Mirroring of wear values of the tool-length compo-
nents.
SD42920 $SC_WEAR_SIGN_CUTPOS
Evaluating the sign of the wear components as a
function of the cutting edge position.
SD42930 $SC_WEAR_SIGN
Inverts the sign of wear dimensions.
NC programming
742
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.13 Tool offsets
SD42935 $SC_WEAR_TRANSFORM
Transformation of wear values.
SD42940 $SC_TOOL_LENGTH_CONST
Assignment of tool length components to geome-
try axes.
SD42950 $SC_TOOL_LENGTH_TYPE
Assignment of the tool length components inde-
pendent of tool type.
SD42960 $SC_TOOL_TEMP_COMP
Temperature compensation value in tool direction.
Also operative when tool orientation is program-
med.
Further information
Activation of modified setting data
When the setting data described above is modified, the tool components are not reevaluated
until the next time a tool edge is selected. If a tool is already active and the data of this tool is to
be reevaluated, the tool must be selected again.
The same applies in the event that the resulting tool length is modified due to a change in the
mirroring status of an axis. The tool must be selected again after the mirror command, in order
to activate the modified tool-length components.
Orientable toolholders and new setting data
Setting data SD42900 to SD42940 has no effect on the components of an active toolholder with
orientation capability. However, the calculation with an orientable toolholder always allows for
a tool with its total resulting length (tool length + wear + tool base dimension). All
modifications initiated by the setting data are included in the calculation of the resulting total
length, i.e. vectors of the orientable toolholder are independent of the machining plane.
Note
When orientable toolholders are used, it is frequently practical to define all tools for a non-
mirrored basic system, even those which are only used for mirrored machining. When
machining with mirrored axes, the toolholder is then rotated such that the actual position of the
tool is described correctly. All tool-length components then automatically act in the correct
direction, dispensing with the need for control of individual component evaluation via setting
data, depending on the mirroring status of individual axes.
Further application options
The use of orientable toolholder functionality can also be useful if there is no physical option of
turning tools on the machine, even though tools with different orientations are permanently
installed. Tool dimensioning can then be performed uniformly in a basic orientation, where the
dimensions relevant for machining are calculated according to the rotations of a virtual
toolholder.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
743
Work preparation
3.13 Tool offsets
3.13.3.1
Mirroring of tool lengths
When setting data SD42900 $SC_MIRROR_TOOL_LENGTH and
SD42910 $SC_MIRROR_TOOL_WEAR are not set to zero, then you can mirror the tool length
components and components of the basis dimensions with wear values and their associated
axes.
X
D13
X
Z
Z
M
W
W1
M
1
WCS 1
WCS 2
D13 with SL3
D13 with SL4
SD42900 $SC_MIRROR_TOOL_LENGTH
Setting data not equal to zero:
The tool length components ($TC_DP3, $TC_DP4 and $TC_DP5) and the components of the
basis dimensions ($TC_DP21, $TC_DP22 and $TC_DP23) are mirrored against their associated
axes, also mirrored - by inverting the sign.
The wear values are not mirrored. If these are also be be mirrored, then setting data
SD42910 $SC_MIRROR_TOOL_WEAR must be set.
SD42910 $SC_MIRROR_TOOL_WEAR
Setting data not equal to zero:
The wear values of the tool length components - whose associated axes are mirrored - are also
mirrored by inverting the sign.
3.13.3.2
Wear sign evaluation
When setting data SD42920 $SC_WEAR_SIGN_CUTPOS and SD42930 $SC_WEAR_SIGN are set
not equal to zero, then you can invert the sign evaluation of the wear components.
SD42920 $SC_WEAR_SIGN_CUTPOS
Setting data not equal to zero:
For tools with the relevant cutting edge position (turning and grinding tools, tool types 400),
then the sign evaluation of the wear components in the machining plane depends on the cutting
edge position. This setting data is of no significance for tool types without relevant cutting edge
position.
NC programming
744
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.13 Tool offsets
In the following table, the dimensions, whose sign is inverted using SD42920 (not equal to
zero), are designed using an X:
Cutting edge position
Length 1
Length 2
1
2
X
3
X
X
4
X
5
6
7
X
8
X
9
Note
The sign evaluation using SD42920 and SD42910 are independent of one another. If, for
example, the sign of a dimension is changed using both setting data, then the resulting sign
remains unchanged.
SD42930 $SC_WEAR_SIGN
Setting data not equal to zero:
Inverts the sign of all wear dimensions. This affects both the tool length and other variables such
as tool radius, rounding radius, etc.
If a positive wear dimension is entered, the tool becomes "shorter" and "thinner", refer to Chapter
"tool offset, special handling", activating changed setting data".
3.13.3.3
Coordinate system of the active machining operation (TOWSTD, TOWMCS, TOWWCS,
TOWBCS, TOWTCS, TOWKCS)
Depending on the kinematics of the machine or the availability of an orientable tool carrier, the
wear values measured in one of these coordinate systems are converted or transformed to a
suitable coordinate system.
Coordinate systems of active machining operation
The following coordinate systems produce tool length offsets which the tool length wear
component incorporates in an active tool via the corresponding G command of Group 56:
• Machine coordinate system (MCS)
• Basic coordinate system (BCS)
• Workpiece coordinate system (WCS)
• Tool coordinate system (TCS)
• Tool coordinate system of kinematic transformation (KCS)
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
745
Work preparation
3.13 Tool offsets
Syntax
TOWSTD
TOWMCS
TOWWCS
TOWBCS
TOWTCS
TOWKCS
Meaning
TOWSTD:
Initial setting value for offsets in tool length wear value
TOWMCS:
Offsets in tool length in MCS
TOWWCS:
Offsets in tool length in WCS
TOWBCS:
Offsets in tool length in BCS
TOWTCS:
Offsets in tool length at tool carrier reference point (orientable tool carrier)
TOWKCS:
Compensations of tool length for tool head (kinematic transformation)
Further information
Distinguishing features
The most important distinguishing features are shown in the following table:
G command
Wear value
Active orientable tool carrier
TOWSTD
Initial value, tool length
Wear values are subject to rotation.
TOWMCS
Wear value in MCS. TOWMCS is iden-
It only rotates the vector of the resul-
tical to TOWSTD if a tool carrier that
tant tool length without taking into
can be orientated is not active.
account the wear.
TOWWCS
The wear value is converted to the
The tool vector is calculated as for
MCS in the WCS.
TOWMCS without taking into ac-
count the wear.
TOWBCS
The wear value is converted to the
The tool vector is calculated as for
MCS in the BCS.
TOWMCS without taking into ac-
count the wear.
TOWTCS
The wear value is converted to the
The tool vector is calculated as for
MCS in the workpiece coordinate sys-
TOWMCS without taking into ac-
tem.
count the wear.
TOWWCS, TOWBCS, TOWTCS: The wear vector is added to the tool vector.
Linear transformation
The tool length can be defined meaningfully in the MCS only if the MCS is generated by linear
transformation from the BCS.
Non-linear transformation
For example, if with TRANSMIT a non-linear transformation is active, then when specifying the
MCS as requested coordinate system, BCS is automatically used.
NC programming
746
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.13 Tool offsets
No kinematic transformation and no orientable tool carrier
If neither a kinematic transformation nor an orientable tool carrier is active, then all the other
four coordinate systems (except for the WCS) are combined. It is then only the WCS, which is
different to the other systems. Since only tool lengths need to be evaluated, translations
between the coordinate systems are irrelevant.
Inclusion of wear values in calculation
The setting data SD42935 $SC_WEAR_TRANSFORM defines which of the three wear
components:
• Wear
• Total offsets fine
• Total offsets coarse
should be subject to a rotation using adapter transformation or a tool carrier that can be
orientated if one of the following G commands is active:
• TOWSTD
Basic position. For corrections in the tool length.
• TOWMCS
Wear values in the machine coordinate system (MCS).
• TOWWCS
Wear values in the workpiece coordinate system (WCS).
• TOWBCS
Wear values in the basic coordinate system (BCS).
• TOWTCS
Wear values in the tool coordinate system at the tool carrier fixture (T tool carrier reference).
• TOWKCS
Wear values in the coordinate system of the tool head for kinematic transformation.
Note
Evaluation of individual wear components (assignment to geometry axes, sign evaluation) is
influenced by the following factors:
• Active plane
• Adapter transformation
• Setting data:
- SD42910 $SC_MIRROR_TOOL_WEAR
- SD42920 $SC_WEAR_SIGN_CUTPOS
- SD42930 $SC_WEAR_SIGN
- SD42940 $SC_TOOL_LENGTH_CONST
- SD42950 $SC_TOOL_LENGTH_TYPE
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
747
Work preparation
3.13 Tool offsets
3.13.3.4
Tool length and plane change
When setting data SD42940 $SC_TOOL_LENGTH_CONST is set not equal to zero, then you can
assign the tool length components - such as lengths, wear and basic dimension - to the
geometry axes for turning and grinding tools when changing the plane.
SD42940 $SC_TOOL_LENGTH_CONST
Setting data not equal to zero:
The assignment of tool length components (length, wear and tool base dimension) to geometry
axes does not change when the machining plane is changed (G17 - G19).
The following table shows the assignment of tool length components to geometry axes for
turning and grinding tools (tool types 400 to 599):
Content
Length 1
Length 2
Length 3
17
Y
X
Z
*)
X
Z
Y
19
Z
Y
X
-17
X
Y
Z
-18
Z
X
Y
-19
Y
Z
X
*)
Each value not equal to 0, which is not equal to one of the six listed values, is evaluated as value 18.
The following table shows the assignment of tool length components to geometry axes for all
other tools (tool types < 400 or > 599):
Operating plane
Length 1
Length 2
Length 3
*)
Z
Y
X
18
Y
X
Z
19
X
Z
Y
-17
Z
X
Y
-18
Y
Z
X
-19
X
Y
Z
*)
Each value not equal to 0, which is not equal to one of the six listed values, is evaluated as value 17.
Note
For representation in tables, it is assumed that geometry axes up to 3 are designated with X, Y,
Z. The axis order and not the axis identifier determines the assignment between a compensation
and an axis.
NC programming
748
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.13 Tool offsets
3.13.4
Online tool offset
3.13.4.1
Defining a polynomial function (FCTDEF)
Certain dressing strategies (e.g. dressing roller) are characterized by the fact that the grinding
wheel radius is continuously (linearly) reduced as the dressing roller is fed in. This strategy
requires a linear function between infeed of the dressing roller and writing the wear value of
each length. The linear function is defined using the predefined procedure FCTDEF(...) for up to
third order polynomial functions.
Straight line equation
y = f(x) = a0 + a1*x1
a1: Gradient of the straight line, with a1= Δx / Δy
a0: Shift of the straight line along the X axis with a0 = -a1 * XV
<
˂\
˂[
;
;9
Syntax
FCTDEF(<Func>,<LLimit>,<ULimit>,<a0>,<a1>,<a2>,<a3>)
Meaning
FCTDEF(...):
Defining a polynomial function for PUTFTOCF(...):
y = f(x) = a0 + a1*x + a2*x2 + a3*x3
<Func>:
Function number
Data type:
INT
Range of values:
1, 2, 3
<LLimit>:
Lower limit value
Data type:
REAL
<ULimit>:
Upper limit value
Data type:
REAL
<a0>,<a1>,<a2>,<a3>:
Coefficients of polynomial function
Data type:
REAL
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
749
Work preparation
3.13 Tool offsets
Example
Definitions
• Function number: 1
• Lower and upper limit value: -100, 100
• Gradient of the characteristic: a1 = 1
• The operating point should be located at the center of the characteristic. Based on the
setpoint position of axis XA in the WCS at the instant that the function is defined in the NC
program, the characteristic must be shifted in the negative Y direction: a0 = -a1 * XAD = -1 *
$AA_IW
• a2 = a3 = 0
Characteristic
<
8/
;$'
;$
//
UL
Upper limit value
LL
Lower limit value
XAD
Setpoint of axis XA at the time that the function is defined in the NC program
Programming
Program code
Comment
FCTDEF(1,-100,100,-$AA_IW[XA],1)
; Function definition
3.13.4.2
Write online tool offset continuously (PUTFTOCF)
Using the predefined procedure PUTFTOCF(...), an online tool offset is executed based on a
polynomial function previously defined with FCTDEF(...) (Page 749).
Note
The online tool offset can also be realized using a synchronized action.
For further information, see Function Manual Synchronized Actions.
NC programming
750
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.13 Tool offsets
Syntax
PUTFTOCF(<Func>,<RefVal>,<ToolPar>,<Chan>,<Sp>)
Meaning
PUTFTOCF(...):
Write online tool offset, continuously block-by-block using the polynomial function
defined with FCTDEF(...)
<Func>:
Function number, defined in the function definition with FCTDEF(...)
Data type:
INT
Range of val-
1, 2, 3
ues:
<RefVal>:
Reference value, from which the offset is to be derived (e.g. setpoint of an axis).
Data type:
VAR REAL
<ToolPar>:
Number of the wear parameter (length 1, 2 or 3) in which the offset value is to be
included.
Data type:
INT
<Chan>:
Number of the channel in which the online tool offset is to take effect.
Note:
Only required if the offset is not to take effect in the active channel.
Data type:
INT
<Sp>:
Number of the spindle for which the online tool offset is to take effect.
Note:
Only required if the offset is to be applied to a non-active grinding wheel rather than
the active tool that is currently in use.
Data type:
INT
3.13.4.3
Write online tool offset, discrete (PUTFTOC)
Function
Using the predefined procedurePUTFTOC(...), an online tool offset is executed based on a fixed
offset value.
Syntax
PUTFTOC(<CorrVal>,<ToolPar>,<Chan>,<Sp>)
Meaning
PUTFTOC(...):
Write online tool offset
<CorrVal>:
Offset value, which is added to the wear parameter.
Data type:
REAL
<ToolPar>:
Number of the wear parameter (length 1, 2 or 3) in which the offset value is to be
included.
Data type:
INT
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
751
Work preparation
3.13 Tool offsets
<Chan>:
Number of the channel in which the online tool offset is to take effect.
Note:
Only required if the offset is not to take effect in the active channel.
Data type:
INT
<Sp>:
Number of the spindle for which the online tool offset is to take effect.
Note:
Only required if the offset is to be applied to a non-active grinding wheel rather than
the active tool that is currently in use.
Data type:
INT
3.13.4.4
Activate/deactivate online tool offset (FTOCON/FTOCOF)
The online tool offset is activated or deactivated using the G commands FTOCON and FTOCOF.
Syntax
FTOCON
FTOCOF
Meaning
FTOCON:
Activate online tool offset
The command must be programmed in the channel in which the online tool offset
is to be activated.
FTOCOF:
Deactivate online tool offset
The command must be programmed in the channel in which the online tool offset
is to be deactivated.
Note:
On FTOCOF, the axis does not move further out for the tool offset. However, the
value calculated with PUTFTOC/PUTFTOCF remains in the cutting-specific offset da-
ta.
To finally deactivate the online tool offset, the tool (T...) must again be selected/
deselected after FTOCOF.
3.13.5
3D tool radius compensation
3.13.5.1
Selecting 3D tool radius compensation for 3D circumferential milling (CUT3DC,
CUT3DCD, ISD)
The 3D tool radius compensation (3D TRC) for the 3D circumferential milling without taking
limitation surfaces into account is selected with the modally effective G command CUT3DC or
CUT3DCD.
NC programming
752
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.13 Tool offsets
The actual activation is performed with G41 or G42 The tool radius compensation is deactivated
with G40.
Syntax
G41/G42 ORIC/ORID ISD=... CUT3DC/CUT3DCD CDOF2 X... Y... Z...
G40 X... Y... Z...
Meaning
CUT3DC:
3D TRC for circumferential milling (only when 5-axis transforma-
tion is active)
CUT3DCD:
3D TRC in relation to a differential tool for circumferential milling
(only when 5-axis transformation is active)
The radius difference is specified by the tool parameter $TC_DP15.
G41/G42 X... Y... Z... :
Activate tool radius compensation
G41:
Tool radius compensation left of the contour
G42:
Tool radius compensation right of the contour
Note:
The activation must be performed in a linear block (G0/G1).
CDOF2:
Deactivate collision detection for 3D circumferential milling
ORIC/ORID:
The behavior for orientation changes at outside corners is specified
via the G commands ORIC and ORID.
ORIC:
Orientation changes at outside corners are superim-
posed on the circle block to be inserted.
ORID:
Orientation changes at outside corners are executed
before the circle block to be inserted.
ISD=<Value>:
With the ISD address, the insertion depth of the tool can be
changed for circumferential milling and active 3D tool radius com-
pensation.
<Value>:
Length of the insertion depth
G40 X... Y... Z... :
Deactivate tool radius compensation
Note:
The deactivation must be performed in a linear block (G0/G1) with
geometry axis movements.
Note
The G commands for selecting the 3D TRC are evaluated in the approach block, i.e. typically in
the block that contains G41 or G42.
G41 or G42 can also be programmed in blocks without traversing movement in geometry axes
relevant for the compensation. In this case, the approach block is the first traversing block
following such a block.
A change of the 3D TRC variant with active tool radius compensation is ignored without alarm.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
753
Work preparation
3.13 Tool offsets
Example
Program code
Comment
; Definition of tool D1:
$TC_DP1[1,1]=120
; Type (end mill)
$TC_DP3[1,1]=20
; Length compensation vector
$TC_DP6[1,1]=8
; Radius
N10 X0 Y0 Z0 T1 D1 F12000
; Selection of the tool.
N20 TRAORI(1)
; Activation of the transformation.
N30 G42 ORIC ISD=10 CUT3DC G64 X30
; Activation of the 3D circumferential milling,
; continuous orientation changes at outside corners,
; insertion depth: 10 mm
N40 ORIWKS A30 B15
; Orientation change at a corner through specification of axis po-
sitions.
N50 Y20 A3=1 C3=1
; Traversing block with orientation change,
; specification of the orientation with direction vector.
N60 X50 Y30
; Traversing block with constant orientation.
N70 Y50 A3=0.5 B3=1 C3=5
; Traversing block with orientation change.
N80 M63
; Block without traversing information.
N90 X0 ISD=20
; Traversing block with change of the insertion depth.
N100 G40 Y0
; Deactivation of the tool radius compensation.
N110 M30
Further information
Path and orientation
The type of circumferential milling used here is implemented by defining a path (guide line) and
the associated orientation. In this type of machining, the shape of the tool on the path is not
relevant. Only the radius at the tool intervention point is decisive.
$
%
=
;
<
NC programming
754
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.13 Tool offsets
Figure 3-8
Circumferential milling
Approach behavior
The approach behavior is always NORM for the 3D variant of the tool radius compensation.
Behavior at outside corners
The G commands of group 18 (corner behavior, tool offset) are evaluated at the outside corners
for circumferential milling with 3D TRC in the same way as for the conditions for the 2½D TRC:
• G450: Transition circle (tool travels round workpiece corners on a circular path)
In contrast to the solution for the 2½D TRC, the inserted contour element at an outside corner
is always a circle with a 0 radius, on which the tool radius compensation acts in the same way
as on any other programmed path. It is not possible to insert conics instead of circles. In this
case, the DISC address has no significance and is therefore not evaluated.
• G451: Intersection of equidistant paths (tool backs off from the workpiece corner)
The intersection is determined by extending the offset curves of the two participating blocks
and defining the intersection of the two blocks at the corner in the plane perpendicular to the
tool orientation.
The intersection procedure (G451) is not used when at least one block containing a change to
the tool orientation was inserted between the relevant traversing blocks. In this case, a circle is
always inserted at the corner.
Behavior for changes in orientation at outside corners
The ORIC and ORID G commands are used to determine whether changes in orientation
programmed between two blocks forming the corner are executed before the inserted circle
block (ORID) is processed or at the same time (ORIC).
Insertion depth
The insertion depth of the milling tool is the distance of the milling tool reference point from the
tip of the tool.
The milling tool reference point is the vertical projection of the milling tool machining point on
the programmed path to the longitudinal axis of the tool.
The position of the machining point on the peripheral surface of the tool is set with the insertion
depth.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
755
Work preparation
3.13 Tool offsets
① Programmed path
② Milling tool machining point
③ Milling tool reference point
④ Milling tool tip
ISD
Insertion depth (InSertion Depth)
Figure 3-9
Insertion depth
Tool radius compensation referred to a differential tool
3D TRC for circumferential milling referred to a differential tool is activated via the CUT3DCD
command. It should be applied if the programmed contour refers to the center-point path of a
standard tool, and a tool other than a differential tool is used for machining. When calculating
the 3D tool radius compensation, only the wear value of the radius of the active tool ($TC_DP15)
and any programmed tool offsets OFFN and TOFFR/TOFFLR are taken into account. The basic
radius ($TC_DP6) of the active tool is not taken into account.
Pocket milling with inclined side walls for circumferential milling with CUT3DC
In this 3D tool radius compensation, a deviation of the mill radius is compensated by infeed
toward the surface normals to be machined. The plane, in which the milling tool face is located,
remains unchanged if the insertion depth ISD has remained the same. For example, a milling
tool with a smaller radius than a standard tool would not reach the pocket base, which is also the
limitation surface. For automatic tool infeed, this limitation surface must be known to the
control, see Section "3D circumferential milling taking into account a limitation surface
(CUT3DCC, CUT3DCCD) (Page 763)".
NC programming
756
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.13 Tool offsets
Advanced Surface / Top Surface
Note
When applying tool radius compensation CUT3DCD in combination with the "Advanced Surface"
or "Top Surface" option (requiring a license), the setting recommendations regarding "Advanced
Surface" / "Top Surface" must be observed.
A special test program is provided in the SIOS portal for checking the set data.
→ Test program for Advanced Surface / Top Surface (https://
support.industry.siemens.com/cs/ww/en/view/109738423)
3.13.5.2
Selecting 3D tool radius compensation for the 3D face milling (CUT3DF, CUT3DFS,
CUT3DFF, CUT3DFD)
The 3D tool radius compensation (3D TRC) for the 3D face milling is selected with the modally
effective G command CUT3DF, CUT3DFS, CUT3DFF or CUT3DFD.
The actual activation is performed with G41 or G42
With 3D face milling, the surface normals of the plane to be machined must be defined in order
to calculate the tool radius compensation. This must be performed in the block with G41 or G42
via the A4, B4, C4 and A5, B5, C5 addresses.
The tool radius compensation is deactivated with G40.
Syntax
G41/G42 ORIC/ORID CUT3DF/CUT3DFS/CUT3DFF/CUT3DFD X... Y... Z... A4=... B4=...
C4=... A5=... B5=... C5=
G40 X... Y... Z...
Meaning
CUT3DFS:
3D TRC for face milling with constant orientation. The tool
orientation is defined by G17 - G19 and is not influenced by
frames.
CUT3DFF:
3D TRC for face milling with constant orientation. The tool
orientation is the direction defined by G17 - G19 and, in some
cases, rotated by a frame.
CUT3DF:
3D TRC for face milling with orientation change (only with
active 5-axes transformation)
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
757
Work preparation
3.13 Tool offsets
CUT3DFD:
3D TRC in relation to a differential tool for face milling with
change in orientation (only with active 5-axis transformation)
The radius difference is specified by the tool parameter
$TC_DP15.
Note:
CUT3DFD is only possible in combination with "Smoothing of
surface normals in 3D face milling". This is activated by calling
the "Top Surface" function (requires a license) via CY-
CLE832(...).
G41/G42 X... Y... Z... :
Activate tool offset
The behavior with G41 and with G42 is identical for 3D face
milling.
Note:
The activation must be performed in a linear block (G0/G1).
A4/5=... B4/5=... C4/5=...:
Definition of the surface normals of the plane to be machined
A4=... B4=... C4=...:
Definition at start of block
A5=... B5=... C5=...:
Definition at end of block
ORIC/ORID:
The behavior for orientation changes at outside corners is
specified via the G commands ORIC and ORID.
ORIC:
Orientation changes at outside corners are su-
perimposed on the circle block to be inserted.
ORID:
Orientation changes are performed before the
circle block.
G40 X... Y... Z... :
Deactivate tool radius compensation
Note:
The deactivation must be performed in a linear block (G0/G1)
with geometry axis movements.
Note
G41 or G42 can also be programmed in blocks without traversing movement in geometry axes
relevant for the compensation. In this case, the approach block is the first traversing block
following such a block.
A change of the 3D TRC variant with active tool radius compensation is ignored without alarm.
Examples
Example 1: 3D face milling with CUT3DF
Program code
Comment
N10
; Definition of tool D1:
N20 $TC_DP1[1,1]=121
; Tool type (toroidal miller)
N30 $TC_DP3[1,1]=20
; Length compensation
N40 $TC_DP6[1,1]=5
; Radius
N50 $TC_DP7[1,1]=3
; Rounding radius
N60
N70
NC programming
758
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.13 Tool offsets
Program code
Comment
N80 X0 Y0 Z0 A0 B0 C0 G17 T1 D1 F12000
; Selection of the tool.
N90 TRAORI(1)
; Select orientation transformation.
N100 B4=-1 C4=1
; Definition of the plane.
N110 G41 ORID CUT3DF G64 X10 Y0 Z0
; Activate tool offset.
N120 X30
N130 Y20 A4=1 C4=1
; Outside corner, new plane definition.
N140 B3=1 C3=5
; Change in orientation with ORID.
N150 B3=1 C3=1
; Change in orientation with ORID.
N160 X-10 A5=1 C5=2 ORIC
N170 A3=-2 C3=1
; Change in orientation with ORIC.
N180 A3=-1 C3=1
; Change in orientation with ORIC.
N190 Y-10 A4=-1 C4=3
; New plane definition.
N200 X-20 Y-20 Z10
; Inside corner with previous block.
N210 X-30 Y10 A4=1 C4=1
; Inside corner, new plane definition.
N220 A3=1 B3=0.5 C3=1.7
; Change in orientation with ORIC.
N230 X-20 Y30 A4=1 B4=-2 C4=3 ORID
N240 A3 = 0.5 B3=-0.5 C3=1
; Change in orientation.
N250 X0 Y30 C4=1
; Path movement, new plane,
; orientation with relative programming.
N260 BSPLINE X20 Z15
; Spline begin, relative programming of the orien-
tation
N270 X30 Y25 Z18
; remains active during spline.
N280 X40 Y20 Z13
N290 X45 Y0 PW=2 Z8
N300 Y-20
N310 G2 ORIMKS A30 B45 I-20 X25 Y-40 Z0
; Helix, orientation with axis programming.
N320 G1 X0 A3=-0.123 B3=0.456 C3=2.789 B4=-1 C4=5
; Path movement, orientation, non-constant plane.
B5=-1 C5=2
N330 X-20 G40
; Deactivation of the tool radius compensation.
N340 M30
Example 2: NC program (section) generated from a CAD system with CUT3DFD
Program code
Comment
N01 G710
N03 T="12"
N06 S5305 M03
N07 G642
; Approaching the starting position in the MCS taking the tool length into account.
G00 G90 X-250.62787 Y-38.37944 A=DC(253.12719)
B-12.49543
G00 G90 Z251.80052
; End of positioning in the MCS.
;
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
759
Work preparation
3.13 Tool offsets
Program code
Comment
TRAORI(1)
; Select orientation transformation.
G500
D1
CYCLE832(0.01, _TOP_SURFACE_SMOOTH_ON + _ORI_FIN-
; Call CYCLE832 with:
ISH, 1)
; Contour tolerance = 0.01 mm,
; Processing type: Top Surface with smoothing,
; Finishing with input of an orientation toler-
ance,
; Orientation tolerance = 1 degree
CUT3DFD
N08 G90 G94
N09 G00 X-269.21195 Y128.32027 Z1.18577
; The blocks N09 to N10 are the fast portion of
A3=-.216361688 B3=.934284397 C3=-.283373051
the approach movement to the workpiece with con-
stant orientation.
N10 G00 X-251.90301 Y53.57752 Z23.85561
N11 G01 X-247.57578 Y34.89183 Z29.52308 F50000.00000
; In the blocks N11 to N21, the slow portion of
the approach movement is realized. The tool is
already close to the workpiece; furthermore, the
mold making settings (e.g. COMPSURF) from the CY-
CLE832 are now active (due to active G01). The
path of this so-called transient phase for the
mold-making behavior should be about 1000 times
the contour tolerance (10 mm in this example).
N12 X-247.69126 Y33.82182 Z24.78219 F1061.00000
N13 X-247.76560 Y33.13299 Z21.73022
N14 X-247.82755 Y32.55897 Z19.18691
N15 X-247.87918 Y32.08062 Z17.06748
N16 X-247.92220 Y31.68200 Z15.30129
N17 X-247.95805 Y31.34981 Z13.82947
A3=-.216361686 B3=.934284391 C3=-.283373071
N18 X-247.98792 Y31.07299 Z12.60295
A3=-.216360662 B3=.934280801 C3=-.283385691
N19 X-248.01282 Y30.84230 Z11.58085
A3=-.216336015 B3=.934194446 C3=-.283689030
N20 X-248.03357 Y30.65006 Z10.72910
A3=-.216233089 B3=.933833626 C3=-.284952647
N21 X-248.05086 Y30.48986 Z10.01931
A5=-.060687572 B5=.974940255 C5=-.214029243
A3=-.215712821 B3=.932005189 C3=-.291263295
N22 G41 X-248.06237 Y30.32400 Z9.36695
; From N22, the surface normal is completely de-
A5=-.060431854 B5=.973045457 C5=-.222554556
fined over the entire block for the first time
A3=-.214974689 B3=.929398552 C3=-.300007025
(i.e. surface normal at the end of the previous
F1061.03295
block N21 is present, thus the surface normal at
the beginning of the block N22 and the surface
normal at the end of the block N22). Thus the
prerequisite for switching on the tool offset
with G41/G42 is fulfilled.
NC programming
760
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.13 Tool offsets
Program code
Comment
N23 X-248.07130 Y30.15119 Z8.71082
A5=-.060165696 B5=.971048883 C5=-.231179920
A3=-.214177198 B3=.926684940 C3=-.308841625
N24 X-248.07829 Y29.97126 Z8.05094
A5=-.059884286 B5=.968941717 C5=-.239928784
A3=-.213318480 B3=.923853466 C3=-.317789237
N25 X-248.08317 Y29.78487 Z7.38844
A5=-.059584206 B5=.966718449 C5=-.248807482
A3=-.212397895 B3=.920898045 C3=-.326854594
N26 X-248.08578 Y29.59254 Z6.72679
A5=-.059263963 B5=.964380907 C5=-.257793037
A3=-.211418355 B3=.917822366 C3=-.336012474
Note
For 3D face milling with CUT3DFD, the definition of the surface normal is required for activating
the tool offset with G41/G42. Programming of G41/G42 without definition of the surface
normals leads to the output of an alarm.
See also
CYCLE832 - High-Speed Settings (Page 1112)
Further information
3D face milling
For this type of 3D milling, you require the line-by-line description of the 3D paths on the
workpiece surface. The tool shape and dimensions are taken into account in the calculations,
which are normally performed in CAM. The postprocessor writes to the part program - in
addition to NC blocks - the tool orientations (for active 5-axis transformation) and the G
command for the required 3D tool offset. This means that the machine operator has the
possibility of using tools that are slightly smaller - deviating from the tool used to calculate the
NC paths.
Figure 3-10
Face milling
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
761
Work preparation
3.13 Tool offsets
Approach behavior
The approach behavior is always NORM for the 3D variant of the tool radius compensation.
Behavior at outside corners
Outside corners are treated as circles with radius 0 for face milling, whereby the circle plane
extends from the end tangent of the first block to the start tangent of the second block. In this
way, the orientation can be changed during block transition. A circle is therefore always inserted
as contour element at an outside corner. The intersection procedure is not available with face
milling.
Behavior for changes in orientation at outside corners
The ORIC and ORID G commands are used to determine whether changes in orientation
programmed between two blocks forming the corner are executed before the inserted circle
block (ORID) is processed or at the same time (ORIC).
Tool radius compensation referred to a differential tool
3D tool radius compensation referring to a differential tool is selected using the CUT3DFD
command. It should be applied if the programmed contour refers to the center-point path of a
standard tool, and a tool other than a differential tool is used for machining. When calculating
the 3D tool radius compensation, only the wear value of the radius of the active tool ($TC_DP15)
and any programmed tool offsets OFFN and TOFFR/TOFFLR are taken into account. The basic
radius ($TC_DP6) of the active tool is not taken into account.
3D face milling with CUT3DFD is only possible in combination with "Smoothing of surface
normals in 3D face milling". This is activated by calling the "Top Surface" function (requires a
license) via CYCLE832(...). Activation must take place before the tool offset is activated with
G41/G42; not directly before tool intervention, but rather one path length before that, which
corresponds to approx. 1000 times the contour tolerance (e.g. 1000 x 0.01 mm = 10 mm).
Deactivation must be executed in reverse order: First switch off the tool offset with G40, then
deactivate with e.g. CUT2D (or similar) after a path length which corresponds with
approximately 1000 time the contour tolerance.
In order to be able to use the "Smoothing of surface normals in 3D face milling", the
"Interpolation of surface normals via polynomials" function must also be enabled:
MD28291 $MC_MM_SMOOTH_SURFACE_NORMALS = TRUE
Note
For 3D face milling with CUT3DFD in combination with "Top Surface", the setting
recommendations regarding "Top Surface" must be observed.
A special test program is provided in the SIOS portal for checking the set data.
→ Test program for Top Surface (https://support.industry.siemens.com/cs/ww/en/view/
109738423)
See also
CYCLE832 - High-Speed Settings (Page 1112)
NC programming
762
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.13 Tool offsets
3.13.5.3
3D circumferential milling taking into account a limitation surface (CUT3DCC,
CUT3DCCD)
In 3D circumferential milling with a continuous or constant change in tool orientation, the tool
center-point path is frequently programmed for a defined standard tool. Because in practice
suitable standard tools are often not available, a tool that does not deviate too much from a
standard tool (≤ 5%) can be used.
CUT3DCCD takes account of a limitation surface for a real differential tool that the programmed
standard tool would define. The NC program defines the center-point path of a standard tool.
CUT3DCC with the use of cylindrical tools takes account of a limitation surface that the
programmed standard tool would have reached. The NC program defines the contour on the
machining surface.
The surface normal vector of the limitation surface is specified with A4, B4, C4 and A5, B5, C5
for 3D face milling.
Syntax
G41/G42 CUT3DCCD/CUT3DCC CDOF2 X... Y... Z... A4=... B4=... C4=... A5=... B5=...
C5=
G40 X... Y... Z...
Meaning
CUT3DCCD:
3D TRC for circumferential milling taking into account a limitation
surface with a differential tool on the tool center-point path: Infeed to
the limitation surface
CUT3DCC:
3D TRC for circumferential milling taking into account a limitation
surface with 3D radius compensation: Contour on the machining
surface
G41/G42 X... Y... Z... :
Activate tool radius compensation
G41:
Tool radius compensation left of the contour
G42:
Tool radius compensation right of the contour
Note:
The activation must be performed in a linear block (G0/G1).
CDOF2:
Deactivate collision detection for 3D circumferential milling
A4/5=... B4/5=...
Definition of the surface normals of the limitation surface
C4/5=...:
A4=... B4=... C4=...:
Definition at start of block
A5=... B5=... C5=...:
Definition at end of block
G40 X... Y... Z... :
Deactivate tool radius compensation
Note:
The deactivation must be performed in a linear block (G0/G1) with
geometry axis movements.
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
763
Work preparation
3.13 Tool offsets
Note
The G commands for selecting the 3D TRC are evaluated in the approach block, i.e. typically in
the block that contains G41 or G42.
G41 or G42 can also be programmed in blocks without traversing movement in geometry axes
relevant for the compensation. In this case, the approach block is the first traversing block
following such a block.
A change of the 3D TRC variant with active tool radius compensation is ignored without alarm.
Example
Program code
Comment
N10 $TC_DP1[1,1]=120
; Cylindrical milling tool
N20 $TC_DP6[1,1]=10
N30 $TC_DP15[1,1]=-3
; Processing with cylindrical milling tool and CUT3DCCD
N110 TRAORI
; Activation of the transformation.
N120 A4=0 B4=0 C4=1
; Definition of the surface normal of the
limitation surface at the start of the
block.
N130 X0 Y0 Z0 A0 C0 T1 D1 F20000
N140 X10 Y0 Z0 G41 CUT3DCCD CDOF2 G64
; Activate 3D circumferential milling,
taking into account the limitation sur-
face + switching off collision detection.
N150 X20
N160 X30 A45
; Obtuse angle ==> no infeed
N170 X40 A-45
; Acute angle ==> infeed
N180 X55
N190 Y10 Z10
; Movement in the tool direction.
N200 Y20
N210 C45
; Pure change in orientation.
N220 Y30 C90
N230 A5=-1 B5=0 C5=2 Y40
; Change of the surface.
N240 Y50 G40
; Deactivation of the tool radius compen-
sation.
Further information
Tool type
The tool type (tool parameter $TC_DP1) is evaluated. Only milling tools with cylindrical shank
(cylinder or end mill, toroidal miller and, in the limit case, cylindrical die mill) are permitted. This
corresponds to the tool types 1 - 399, with the exception of the numbers 111 and 155 to 157.
NC programming
764
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
Work preparation
3.13 Tool offsets
Standard tools with corner rounding
Corner rounding with a standard tool is defined by the tool parameter $TC_DP7. Tool parameter
$TC_DP16 describes the deviation of the corner rounding of the real tool compared with the
standard tool.
Example: Toroidal miller with reduced radius compared to the standard tool
Tool type
Shaft radius (R)
Corner radius (r)
Standard tool with corner rounding
R = $TC_DP6
r = $TC_DP7
Real tool with corner rounding
R' = $TC_DP6 + $TC_DP15 + OFFN
r' = $TC_DP7 + $TC_DP16
Tool types 121 and 131 toroidal
miller
(end mill with corner rounding)
In this example, both $TC_DP15 + OFFN and $TC_DP16 are negative.
3D TRC with CUT3DCCD: Tool center-point path with infeed up to the limitation surface
If a tool with a smaller radius than the appropriate standard tool is used, machining is continued
using a milling tool, which is fed in in the longitudinal direction until it reaches the bottom (base)
of the pocket. The tool removes as much material from the corner formed by the machining
surface and limitation surface. This involves a machining type combining circumferential and
face milling. Analogous to a tool with reduced radius, for a tool with increased radius, the infeed
is in the opposite direction.
① Standard tool
② Tool with smaller radius infeed up to the limitation surface
③ Limitation surface
④ Machining surface
Contrary to all other tool offsets of G group 22, tool parameter $TC_DP6 specified for CUT3DCCD
has no relevance for the tool radius and does not influence the resulting compensation. The
compensation offset results from the sum of the wear value of the tool radius (tool parameter
$TC_DP15) and a tool offset OFFN programmed to calculate the perpendicular offset to the
limitation surface.
The generated part program does not specify whether the surface to be machined is to the right
or left of the path. It is therefore assumed that the radius is a positive value and the wear value
NC programming
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1
765
Work preparation
3.13 Tool offsets
of the original tool is a negative value. A negative wear value always describes a tool with a
reduced diameter.
Using cylindrical tools
When cylindrical tools are used, infeed is only necessary if the machining surface and the surface
of limitation form an acute angle (less than 90 degrees). If a toroidal miller (end mill with corner
rounding) is used, tool infeed in the longitudinal direction is required for both acute and obtuse
angles.
3D TRC with CUT3DCC: Contour on the machining surface
If CUT3DCC is active with a toroidal miller, the programmed path refers to a fictitious cylindrical
milling tool having the same diameter. The resulting path reference point is shown in the
following diagram for a toroidal miller.
5
① Toroidal miller
② Limitation surface
③ Path reference point
④ Machining surface
R
Shaft radius (tool radius)
The angle between the machining and limitation surfaces may change from an acute to an
obtuse angle and vice versa even within the same block.
The tool actually being used may either be larger or smaller than the standard tool. However, the
resulting corner radius must not be negative and the sign of the resulting tool radius must be
kept.
For CUT3DCC, the NC part program refers to the contour on the machining surface. As for
conventional tool radius compensation, the total tool radius is used that comprises the following
components:
• Tool radius (tool parameter $TC_DP6)
• Wear value (tool parameter $TC_DP15)
• A tool offset OFFN programmed to calculate the perpendicular offset to the limitation surface
The position of the limitation surface is defined from the following difference:
Dimensions of the standard tool - tool radius (tool parameter $TC_DP6)
NC programming
766
Programming Manual, 10/2020, 6FC5398-2EP40-0BA1

 

 

 

 

 

 

 

Content      ..     9      10      11      12     ..