![]() |
NexMotion
1.4.0
Open Robots & Machines [WIP]
|
Advanced Device Open up and Shut Down. More...
![]() |
Functions | |
RTN_ERR FNTYPE | NMC_DeviceCreate (I32_T DevType, I32_T DevIndex, I32_T *PRetDevID) |
Create the device ID. More... | |
RTN_ERR FNTYPE | NMC_DeviceDelete (I32_T DevID) |
Delete the device ID. More... | |
RTN_ERR FNTYPE | NMC_DeviceLoadIniConfig (I32_T DevID) |
Load the device configurations. More... | |
RTN_ERR FNTYPE | NMC_DeviceResetConfig (I32_T DevID) |
Reset the device configurations. More... | |
RTN_ERR FNTYPE | NMC_DeviceStart (I32_T DevID) |
Start the device (Blocking call). More... | |
RTN_ERR FNTYPE | NMC_DeviceStop (I32_T DevID) |
Stop the device (Blocking call). More... | |
RTN_ERR FNTYPE | NMC_DeviceStartRequest (I32_T DevID) |
Request the device start (Non-blocking call). More... | |
RTN_ERR FNTYPE | NMC_DeviceStopRequest (I32_T DevID) |
Request the device stop (Non-blocking call). More... | |
RTN_ERR FNTYPE | NMC_DeviceGetState (I32_T DevID, I32_T *PRetDeviceState) |
Get the device state. More... | |
Advanced Device Open up and Shut Down.
Create the device ID.
DevType | The specified device type. 0: Simulator, 1: EtherCAT. | |
DevIndex | The specified index of device which is set to 0. | |
[out] | PRetDevID | [Output] The device ID (DevID) after the function is called successfully. |
Usage:
Please refer to the section, Advanced System Initializeation.
Reference:
Delete the device ID.
DevID | Device ID |
Usage:
Please refer to the section, Advanced System Initializeation.
Reference:
Get the device state.
DevID | Device ID (DevID) |
PRetDeviceState | Return the state of the device after called successfully. |
Usage:
Reference:
Load the device configurations.
DevID | Device ID (DevID) |
Usage:
The function will load the device configurations in accordance with the file, NexMotionLibConfig.ini
. The file, NexMotionLibConfig.ini
, is saved in the default path, C:\\NEXCOBOT
. Users must not create the file, nor modify the file name or content in order to avoid the loading error. NMC_DeviceLoadIniConfig() will search the file, NexMotionLibConfig.ini
, in the following path in order:
To specify a new path for the file, NexMotionLibConfig.ini
, NMC_SetIniPath() can be called. After NMC_DeviceLoadIniConfig() is called successfully, the device is in the ready state and ready to start.
Reference:
NMC_SetIniPath()
Reset the device configurations.
DevID | Device ID (DevID) |
Usage:
NMC_DeviceResetConfig() is used to reset the device configurations. After the function is called successfully, the device will return to the init state. If the device is in the operation state, the fuction shall not be called.
Reference:
Start the device (Blocking call).
DevID | Device ID (DevID) |
Usage:
If the device is in the ready state, the function can be called to start the device. After the function is called and returned successfully, the device is in operation state. Please refer to the section, Advanced System Initialization.
Reference:
Request the device start (Non-blocking call).
DevID | Device ID (DevID) |
Usage:
If the device is in the ready state, the function can be called to send the request for device start, and the function will be returned immediately. NMC_DeviceGetState(), can be used to used to read the device state, in order to check if the device is not in the operation state.
Reference:
Stop the device (Blocking call).
DevID | Device ID (DevID) |
Usage:
If the device is in the operation state, the function can be called to stop the device. After the function is called and returned successfully, the device is in ready state.
Reference:
Request the device stop (Non-blocking call).
DevID | Device ID (DevID) |
Usage:
If the device is in the operation state, the function can be called to send the request for device stop, and the function will be returned immediately. NMC_DeviceGetState(), can be used to used to read the device state, in order to check if the device is not in the ready state.
Reference: