Programming example (complete NC program or program sequence) of the described function or NC com- mand. Specific version information Optional or restricted function. The availability of this function depends on the configuration and the scope of the version. Version: 1.02 TF5200 | TwinCAT 3 CNC Online tool compensation...
Programming Manual or P-AXIS-00001 for an axis parameter. For technical reasons, these links only function in the Online Help (HTML5, CHM) but not in pdf files since pdfs do not support cross-linking. Version: 1.02 TF5200 | TwinCAT 3 CNC Online tool compensation...
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 TF5200 | TwinCAT 3 CNC Version: 1.02 Online tool compensation...
Page 10
Acceleration weighting in percent [1;100], default: 100% When OTC is deselected with #OTC OFF, the amount of wear (discrete and/or continuous) is in- cluded in the calculation for the current tool. Version: 1.02 TF5200 | TwinCAT 3 CNC Online tool compensation...
Figure 2: Wear compensation of tool radius The start-up movement in relation to the equidistant path after selecting TRC (G41/G42) is con- sidered without wear. Motion after deselecting TRC (G40) is also without wear. TF5200 | TwinCAT 3 CNC Version: 1.02 Online tool compensation...
Path contour with active TRC without OTC offset Black: Path contour with negative value for OTC radius offset Red: Path contour with positive value for OTC radius offset Figure 3: Contour of the NC program wr_quad_disc.nc TF5200 | TwinCAT 3 CNC Version: 1.02 Online tool compensation...
Page 14
If error 90050 is output, the path motion does not exist when deselected with G138/G139. The functionality of the RADIUS type is shown by the example of the G17 plane: Version: 1.02 TF5200 | TwinCAT 3 CNC Online tool compensation...
When the tool length is compensated (length compensation), wear is compensated in the direction of the 3rd main axis. This can take place both continuously and discretely. This procedure is used in particular for processing surfaces (surface grinding). TF5200 | TwinCAT 3 CNC Version: 1.02 Online tool compensation...
The figure below shows the orientation of the tilt angle using the example of the G17 plane: X/Y plane with G17 Turning point of disc negative positive is 0 Figure 7: Inclined grinding disc Version: 1.02 TF5200 | TwinCAT 3 CNC Online tool compensation...
Description The figure below shows the function of TOOL_DIR: #OTC [TOOL_DIR CONT/DISC/AUTO] Decoder BAVO CONT Covered distance Tool orientation Offset In tool direction DISC Figure 11: Description of TOOL_DIR function TF5200 | TwinCAT 3 CNC Version: 1.02 Online tool compensation...
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 vector. Grinding wheel ori1 Tool wear ori2 ori3 Workpiece Figure 12: Wear in surface normal direction Version: 1.02 TF5200 | TwinCAT 3 CNC Online tool compensation...
If grinding_max_infeed is not set, no discrete offset can be applied. The following also applies: if grinding_wear_const is not set, it is not possible to calculate the con- tinuous offset depending on the path. TF5200 | TwinCAT 3 CNC Version: 1.02 Online tool compensation...
MC_CONTROL_SGN32_UNIT MCControlSGN32Unit Commanded, requested and return value ST element .command_w .D_Command .request_r .D_Request .state_r .D_State Data type DINT Unit 0.1 µm Value range [-P-TOOL-00031, P-TOOL-00031] Redirection ST element .enable_w .X_Enable Version: 1.02 TF5200 | TwinCAT 3 CNC Online tool compensation...
Page 27
MC_CONTROL_SGN32_UNIT MCControlSGN32Unit Commanded, requested and return value ST element .command_w .D_Command .request_r .D_Request .state_r .D_State Data type DINT Unit 0.1 µm Value range [-P-TOOL-00031, P-TOOL-00031] Redirection ST element .enable_w .X_Enable TF5200 | TwinCAT 3 CNC Version: 1.02 Online tool compensation...
MC_CONTROL_SGN32_UNIT MCControlSGN32Unit Commanded, requested and return value ST element .command_w .D_Command .request_r .D_Request .state_r .D_State Data type DINT Unit 0.1 µm Value range [-P-TOOL-00031, P-TOOL-00031] Redirection ST element .enable_w .X_Enable Version: 1.02 TF5200 | TwinCAT 3 CNC Online tool compensation...
Page 29
MC_CONTROL_SGN32_UNIT MCControlSGN32Unit Commanded, requested and return value ST element .command_w .D_Command .request_r .D_Request .state_r .D_State Data type DINT Unit 0.1 µm Value range [-P-TOOL-00031, P-TOOL-00031] Redirection ST element .enable_w .X_Enable TF5200 | TwinCAT 3 CNC Version: 1.02 Online tool compensation...
Boolean type must be readable in the NC program. NOTE While OTC is active, V.G.WZ_AKT wear values are not up-to-date. They are only updated after OTC (#OTC OFF) is deselected. Version: 1.02 TF5200 | TwinCAT 3 CNC Online tool compensation...
If grinding_max_infeed is not set, no discrete offset can be applied. The following also applies: if grinding_wear_const is not set, it is not possible to calculate the con- tinuous offset depending on the path. TF5200 | TwinCAT 3 CNC Version: 1.02 Online tool compensation...
P-TOOL-00032 Grinding disc tilt angle Description The parameter defines the angle between the centre line of the grinding disc and the 3rd main axis for tilted grinding discs. Parameter wz[i].grinding_disc_tilt_angle Version: 1.02 TF5200 | TwinCAT 3 CNC Online tool compensation...
Page 33
Parameter Data type REAL64 Data range -45°≤ grinding_tilt_angle ≤ 45° Dimension 0.0001° Default value Remarks Grinding disc tilt angle Also see about this 2 Special V.G. variables for OTC [} 30] TF5200 | TwinCAT 3 CNC Version: 1.02 Online tool compensation...
Please contact your Beckhoff branch office or representative for local support and service on Beckhoff products! The addresses of Beckhoff's branch offices and representatives round the world can be found on her internet pages: https://www.beckhoff.com You will also find further documentation for Beckhoff components there.
Need help?
Do you have a question about the TF5200 and is the answer not in the manual?
Questions and answers