kernelv_get_axis_channel_number()
Prototype
[ret, channel_numbers, return_size] | get_axis_channel_number(vnck: ctypes.CDLL); |
Description
By configuration or by axis replacement commands during an NC program, an axis can be moved by different CNC channels. By means of this function, the number of the channel moving the respective axis can be queried.
The following relationship exists between the channel number and the channel index:
Channel index = channel number -1
Parameter
Name | Type | Meaning |
vnck | ctypes.CDLL | Instance of the loaded KernelV DLL. |
Return values
Name | Type | Meaning |
ret | KERNELV_RETURN | Return value of the native integrated C function. |
channel_numbers | NDArray | Returns the numbers of the channels which move each specific axis. |
return_size | int (unsigned) | Number of bytes returned. |
KERNELV_RETURN
Symbol | Value | Meaning |
RET_FINISHED | 0 | The function was executed without error. |
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 required memory is returned in the returnSize parameter. |