kernelv_ax_get_new_techno_data()

Prototype

[ret, techno_data, return_length]

ax_get_techno_data(vnck: ctypes.CDLL, axis_index: int);

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

vnck

ctypes.CDLL

Instance of the loaded KernelV DLL.

axis_index

int (unsigned)

Axis index.

Return values

Name

Type

Meaning

ret

KERNELV_RETURN (int)

Return value of the native integrated C function.

techno_data

Array[KERNELV_TECHNO_DATA]

Technology functions (M/H functions) acknowledged for the specified axis.

return_length

int (unsigned)

Number of actually returned bytes.

KERNELV_RETURN

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