kernelv_ch_get_active_g_codes()

Prototype

KERNELV_RETURN

ChGetActiveGCodes(uint chanIndex, out ACTIVE_G_CODES gCodes);

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

uint

Channel index of the channel from which the variable is to be read.

gCodes

out ACTIVE_G_
CODES*

The structure to which the values are saved is 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.