TCP lateral offset

In some manufacturing processes, it may be desirable to correct the contact point of the tool on the workpiece (TCP).

The CNC Lateral Offset function permits the XY of the TCP to be corrected in the (projected) tool direction. The size of the offset depends on the tilt angle of the tool and can be configured by the user in a table.

TCP lateral offset 1:
Overview of lateral offset

The lateral offset functionality is a property of machine kinematics. The following kinematics are supported:

The lateral offset functionality must be activated using P-CHAN-00456 (retract_after_error). Each of the lateral offsets is configured in the kinematic parameters.

trafo_mode    BEVEL_ANGLE_LATERAL_OFFSET  # P-CHAN-00456

Configuring a lateral offset

A lateral offset is dependent on the orientation of the tool:

Example

Empirical values and lateral offset

It is assumed that the user has determined the following empirical values for the offset.

Tilt

Required offset

0 °

0 mm

10 °

0.27 mm

20 °

0.5 mm

30 °

0.78 mm

40 °

1.1 mm

50 °

1.15 mm

This table is configured in the kinematic parameters (P-CHAN-00263) of kinematic 90 from index 20 onwards.
The units used are 10^-4 degrees for tilt and 10^-4 mm for the offset. The values for tilt and offset are entered alternately.

trafo[0].id              90    # Kinematic Id
# Offset dimension of kinematic 90
trafo[0].param[20]       6    # Number of table entries
trafo[0].param[21]       0    # 0°
trafo[0].param[22]       0    # 0mm
trafo[0].param[23]  100000    # 10°
trafo[0].param[24]    2700    # 0.27mm
trafo[0].param[25]  200000    # 20°
trafo[0].param[26]    5000    # 0.5mm
trafo[0].param[27]  300000    # 30°
trafo[0].param[28]    7800    # 0.78mm
# etc.

The values in this table are smoothed by the CNC.

TCP lateral offset 2:

Programming examples

After the kinematic is activated, the lateral offset is active and is executed with the next motion block.

Programming Example

Select kinematic 90 with lateral offset

; Select kinematic
N010 #KIN ID [90]
N020 #TRAFO ON
; motion, lateral offset now active
N110 G00 X100 Y200 Z20 A30 B0
; …
; Deselect kinematic
N210 #TRAFO OFF
N220 M30

Programming Example

Lateral offset with constant tilt

With a constant tilt and when #CAXTRACK is used, lateral offset is similar in effect to a tool radius compensation.

The condition here is to define a C axis as the tracking axis. This is defined either by the NC command #CAXTRACK or P-CHAN-00095.

; …
N10 #KIN ID[90]
;…
N550 G00 G91 X5 Y5
N570 F2000
N580 #TRAFO ON
N590 G01 G90 A[30]
N600 #CAXTRACK ON [AX C]
N610 G01 G91 X20 Y0
N620 G01 G91 X0 Y15
N630 G01 G91 X-20 Y0
N640 G01 G91 X0 Y-15
N650 #CAXTRACK OFF
N660 #TRAFO OFF
; …
TCP lateral offset 3:
Path profile

The table for tilt and offset must meet the following conditions:

If these rules are not met, the error ID 292072 is output when the transformation is selected.