Y_PK22_UN_EventSummation
The Y_PK22_UN_EventSummation function block summarizes all Unit Machine events into a single listing. All events are added to the Event History FIFO (max 50 events) unless designated otherwise. This block will capture and individually output the first Event to arrive. The entirety of the active events will appear at Sts_ActiveList and will be sorted according to the user-defined Display Priority set in Y_PK22_PackMLEvents_Init
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| V | Inp_UNEventStatus | #60396 |
A variable that contains all the active event information for a machine | |
| V | Inp_EventHistory | #60379 | FIFO to store information on the last 50 events | |
| V | EventList |
#60381 |
Structure containing defined events |
|
| VAR_INPUT | ||||
| B | Enable | BOOL | The function will continue to execute while the enable is held high | FALSE |
| V | Cmd_Reset | BOOL | Clears the entire list of events except for the FirstOutEvent | FALSE |
| V | Cmd_ResetFirstOut Events | BOOL | Clears only the FirstOutEvent. Note that both inputs must be set to clear all events completely | FALSE |
| V | Cmd_ResetEventHistory | BOOL | Clears the Event History FIFO | FALSE |
| V |
Inp_FirstOutcategories |
WORD | Determines which categories are designated to capture the first Out Event. | 16#FFFE |
| VAR_OUTPUT | ||||
| B | Valid | BOOL | Indicates that the outputs of the function are valid | |
| B | Sts_EventActive | BOOL | Indicates if an event has occurred and been collected | |
| B | Sts_NumActiveEvents | INT | A summary count of all currently active events on the machine | |
| V | Sts_FirstOutEvent | #60380 |
The event that occurred first on the machine | |
| V | Sts_ActiveList | #60380 |
Active list of events | |
| V | Sts_MostSevereCategory | DINT | A list of the most severe categories | |
| B | Sts_ActiveCategories | DWORD | A combination of all the individual event categories. Each event Category is OR’d to create a single indicator of event severity | |
| B | Error | BOOL | Set high if error has occurred during the execution of the function block. This output is cleared when 'Execute' or 'Enable' goes low. | |
| B | ErrorID | UINT | If Error is true, this output provides the Error ID. This output is reset when 'Execute' or 'Enable' goes low. | |
Notes
- See template documentation for further details on recommended usage.
Error Description:
See the
Function Block ErrorID List.