NexMotion  1.4.0
Open Robots & Machines [WIP]
Axis_Group_Quantity

Read Axis or Group Quantity. More...

Collaboration diagram for Axis_Group_Quantity:

Functions

RTN_ERR FNTYPE NMC_DeviceGetAxisCount (I32_T DevID, I32_T *PRetAxisCount)
 Get the axis quantity. More...
 
RTN_ERR FNTYPE NMC_DeviceGetGroupCount (I32_T DevID, I32_T *PRetGroupCount)
 Get the quantity of group. More...
 
RTN_ERR FNTYPE NMC_DeviceGetGroupAxisCount (I32_T DevID, I32_T GroupIndex, I32_T *PRetGroupAxisCount)
 Get the quantity of group axis. More...
 

Detailed Description

Read Axis or Group Quantity.

Function Documentation

RTN_ERR FNTYPE NMC_DeviceGetAxisCount ( I32_T  DevID,
I32_T PRetAxisCount 
)

Get the axis quantity.

Parameters
DevIDDevice ID (DevID)
PRetAxisCountThe quantity of axis started will be returned after the function is called successfully.
Returns
Return an error code.
If the function is called successfully, the return value is ERR_NEXMOTION_SUCCESS (0). Otherwise, the return value is an error code. All error codes are defined in the header file, NexMotionError.h.

Usage:
After the configuration file is loaded, the function can be called to confirm the quantity of axis started. After NMC_DeviceResetConfig() is called to reset the device configurations, the quantity of axis is 0.

Reference:

RTN_ERR FNTYPE NMC_DeviceGetGroupAxisCount ( I32_T  DevID,
I32_T  GroupIndex,
I32_T PRetGroupAxisCount 
)

Get the quantity of group axis.

Parameters
DevIDDevice ID (DevID)
GroupIndexGroup Index
PRetGroupAxisCountThe quantity of group axis will be returned after the function is called successfully.
Returns
Return an error code.
If the function is called successfully, the return value is ERR_NEXMOTION_SUCCESS (0). Otherwise, the return value is an error code. All error codes are defined in the header file, NexMotionError.h.

Usage:
After the configuration file is loaded, the function can be called to confirm the actual quantity of group axis.

Reference:

RTN_ERR FNTYPE NMC_DeviceGetGroupCount ( I32_T  DevID,
I32_T PRetGroupCount 
)

Get the quantity of group.

Parameters
DevIDDevice ID (DevID)
PRetGroupCountThe quantity of group started will be returned after the function is called successfully.
Returns
Return an error code.
If the function is called successfully, the return value is ERR_NEXMOTION_SUCCESS (0). Otherwise, the return value is an error code. All error codes are defined in the header file, NexMotionError.h.

Usage:
After the configuration file is loaded, the function can be called to confirm the quantity of group started. After NMC_DeviceResetConfig() is called to reset the device configurations, the quantity of group is 0.

Reference: