kernelv_ch_get_override()

Prototype

KERNELV_RETURN

kernelv_ch_get_override (unsigned long int chanIndex,
                                         unsigned short int *override);

Description

Reads the current override value for the channel.

Parameter

Name

Type

Meaning

chanIndex

unsigned long

Channel index of the channel whose override is to be read.

override

unsigned short*

Pointer to the value to which the override is to be written. The current override value is returned in 0.1%.

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.