kernelv_ch_get_active_kin_id()

Prototype

[ret, kin_id]

ch_get_active_kin_id(vnck: ctypes.CDLL, chan_index: int);

Description

Returns the number of the current active kinematic transformation. If no kinematic transformation is active, a zero is returned.

Parameter

Name

Type

Meaning

vnck

ctypes.CDLL

Instance of the loaded KernelV DLL.

chan_index

int (unsigned)

Channel index of the channel.

Return values

Name

Type

Meaning

ret

KERNELV_RETURN (int)

Return value of the native integrated C function.

kin_id

int (unsigned)

Returns the ID of the currently active kinematic transformation.

KERNELV_RETURN

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.