kernelv_ch_get_finished_nc_lines()

Prototype

[ret, nc_line_data]

ch_get_finished_nc_lines(vnck: ctypes.CDLL, chan_index: int);

Description

Returns the NC lines executed for the specified channel during the last call of kernelv_do_cycle(). Up to 20 NC blocks can be executed for each call of kernelv_do_cycle().

An array of structures of the type KERNELV_NC_LINE_DATA is returned.

The breakdown of the structure is described in the section entitled Struct KERNELV_NC_LINE_DATA.

Parameter

Name

Type

Meaning

vnck

ctypes.CDLL

Instance of the loaded KernelV DLL.

chan_index

int (unsigned)

Channel index.

Return values

Name

Type

Meaning

ret

KERNELV_RETURN (int)

Return value of the native integrated C function.

nc_line_data

Array[KERNELV_NC_LINE_DATA]

NC lines executed for the specified channel.

KERNELV_RETURN

Symbol

Value

Meaning

RET_FINISHED

0

The function was executed without error.

ERR_INVALID_CHAN

-1

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

ERR_CNC_NOT_INIT

-3

The simulation CNC kernel was not yet initialised.

ERR_CNC_RET_MEMORY

-4

The return value(s) does/do not fit into the memory provided. In this case, the number of actually required bytes is returned in returnLength.