Y_AX_ControllerAlarm
This function block provides a BOOL output to indicate if there is a controller alarm not related to an axis. It uses the
Y_ReadAlarm
function block and determines if the AlarmID output is non-zero. This function is useful because the PLCopenPlus function
Y_ReadAlarm
does not have a Boolean output, just the AlarmID.
Parameters:
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_INPUT | ||||
| B | Enable | BOOL | The function will continue to execute every scan while Enable is held high and there are no errors. | FALSE |
| VAR_OUTPUT | ||||
| B | Valid | BOOL | Indicates that the function is operating normally and the outputs of the function are valid. | |
| V | Alarm | BOOL | Indicates if the controller has a non-axis related alarm. | |
| V | AlarmID | UDINT | This output provides the Controller Alarm ID. This output is reset when execute goes low. | |
| 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:
As the PLCopen manual displays the AlarmID values in hexadecimal, it is best to view the AlarmID value of this function block in hex.
Error Description:
See the
Function Block ErrorID List.