Y_PK22_PackMLEvents_Init
The Y_PK22_PackMLEvents_Init function block is a freely editable block in which the user may create custom (user-defined) event descriptions. The events defined here are used with the Y_PK22_CM_Event function block to capture event occurrences to be summarized at the EM and UN levels. This block is called from within the Y_PK22_PackML_Initialize worksheet of the Initialize POU so that the custom events are loaded on program start.
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| B | Events |
#60381
|
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.