Y_GetAlarmDesc
This function block returns string descriptions for the alarm data that is stored in the controller.
Parameters
| * | Parameter | Data Type | Description | |
|---|---|---|---|---|
| VAR_INPUT | Default | |||
| 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 |
| V | AlarmCode | UDINT | The alarm code to look up. | 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 input, and reset when Done, CommandAborted, or Error is true. In the case of a function block with an Enable input, a Busy output indicates the function is operating, but not ready to provide Valid information. (No Error) | |
| V | AlarmClass | UINT | General description of the upper two bytes of the AlarmCode. | |
| V | AlarmID | UINT | Specific description of the lower two bytes of the AlarmCode. | |
| V | ShortDesc | STRING | The short description. | |
| V | LongDesc | STRING | The first 80 characters of Long Description. | |
| 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. | |
Error Description
See the
Function Block ErrorID List