Y_PK_PackMLEvents_Init
The PackMLEvents_Init function block is a freely editable block in which the user may create custom (user-defined) event descriptions. The events here are designed to be used with the CM_Event function block to feed the event occurrence up to be summarized at the EM and UN levels. This block is called from within the PackML_Initialize worksheet of the Initialize POU so the custom events are loaded on program start.
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| B | Events | Yt_PK_EventCfgArray | Structure containing defined events | |
| VAR_INPUT | ||||
| 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 |
| 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. | |
Notes
- The user may create any number of global Event Variables of datatype EventCfgArray
- The array size for each is [0..100]
- Example:
Error Description:
See the
Function Block ErrorID List.