kernelv_get_error_values()

Prototype

KERNELV_RETURN

GetErrorValues(out KERNELV_ERROR_VALUE[] values);

Description

Returns the values output in an error message.

Before using this function, a check must first be made whether there is a current error by calling the function Read_error().

The values are returned in an array of structures of type KERNELV_ERROR_VALUE. The array size is KERNELV_ERROR_VALUE_COUNT.

If the returned array fails to fit in the memory provided, the return value ERR_CNC_RET_MEMORY is output.

Parameter

Name

Type

Meaning

values

out KERNELV_ERROR_VALUE

Pointer to string for error message values. The calling application must provide the memory.

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.

ERR_CNC_RET_MEMORY

-4

The return value(s) does/do not fit into the memory provided. The number of bytes required is returned in the 'length’ parameter.