kernelv_ax_set_ext_latch_event()

Prototype

KERNELV_RETURN

kernelv_ax_set_ext_latch_event(unsigned long int axIndex);

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

axIndex

unsigned long int

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.