kernelv_get_axis_count()

Prototype

KERNELV_RETURN

GetAxisCount(out uint axisCount);

Description

Reads the number of configured axes of the CNC controller.

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

Parameter

Name

Type

Meaning

axisCount

out uint

Contains the number of axes after successful call.

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.