kernelv_ch_get_total_cs_offset
Prototype
KERNELV_RETURN
| ChGetTotalCsOffset( uint chanIndex, out double[] offsetVector); |
Description
Returns the shift of the origin of the coordinate system resulting from concatenating all active coordinate systems.
A vector with three elements is returned, specifying the shift of the coordinate system origin to the origin of the basic coordinate system.
The shift vector, e.g. generated by the parameters v1, v2 , v3 of the NC command below is returned:
#CS DEF [CS1] [ <v1>,<v2>,<v3>,<ϕ1>,<ϕ2>,<ϕ3> ]
If no coordinate system is active, a zero vector is returned.
Parameter
Name | Type | Meaning |
chanIndex | uint | Channel index of the channel. |
offsetVector | out double[] | Returns the shift vector. |
Return values
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. |