kernelv_ax_set_ext_latch_event_pos()

Prototype

KERNELV_RETURN

 

ax_set_ext_latch_event_pos(vnck: ctypes.CDLL, ax_index: int,

position: int);

Description

Indicates the occurrence of the latch event to the CNC and transfers the latched position.

The latched position must be transferred in 0.1 µm or 1E-4°.

Parameter

Name

Type

Meaning

vnck

ctypes.CDLL

Instance of the loaded KernelV DLL.

ax_index

int (unsigned)

Index of the axis.

position

int (signed)

Latch position in 0.1 µm for translatory axes or 1*10-4 for spindles or rotary axes.

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.