Y_AX_RebootServo
This function block cycles the control power to the servo. The servo is temporarily disconnected from the motion network.
Parameters:
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| B | Axis | AXIS_REF | Logical axis reference. | |
| VAR_INPUT | ||||
| B | Execute | BOOL | Upon the rising edge, all other function block inputs are read and the function is initiated. To modify an input, change the value and re-trigger the execute input. | FALSE |
| VAR_OUTPUT | ||||
| B | Done | BOOL | Set high when the commanded action has completed successfully. If another block takes control before the action is completed, the Done output will not be set. This output is reset when Execute goes low. | |
| B | Busy | BOOL | Set high upon the rising edge of the Execute or Enable input, and reset when Done, CommandAborted, or Error is true. | |
| B | Error | BOOL | Set high if an error has occurred during the execution of the function block. This output is cleared when 'Execute' or 'Enable' goes low. | |
| E | ErrorID | UINT | If Error is true, this output provides the Error ID. This output is reset when 'Execute' or 'Enable' goes low. | |
Notes:
- Executing Y_AX_RebootServo will cause the Servo amplifier to do a soft reboot, which will clear any alarms that would otherwise require a power cycle. An MC_Reset should be executed to bring the servopack into an operable state.
- The MC_Reset function block should not be executed in the same scan in which Y_AX_RebootServo.Done becomes TRUE. If HotConnect is Enabled (HC is enabled by default in iCubeEngineer), execute MC_Reset when the device is in state = 8 (OP state).
Error Description
See the Function Block ErrorID List.
Example
After the