Y_PK_PackMLCommands_Init
The PackMLCommands_Init function block clears all commands and sets the machine to be in the stopped state.
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| V | INP_PackMLCommands | Yt_PK_PackML_Module_Commands_STRUCT | Structure containing the current state and commanded actions | |
| VAR_INPUT | ||||
| B | Enable | BOOL | The function will continue to execute while the enable is held high | FALSE |
| VAR_OUTPUT | ||||
| B | Valid | BOOL | Indicates that the function is operating normally and the outputs of the function are valid. | |
Notes
- Intended to be executed when initially entering the stopped state to clear all previous commands.
- Normally, this block is not necessary if proper interlocking is followed for PackML commands. However, using this block provides an added measure of assurance that no commands remain accidentally active.
Error Description:
See the
Function Block ErrorID List.