kernelv_read_error()

Prototype

KERNELV_RETURN

kernelv_read_error (void);

Description

Checks whether there is a current error message from the simulation CNC and stores it temporarily. The error messages of all channels are checked.

If there is a current error message, further functions can be used to request details about this specific error message. When this function is called again, a new error message may be read out. Then it is no longer possible to request the error message properties of a previously pending error message.

As several error messages may occur during one CNC cycle, the function must be called cyclically until it returns RET_FINISHED.

Parameter

-

Return values

Name

Value

Meaning

RET_FINISHED

0

No error message was read.

RET_BUSY

1

An error message was read.

ERR_CNC_NOT_INIT

-3

The simulation CNC kernel was not yet initialised.