Y_PK_UN_EventSummation
The UN_EventSummation function block summarizes all EM events to create a single listing of all active Events in the machine. All events are added to the Event History FIFO (max 50 events), typically stored in a retained variable.
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| V | Inp_UNEventStatus | Yt_PK_UN_EventSummation_STRUCT | A variable that contains all the active event information for a machine | |
| V | Inp_EventHistory | Yt_PK_EventHistoryArray | FIFO to store information on the last 50 events | |
| V | EventList |
Yt_PK_EventCfgArray | 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 | Yt_PK_Event_STRUCT | The event that occurred first on the machine | |
| V | Sts_ActiveList | Yt_PK_UN_AllEventArray | 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.