kernelv_ch_get_active_g_codes()
Prototype
KERNELV_RETURN | kernelv_ch_get_active_g_codes (unsigned long int chanIndex, |
Description
Reads the G function groups active in the specified channel. A structure of type ACTIVE_G_CODES is returned. This structure contains the active G function groups. If the value -1 is in an entry, it means that the entry is unassigned.
Parameter
Name | Type | Meaning |
chanIndex | unsigned long | Channel index of the channel from which the variable is to be read. |
pGCodes | ACTIVE_G_ | Pointer to the structure to which the values are returned. |
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 has not yet been initialised. |