Y_PK22_CM_Control_Inputs
The Y_PK22_CM_Control_Inputs function block passes the PackML commands from the Unit Machine level into each of the enabled and active Control Modules of an Equipment Module.
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| V | PML_Cmds | #60382 |
Structure that contains the current Unit mode of operation and the commands sent by Y_PK22_PackML22_State_Diagram. | |
| V | PML_States | #60385 |
Structure containing information about the current state of the machine. | |
| V | UnitMachine | #60397 |
Structure containing all the information about the machine's 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. Each bit corresponds to the number of the 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.