kernelv_ch_axis_get_offsets()
Prototype
[ret, offsets] | ch_axis_get_offsets(vnck: ctypes.CDLL, chan_index: int, axis_index: int, cs_index: int); |
Description
Returns the axis-specific offsets in the coordinate system specified by the parameter csIndex.
The parameter axisIndex identifies the index of the axis in the NC channel specified by ChanIndex.
A vector with eight elements is returned. It lists the offsets imported by the various NC commands for the axis defined by axisIndex.
The enumeration KERNELV_AXIS_OFFSET_TYPES specifies the assignment of the index in the vector to the various offset types.
Parameter
Name | Type | Meaning |
vnck | ctypes.CDLL | Instance of the loaded KernelV DLL. |
chan_index | int (unsigned) | Channel index of the channel. |
axis_index | int (unsigned) | Index of the axis in the NC channel. |
cs_index | int (unsigned) | Index of the coordinate system in the coordinate system stack. |
Return values
Name | Type | Meaning |
ret | KERNELV_RETURN (int) | Return value of the native integrated C function. |
offsets | List(int) | Axis-specific shifts in the coordinate system specified by the parameter cs_index. |
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 minimum size required for the return is returned in returnLength. |
ERR_READ_ERR | -26 | An error occurred on reading data from the kernelv DLL. |
ERR_CNC_NO_DATA | -28 | The requested data is not available. No coordinate system is defined in the coordinate system stack at the location specified by the call parameter csIndex. A zero vector is returned. |
ERR_INVALID_PARAMETER | -30 | An invalid parameter was transferred: The coordinate system index transferred in the parameter csIndex is higher than the maximum possible index in the coordinate system stack. |