kernelv_ax_get_ext_latch_command()

Prototype

[ret, data]

 

ax_get_latch_command(

vnck: ctypes.CDLL,

ax_index: int);

Description

Returns the content of the command interface for the external measuring hardware to the structure KERNELV_EXT_LATCH_COMMAND_DATA.

Parameter

Name

Type

Meaning

vnck

ctypes.CDLL

Instance of the loaded KernelV DLL.

ax_index

int (unsigned)

Index of the axis.

Return values

Name

Type

Meaning

ret

KERNELV_RETURN (int)

Return value of the native integrated C function.

data

KERNELV_EXT_LATCH_COMMAND_DATA

Returns the structure KERNELV_EXT_LATCH_COMMAND_DATA.

KERNELV_RETURN

Symbol

Value

Meaning

RET_FINISHED

0

The function was executed without error.

REST_BUSY

1

The function is currently being executed, but has not yet been completed. The API function must continue to be called.

ERR_INVALID_AX

-9

The transferred axis index is higher than the number of configured channels –1

ERR_CNC_NOT_INIT

-3

The simulation CNC kernel was not yet initialised.