Instance data
Working data – TcToolRadiusCompParam
Parameters of the methods
The parameters for each of the methods are transferred in encapsulated form by the structure TcCncDynContourCtrlParam (TcCncDynContourCtrlInterfaces.h):
struct TcToolRadiusCompParam
{
EcToolRadiusComp type;
int dimension; // dimension of positions, 3 or 6 for 2 paths
int dim_radius; // dimension of radius, 1 or 2 for 2 paths
const double * i_path; // input: position of path, see dimension
const double * i_tangent; // input: tangent of path, see dimension
const double * i_tool_direction; // input: direction of tool, see dimension
const double * i_radius; // input: actual tool radius, see dim_radius
double * o_path; // output: position of compensated path
}
TcCncParam structure
The following parameters are generally used in every TcCOM interface:
struct TcCncParam
{
// Input data
EcCncCallerID caller_id; // identification of caller
unsigned long block_number; // block number of actual executed
// CNC program, MDI(not yet supported)
// CNC program, MDI(not yet supported)
unsigned short cnc_channel; // calling CNC channel
// Output data
double ret_value1; // additional error value
double ret_value2; // additional error value
char ret_text[24]; // out: additional error text, max. 24 byte
}
Caller ID
Online tool radius compensation is called at various points in the interpolation module. The following identifiers are available for identification:
Identification number | Caller ID |
|---|---|
1000 | EcCncTrcCallerID_Display |
1001 | EcCncTrcCallerID_Interpolation |
1002 | EcCncTrcCallerID_GeometricFeedAdaption |
1003 | EcCncTrcCallerID_TargetPos |
A TcCOM object can use caller IDs to implement various algorithms for the interpolation and display functionality, e.g.:
- With an interpolation, the tool radius specified for this path is used in both paths.
- The same (e.g. secondary) radius is used for display in both paths.