![]() |
NexMotion
1.4.0
Open Robots & Machines [WIP]
|
System Configuration Functions. More...
![]() |
Functions | |
RTN_ERR FNTYPE | NMC_DeviceSetParam (I32_T DevID, I32_T ParamNum, I32_T SubIndex, I32_T ParaValue) |
Set device parameters. More... | |
RTN_ERR FNTYPE | NMC_DeviceGetParam (I32_T DevID, I32_T ParamNum, I32_T SubIndex, I32_T *PRetParaValue) |
Get device parameters. More... | |
RTN_ERR FNTYPE | NMC_SetIniPath (_opt_null_ const char *PIniPath) |
Set the path of the ini file. More... | |
System Configuration Functions.
RTN_ERR FNTYPE NMC_DeviceGetParam | ( | I32_T | DevID, |
I32_T | ParamNum, | ||
I32_T | SubIndex, | ||
I32_T * | PRetParaValue | ||
) |
Get device parameters.
DevID | Device ID (DevID) | |
ParamNum | Parameter Number | |
SubIndex | Parameter Sub-index | |
[out] | PRetParaValue | [Output] The value to be returned after the function is called successfully. |
Usage:
Please refer to the section, System Parameters.
Reference:
Please refer to the section, System Parameters.
Set device parameters.
DevID | Device ID (DevID) |
ParamNum | Parameter Number |
SubIndex | Parameter Sub-index |
ParaValue | Value to be set |
Usage:
Please refer to the section, System Parameters.
Reference:
Please refer to the section, System Parameters.
RTN_ERR FNTYPE NMC_SetIniPath | ( | _opt_null_ const char * | PIniPath | ) |
Set the path of the ini file.
PIniPath | The ini file to be set. it shall be a C string, and can be set to NULL(0) to reset the path to the default value. |
Usage:
During the starting, the system will load the configurations in accordance with the file, NexMotionLibConfig.ini. Also, the function can be called to specify the ini file path. The default path is C:\NEXCOM\
.
Reference:
NMC_DeviceOpenUp() and NMC_DeviceOpenUpRequest()