kernelv_ax_set_ext_latch_event_pos()

Prototype

KERNELV_RETURN

 

kernelv_ax_set_ext_latch_event_pos(unsigned long int axIndex,
                                                           signed long int DATA position);

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 um or 1E-4°.

Parameter

Name

Type

Meaning

axIndex

unsigned long int

Index of the axis.

position

signed long int

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.