# kernelv_startup()

## Prototype

KERNELV_RETURN | kernelv_startup( unsigned long cycleTime, char* startupFile);

## Description

Starts the simulation CNC.

## Parameter

Name | Type | Meaning
cycleTime | unsigned long | Cycle time us.
startupFile | char * | Path and name of the start-up file.

## Return values

Symbol | Value | Meaning
RET_FINISHED | 0 | The function was executed without error.
ERR_DOUBLE_KERNEL | -6 | An instance of the simulation CNC is already running.
ERR_SHM_STARTUP | -7 | Internally used shared memories could not be created when the CNC kernel was started.
ERR_STARTUP | -8 | An error occurred on starting the simulation CNC. Possible causes are missing parameter lists or incorrect entries in parameter lists.
ERR_NO_LICENSE | -17 | No license was found for the use of the kernelv DLL.
ERR_REGISTRY_ACCESS | -19 | An error occurred when an attempt was made to read values from the Windows registry.
ERR_PREFIX_TOO_LONG | -23 | When the function kernelv_startu_prefix() was called, the transferred instance identifier is too long with the result that the internally generated names for the shared memories used no longer fit in the memory provided.
ERR_STARTUP_CHAN_INIT | -31 | When kernelev-Dll was started, it was not possible to execute the initialisation of the configured NC channels.

## Notice

Depending on the number of axes and channels in the configuration used, the start of the CNC kernel may take 20 - 30 seconds.