kernelv_get_channel_count()

Prototype

KERNELV_RETURN

kernelv_get_channel_count (unsigned long int* channelCount);

Description

Reads the number of configured channels of the CNC control.

An error code is returned if the function is called while the CNC kernel has not yet started.

Parameter

Name

Type

Meaning

channelCount

unsigned long*

Pointer to the memory for the number of channels to be returned.

Return values

Symbol

Value

Meaning

RET_FINISHED

0

The function was executed without error.

ERR_CNC_NOT_INIT

-3

The simulation CNC kernel was not yet initialised.