kernelv_get_production_time()

Prototype

KERNELV_RETURN

kernelv_get_production_time(double* productionTime, KERNELV_PT_FILE files);

Description

Starts an NC program in the corresponding channel for each string that is not empty in the KERNELV_PT_FILES structure. The first element is started in the first channel, the second element in the second channel, etc.

If no program is started in a channel, the string must be 0 at the appropriate index.

Only configured programs can be started in channels.

The total processing time of all started NC programs is returned.

Parameter

Name

Type

Meaning

productionTime

double*

Pointer to the memory area where the production time is written in s.

files

KERNELV_PT_FILES

Structure where the names of NC programs are stored.

Return values

Symbol

Value

Meaning

RET_FINISHED

0

The transferred NC programs have all been successfully ended.

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.

ERR_INTERNAL_ERROR

-11

An internal error has occurred in the DLL. The value could not be written.

ERR_NC_PROGRAM

-32

An error has occurred in the NC program.

ERR_CH_ERROR_STATE

-33

The channel is in error state.