kernelv_ch_set_cont_visu_abs_curvature_error()

Prototype

KERNELV_RETURN

kernelv_ch_set_cont_visu_abs_curvature_error(unsigned long int chanIndex,
                                                                             unsigned long int abs_error);

Description

Sets the absolute curvature error of the command contour visualisation for curved contours (circle segments and polynomials).

The absolute curvature error indicates the permitted secant error for tracing the curved contour.

The effective secant error to trace a contour element is determined by the minimum value between the absolute and relative secant errors.

Parameter

Name

Type

Meaning

chanIndex

unsigned long int

Channel index of the channel from which the variable is to be read.

abs_error

unsigned long int

Absolute curvature error in 0.1 µm.

Return values

Symbol

Value

Meaning

RET_FINISHED

0

The function was executed without error.

ERR_INVALID_CHAN

-1

The transferred channel index is higher than the number of configured channels -1.

ERR_CNC_NOT_INIT

-3

The simulation CNC kernel was not yet initialised.