![]() |
NexMotion
1.4.0
Open Robots & Machines [WIP]
|
Group State Control Functions. More...
|
Functions | |
| RTN_ERR FNTYPE | NMC_GroupEnable (I32_T DevID, I32_T GroupIndex) |
| Enable all group axes (Servo On). More... | |
| RTN_ERR FNTYPE | NMC_GroupDisable (I32_T DevID, I32_T GroupIndex) |
| Disable all group axes ( Servo Off ). More... | |
| RTN_ERR FNTYPE | NMC_GroupGetStatus (I32_T DevID, I32_T GroupIndex, I32_T *PRetStatusInBit) |
| Get the group status by bit. More... | |
| RTN_ERR FNTYPE | NMC_GroupGetState (I32_T DevID, I32_T GroupIndex, I32_T *PRetState) |
| Get the state of group. More... | |
| RTN_ERR FNTYPE | NMC_GroupResetState (I32_T DevID, I32_T GroupIndex) |
| Reset the group state . More... | |
| RTN_ERR FNTYPE | NMC_GroupResetDriveAlm (I32_T DevID, I32_T GroupIndex, I32_T GroupAxisIndex) |
| Reset the group servo alarm. More... | |
| RTN_ERR FNTYPE | NMC_GroupResetDriveAlmAll (I32_T DevID, I32_T GroupIndex) |
| Reset all group servo alarms. More... | |
| RTN_ERR FNTYPE | NMC_GroupGetDriveAlmCode (I32_T DevID, I32_T GroupIndex, I32_T GroupAxisIndex, I32_T *PRetAlmCode) |
| Get alarm code fo Drive. More... | |
Group State Control Functions.
Disable all group axes ( Servo Off ).
If all group axes are disabled successfully, the group state will transfer to GROUP_DISABLE.
| DevID | Device ID (DevID) |
| GroupIndex | Group index |
Usage:
Examples:
Reference:
Enable all group axes (Servo On).
If all group axes are enabled successfully, the group state will transfer from GROUP_DISABLE to GROUP_ENABLE
| DevID | Device ID (DevID) |
| GroupIndex | Group Index |
Usage:
Examples:
Reference:
| RTN_ERR FNTYPE NMC_GroupGetDriveAlmCode | ( | I32_T | DevID, |
| I32_T | GroupIndex, | ||
| I32_T | GroupAxisIndex, | ||
| I32_T * | PRetAlmCode | ||
| ) |
Get alarm code fo Drive.
| DevID | Device ID (DevID) | |
| GroupIndex | Group index | |
| GroupAxisIndex | Group axis index | |
| [out] | PRetAlmCode | The alarm code. |
Usage:
Examples:
Reference:
Get the state of group.
Please refer to the below table for details.
| Value | State | Description |
|---|---|---|
| 0 | GROUP_DISABLE | A group axis is disabled. |
| 1 | GROUP_STAND_STILL | A group axes are enabled. |
| 2 | GROUP_STOPPED | After NMC_GroupStop() is called, the group is stopped. |
| 3 | GROUP_STOPPING | After NMC_GroupStop() is called, the group is stopping. |
| 4 | GROUP_MOVING | A group is moving. |
| 5 | GROUP_HOMING | A group is homing. |
| 6 | GROUP_ERROR_STOP | An error is occured in a group axis. |
| DevID | Device ID (DevID) | |
| GroupIndex | Group index | |
| [out] | PRetState | [Input] A pointer variable, [Output] Group state |
Usage:
Examples:
Reference:
Get the group status by bit.
The meanings of the bits are describe as follows. if the bit values is 1, the event is triggered.
| bit | Description |
|---|---|
| 0 | Trigger the external emergency switch |
| 1 | Drive alarm |
| 2 | Over the positive limit of hardware |
| 3 | Over the negative limit of hardware |
| 4 | Over the positive limit of soft ware |
| 5 | Over the negative limit of software |
| 6 | All groups enabled (i.e. all group state are GROUP_STAND_STILL) |
| 7 | A group axis error (i.e. a group axis state is GROUP_ERROR_STOP) |
| 9 | No position change for all group axes |
| 10 | The (line or arc) motion in the Cartesian coordinate system is accelerated (or decelerated) to the maximum velocity. The bit is 0 in case of the PTP or JOG motion. |
| 11 | The (line or arc) motion in the Cartesian coordinate system is decelerated to the target velocity or 0. The bit is 0 in case of the PTP or JOG motion. |
| 12 | The (line or arc) motion in the Cartesian coordinate system is executed at the maximum velocity. The bit is 0 in case of the PTP or JOG motion. |
| 13 | The group is in motion (i.e. the group state is GROUP_MOVING , GROUP_HOMING or GROUP_STOPPING) |
| 14 | The group is stopped (i.e. the group state is GROUP_STOPPED) |
| DevID | Device ID (DevID) | |
| GroupIndex | Group index | |
| [out] | PRetStatusInBit | [Input]A pointer variable,[Output] Status by bit. |
Usage:
Examples:
Reference:
Reset the group servo alarm.
| DevID | Device ID (DevID) |
| GroupIndex | Group index |
| GroupAxisIndex | The index of the group axis which alarm to be reset. |
Usage:
Examples:
Reference:
Reset all group servo alarms.
| DevID | Device ID (DevID) |
| GroupIndex | Group Index |
Usage:
Examples:
Reference:
Reset the group state .
It can reset the group state from GROUP_STOPPED to GROUP_STAND_STILL. If the group state is GROUP_ERROR_STOP and the API is called, all drive alarms will be reset automatically. Then the group state will transfer to GROUP_STAND_STILL after all drive alarms are reset.
| DevID | Device ID (DevID) |
| GroupIndex | Group index |
Usage:
Examples:
Reference: