kernelv_ch_reset()

Prototype

KERNELV_RETURN

kernelv_ch_reset (unsigned long chanIndex);

Description

Executes a CNC reset in the specified channel.

This resets internal CNC errors. Any program running during reset is aborted.

Parameter

Name

Type

Meaning

chanIndex

unsigned long

Channel index of the channel in which the program is to be started.

Return values

Symbol

Value

Meaning

RET_FINISHED

0

The function was executed without error.

RET_BUSY

1

The function is currently being executed, but has not yet been completed.

The API function must continue to be called.

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.