-

Y_PK22_EM_ModuleSummation

Image

The Y_PK22_EM_Module_Summation function block rolls up the Control Module State Complete bits for all active and enabled CMs within the EM. The result is an overall State Complete bit for the Equipment Module that is inspected by the Y_PK22_UN_ModuleSummation function block at the Unit Machine level.

Parameters

*ParameterData TypeDescriptionDefault
VAR_IN_OUT
V UnitMachine Yt_PK22_UNitmachine_STRUCT Structure containing all the information about the machines current state and mode of operation for all EMs and CMs
V PML_Status #60385 Structure containing all the information about the current status of machine states
VAR_INPUT
B Enable BOOL The function will continue to execute while the enable is held high FALSE
V EM_Number INT The EM number corresponding to the EM in which this FB is located 0
V CM_Mask WORD Mask to deactivate CMs. When a CM is deactivated, commands will not be sent down to the CM and all StateComplete bits will be set to TRUE. Each bit corresponds to the same number CM to deactivate. (Example: to deactivate CM_3, set CM_Mask.X3 =TRUE)
16 Control Modules are supported for each Equipment Module, numbered 0-15.
16#0000
VAR_OUTPUT
B Valid BOOL Indicates that the outputs of the function are valid
B CMs_Active WORD The list of active EMs. Same bit scheme as CM_Mask. (Example: if CMs_Active.X4 = TRUE then CM_4 is active)
B CMs_NotDone WORD A compilation of which Control Modules have not completed the transition task.
B Error BOOL Set high if error has occurred during the execution of the function block. This output is cleared when 'Execute' or 'Enable' goes low.
B ErrorID UINT If Error is true, this output provides the Error ID. This output is reset when 'Execute' or 'Enable' goes low.

Notes

Error Description:

See the Function Block ErrorID List.

 


This help information is valid for iCube Engineer Online Help 2025.6

Copyright © 2025 YASKAWA EUROPE GmbH and © 2025 YASKAWA America, Inc.