Y_AX_AxisControl
This function block combines
MC_Power ,
MC_ReadAxisError , and
MC_Reset and provides separate outputs for controller and drive alarms and warnings.
Parameters:
The function block will continue to execute every scan while Enable is held high and there are no errors.
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| B | Axis | AXIS_REF | Logical axis reference. This value can be located on the Configuration tab in the Hardware Configuration (logical axis number). | |
| VAR_INPUT | ||||
| B | Enable | BOOL | The function will continue to execute every scan while Enable is held high and there are no errors. | FALSE |
| E | EnablePositive | BOOL | Not Supported | FALSE |
| E | EnableNegative | BOOL | Not Supported | FALSE |
| V | AlarmClear | BOOL | Clears axis related alarms using MC_Reset | FALSE |
| VAR_OUTPUT | ||||
| B | Status | BOOL | TRUE if the drive is enabled. This output is derived from the Status output of MC_Power. | |
| V | AxisAlarm | BOOL | Indicates if there is an axis specific alarm on either the controller or drive. | |
| V | DriveWarning | BOOL | Indicates a warning on the drive, such as any A.9x display on a ServoPack. | |
| B | Error | #44684 | 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 | #44684 | If Error is true, this output provides the Error ID. This output is reset when 'Execute' or 'Enable' goes low. | |
| V | DriveWarningID | UINT | Indicates the drive warning number, such as 95 (overload warning). Refer to the drive manual for troubleshooting. | |
| V | DriveAlarmID | UINT | Indicates the drive alarm number, such as C9 (encoder disconnected). Refer to the drive manual for troubleshooting. | |
| V | ControlAlarmID | UDINT | Indicates the controller alarm ID number, such as 3302 0018. (shown in hex.) Refer to the Controller AlarmID list in the PLCopenPlus manual for troubleshooting. | |
| V | AlarmShortDesc | BOOL | A short description of the current alarm related to the axis. | |
Notes:
- When attempting to clear an alarm, the enable input must be FALSE or the alarm reset function will be blocked from executing.
- Because Yaskawa Servopack documentation lists the amplifier codes in hex, it is recommend to view the alarm and warning output IDs in hex.
- This function only reports axis specific alarms and warnings. For general system alarms, use Y_ReadAlarms.
- Do not include more than one Y_AX_AxisControl (orMC_Power) function block per axis in the application program.
Error Description:
See the Function Block ErrorID List.