Y_PK_CM_Control_Inputs
The CM_Control_Inputs function block passes the high level commands from the PackML_StateControl into each of the enabled and active Control Modules.
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| V | PML_Cmds | Yt_PK_PackML_Commands_STRUCT | Structure that contains the current Unit mode of operation and the commands sent by PackML_StateMachine. | |
| V | PML_States | Yt_PK_PackML_States_STRUCT | Structure containing information about the current state of the machine. | |
| V | UnitMachine | Yt_PK_UNitmachine_STRUCT | Structure containing all the information about the machines current state and mode of operation for all EMs and CMs. | |
| VAR_INPUT | ||||
| B | Enable | BOOL | The function will continue to execute every scan while Enable is held high and there are no errors. | FALSE |
| V | EM_Number | INT | The EM number corresponding to the EM in which this FB is located. | INT#0 |
| V | CM_Mask | WORD | Mask to deactivate CMs. When a CM is deactivated, commands will not be sent down to the CM, for testing purposes. Each bit corresponds to the same number CM to deactivate. (Example: to deactivate CM_3, set CM_Mask.X3. | WORD#16#0000 |
| VAR_OUTPUT | ||||
| B | Valid | BOOL | Indicates that the function is operating normally and the outputs of the function are valid. | |
| B | Error | BOOL | Set high if an error has occurred during the execution of the function block. This output is cleared when 'Execute' or 'Enable' goes low. | |
| E | ErrorID | UINT | If Error is true, this output provides the Error ID. This output is reset when 'Execute' or 'Enable' goes low. | |
Notes
See the PackML template documentation for further details on recommended usage.
Error Description:
See the
Function Block ErrorID List.