kernelv_get_production_time()
Prototype
KERNELV_RETURN | KERNELV_RETURN GetProductionTime( out double productionTime, List<string> filePaths); |
Description
Starts an NC program in the corresponding channel for each file path in the list. 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. If NC programs are not terminated, a timeout limit can be defined using the kernelv_get_production_time_debug() function to then create diagnosis data using the kernelv_diagnosis_upload() function.
Parameter
Name | Type | Meaning |
productionTime | out double | Pointer to the memory area where the production time is written in s. |
filesPaths | List<string> | List of file paths. |
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. |