kernelv_ax_set_ext_latch_event()

Prototype

KERNELV_RETURN

ax_set_ext_latch_event(vnck: ctypes.CDLL, ax_index: int);

Description

Indicates the occurrence of the latch event to the CNC as a latched value; the current actual position of the axis is transferred.

Parameter

Name

Type

Meaning

vnck

ctypes.CDLL

Instance of the loaded KernelV DLL.

ax_index

int (unsigned)

Index of the axis.

Return values

Symbol

Value

Meaning

RET_FINISHED

0

The function was executed without error.

ERR_INVALID_AX

-9

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

ERR_CNC_NO_DATA

-28

No latch command is active.

ERR_CNC_NOT_INIT

-3

The simulation CNC kernel was not yet initialised.