-

Y_PK22_CM_Event

Image

The Y_PK22_CM_Event function block captures User-Defined Events that occur in a Control Module to be fed up to the Y_PK22_UN_EventSummation block at the Unit Machine level. Custom User Events are configured in the Y_PK22_PackMLEvents_Init function block. Additional inputs are provided for the user to attach descriptive strings that can further identify where the event originated. As events are triggered, the time of the event is time-stamped. When the event is cleared, another timestamp records the acknowledgment time.

Parameters

* Parameter Data Type Description Default
VAR_IN_OUT
V Inp_UNEventStatus #60396
Structure containing event details from various modules of the machine
V EventList
#60381
Structure containing defined events
VAR_INPUT
B Enable BOOL The function will continue to execute while the enable is held high FALSE
B Trigger BOOL The condition that triggers the event to be captured FALSE
V EventNumber INT The description of the event to be captured. Events are predefined, so this input is an element of the pre-defined array of events. INT#0
V EM INT Equipment module number INT#0
V CM INT Control module number INT#0
V VariableMessage STRING User Message for event ''
V Inp_Section #19497
Section where CM_Event block is located ''
VAR_OUTPUT
B Valid BOOL Indicates that the function is operating normally and the outputs of the function are valid.
B Sts_Active BOOL Indicates that the trigger condition is active and that an event has been captured. If the trigger condition goes to FALSE, this output will turn off.
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 template documentation for further details on recommended usage.

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.