background image

Description

TF5200 | TwinCAT 3 CNC
Online tool compensation

9

Version: 1.02

2

Description

Task

With certain processes such as grinding, the length or the radius of the tool must be continuously corrected
to compensate for wear.

Wear compensation depends on the path covered. In addition, compensation can be influenced by the PLC.

Wear compensation is activated and deactivated from the NC program. The wear constant can be
parameterised both from the NC program and using preset parameters in the tool list P-TOOL-00030.

Rapid traversing blocks have no wear.

It is assumed that the entire width of the lateral surface of the grinding disc is in contact.

Workpiece

Tool

holder

Figure 1: Grinding a contour

Tool type

Wear compensation can only be enabled with tool type 2 (grinding tool). If a different tool type is used, error
message P-ERR-21391 is output.

Processing types

Online wear compensation can be used for 4 processing types and 3 different modes.

1. Radius compensation (only in combination with active TRC) for processing contours in the plane (2.5

D)

2. Length compensation for processing surfaces (surface grinding, 2.5 D)

3. Compensation in tool direction for any orientation (5-axis)

4. Compensation in direction of surface normal (5-axis)

Modes

1. Continuous (dependent on motion path traversed)

2. Discrete (discrete wear compensation via PLC)

3. Automatic, combination of discrete and continuous

Discrete additive wear values which are assigned by the PLC are adjusted over several cycles.

2.1

Programming

The following NC command is provided to program online tool compensation in the NC program.
Parametrisation can be programmed in advance or in combination with #OTC ON:

#OTC ON

 | 

OFF 

[

 [

 

RADIUS

 | 

LENGTH 

TOOL_DIR 

|

 SURF_NORM_DIR

 

DISC

 | 

CONT

 | 

AUTO

Summary of Contents for TF5200

Page 1: ...Functional description EN TF5200 TwinCAT 3 CNC Online tool compensation 6 8 2021 Version 1 02...

Page 2: ......

Page 3: ...dification of products that have already been supplied may be made on the basis of the data diagrams and descriptions in this documentation Trademarks Beckhoff TwinCAT TwinCAT BSD TC BSD EtherCAT Ethe...

Page 4: ...nger to human life and health CAUTION Personal injury and damage to machines If you fail to comply with the safety instruction next to this icon it may result in personal injury or damage to machines...

Page 5: ...pensation of tool length 15 2 3 1 Inclined grinding disc 18 2 4 Wear compensation in tool direction 19 2 5 Wear compensation in direction of surface normal 22 2 6 Special settings in tool data 25 2 7...

Page 6: ...Table of contents TF5200 TwinCAT 3 CNC Online tool compensation 6 Version 1 02...

Page 7: ...re 4 Description of RADIUS function 15 Figure 5 Wear compensation of tool length 16 Figure 6 Description of LENGTH function 17 Figure 7 Inclined grinding disc 18 Figure 8 Wear compensation in tool dir...

Page 8: ...ram The wear constant can be parameterised both from the NC program and using preset parameters in the tool list P TOOL 00030 Further parameters in this context are described in the section Parameter...

Page 9: ...2 grinding tool If a different tool type is used error message P ERR 21391 is output Processing types Online wear compensation can be used for 4 processing types and 3 different modes 1 Radius compens...

Page 10: ...ternal presetting and internal calculation default WEAR_CONST expr User specific definition of wear constant it acts modally this means that with OTC ON the programmed wear constant is used and not th...

Page 11: ...sc wear in the direction of the disc radius can be compensated continuously or discretely In the radius compensation processing type wear is only considered for active tool radius compensation TRC The...

Page 12: ...N10 F10000 N20 D1 Data set selection for grinding wheel N30 G0 X0 Y0 Z0 N40 OTC RADIUS AUTO OTC operation mode define mode N50 OTC ON Select OTC N60 G41 G01 X50 Select TRC wear free movement N70 X100...

Page 13: ...F600 N50 OTC ON RADIUS DISC N55 G42 N60 G1 X2 N70 G1 X102 N80 G26 Y100 Circular transition block N90 X2 N95 Y0 N100 G40 G1 X0 N110 OTC OFF N99999 M30 Legend Green Path contour with active TRC without...

Page 14: ...annel_idx addr MCControlBahn_Data MCControlSGN32Unit_OTCRadiusOffset where channel_idx 1 HLI_SYS_CHNMAX PLC access for CNC Build V2 11 2800 enable online tool compensation control unit gpCh 0 bahn_mc_...

Page 15: ...nction 2 3 Wear compensation of tool length Grinding a surface When the tool length is compensated length compensation wear is compensated in the direction of the 3rd main axis This can take place bot...

Page 16: ...mpensation 16 Version 1 02 Work piece Z X Y L1 L2 L1 L2 Figure 5 Wear compensation of tool length Tool length wear N30 D1 Select data set for grinding disc N40 G00 X0 Y0 Z0 N50 OTC ON LENGTH Select OT...

Page 17: ...inclination of the grinding disc as described in Section Inclined grinding disc 18 The LENGTH operation mode is shown in the figure below IPO Decoder TRC BAVO Planning Online OTC PLC Covered distance...

Page 18: ...in the tool list P TOOL 00138 to grind inclined surfaces Here the complete lateral surface of the grinding disc is also in contact The figure below shows the orientation of the tilt angle using the e...

Page 19: ...ion Grinding a surface This compensation type is used to compensate for wear in the tool direction This can take place both continuously and discretely Grinding disc Workpiece tool wear X Z Figure 8 W...

Page 20: ...Online tool compensation 20 Version 1 02 Programming kinematic parameters B TCP B 0 Tool 1 HD3 HD1 Grinding wheel Figure 9 Grinding disc setting B 0 TCP B B 90 Tool 2 HD1 HD10 90 Grinding wheel Figur...

Page 21: ...21 Version 1 02 The figure below shows the function of TOOL_DIR IPO Decoder TRC BAVO Planning Online OTC PLC Covered distance CONT DISC OTC TOOL_DIR CONT DISC AUTO X Y Z Offset In tool direction Tool...

Page 22: ...rinding a surface This compensation type compensates for wear in surface normal direction The surface normal direction is calculated in the CNC based on the tool direction vector and the path tangent...

Page 23: ...01 X100 Z50 F1000 N80 OTC ON SURF_NORM_DIR DISC Select OTC N85 HSC ON BSPLINE PATH_DEV 5 MERGE 0 N90 FOR P1 0 5 1 N100 G91 G01 X3 Z 3 F2000 N110 X2 Z 2 N120 X5 Z 2 N130 X5 Z 1 N140 X5 N150 X5 Z 1 N160...

Page 24: ...Online tool compensation 24 Version 1 02 IPO Decoder WRK BAVO Planning Online OTC PLC Covered distance CONT DISC OTC SURF_NORM_DIR CONT DISC AUTO X Y Z Offset Radius Surface normal A C Figure 13 Descr...

Page 25: ...discrete input via PLC unit 0 1 m wz 1 grinding_max_infeed 200000 Disc tilt angle unit 0 0001 degree wz 1 grinding_disc_tilt_angle 0 The disc tilt angle must be entered as a function of the mechanical...

Page 26: ...n The tool radius can be adapted by setting the wear offset depending on wear Special features The wear offset is not output in a cycle in the CNC Instead it is output over several cycles ST path CNC...

Page 27: ...Description When this wear offset is set wear in the direction of the approximated surface normal can be compensated cf Radius type in 2 5D Special features Wear offset is adjusted by the CNC in the s...

Page 28: ...offset Description When this wear offset is set wear in the direction of this axis can be compensated Special features The wear offset is distributed by the CNC over several cycles ST path CNC Versio...

Page 29: ...e following sequence can be influenced as usual by the PLC OTC offset in tool direction Description When this wear offset is set wear in the direction of the tool axis can be compensated The offset va...

Page 30: ...me The current wear value is supplied after deselecting OTC The wear value refers to the wear which occurred between selecting and deselecting OTC If OTC is selected and deselected repeated in the sam...

Page 31: ...The wear data sent includes the following wear_radius total wear consisting of discrete and continuous wear wear_radius_cont continuous wear This wear data is generated from the time when the tool is...

Page 32: ...is used to calculate continuous tool wear Alternatively it can also be defined in the NC program OTC Parameter wz i grinding_wear_const Data type REAL64 Data range 0 grinding_wear_const Dimension 0 1...

Page 33: ...T 3 CNC Online tool compensation 33 Version 1 02 Data type REAL64 Data range 45 grinding_tilt_angle 45 Dimension 0 0001 Default value 0 Remarks Grinding disc tilt angle Also see about this 2 Special V...

Page 34: ...or Beckhoff components there Beckhoff Support Support offers you comprehensive technical assistance helping you not only with the application of individual Beckhoff products but also with other wide r...

Page 35: ...Index TF5200 TwinCAT 3 CNC Online tool compensation 35 Version 1 02 Index P P TOOL 00001 32 P TOOL 00030 32 P TOOL 00031 32 P TOOL 00032 32...

Page 36: ......

Page 37: ...Beckhoff Automation GmbH Co KG H lshorstweg 20 33415 Verl Germany Phone 49 5246 9630 info beckhoff com www beckhoff com More information www beckhoff com TF5200...

Reviews: