kernelv_ax_get_new_techno_data()

Prototype

KERNELV_RETURN

kernelv_ax_get_new_techno_data (unsigned long int axisIndex,
                                     KERNELV_TECHNO_DATA * technoData
                                     unsigned long int technoLength
                                     unsigned long int *returnLength);

Description

Returns the technology functions (M/H functions) recently output during the last call of kernelv_do_cycle() for each specific axis.

Parameter

Name

Type

Meaning

axisIndex

unsigned long

Index of the axis.

technoData

KERNELV_TECHNO_DATA*

Pointer to the memory area to which the technology data is to be written.

technoLength

unsigned long

Size of the provided memory area in bytes.

returnLength

unsigned long*

Pointer to the memory area to which the actually returned bytes are to be written.

Return values

Symbol

Value

Meaning

RET_FINISHED

0

The function was executed without error.

ERR_CNC_NOT_INIT

-3

The simulation CNC kernel was not yet initialised.

ERR_CNC_RET_MEMORY

-4

The return value(s) does/do not fit into the memory provided. The number of bytes required is returned in the returnLength parameter.

ERR_INVALID_AX

-9

The transferred axis index is higher than the number of configured axes - 1