kernelv_ch_get_active_g_codes()
Prototype
[ret, active_g_codes] | ch_get_active_g_codes(vnck: ctypes.CDLL, chan_index: int); |
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 |
vnck | ctypes.CDLL | Instance of the loaded KernelV DLL. |
chan_index | int (unsigned) | Channel index of the channel from which the variable is to be read. |
Return values
Name | Type | Meaning |
ret | KERNELV_RETURN (int) | Return value of the native integrated C function. |
active_g_codes | ACTIVE_G_CODES | Structure of the type ACTIVE_G_CODES |
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 has not yet been initialised. |