Skip to main content

System startup

Before using the function library, call the function string NRC_GetNexMotionLibVersion() to obtain the version of the NexMotion library. This API returns the version information of the NexMotion library. Then, proceed with the initialization process.

The simplest way is to call the function int NRC_StartController(int netPort = 4) to start the system. The netPort parameter represents the port number of the network interface that connects to the servo. The default value is 4, which should be set according to the specific model of the industrial control computer. You can call the function NRC_GetControlInitComplete() to check if the system initialization is complete. The return value indicates whether the system initialization is complete: 0 means incomplete, 1 means complete. Before initialization is complete, do not call any other functions. System initialization takes time, and calling other functions before it is completed may result in a return of TARGET_NOT_EXIST.

C++ demo program for system startup