EnableEvents
Inputs
EN : BOOL TRUE to enable events / FALSE to disable events
Outputs
ENO : BOOL Echo of EN input
Remarks
Production is enabled when the application starts. The first production will be operated after the first cycle. So to disable events since the beginning, you must call EnableEvents (FALSE) in the very first cycle.
In FFLD language, the input rung (EN) enables the event production, and the output rung keeps the state of the input rung. In IL"Instruction list" This is a low-level language and resembles assembly language, the input must be loaded before the function call.
ST Language
ENO := EnableEvents (EN);
FBD Language
FFLD Language
(* Events are enables if EN is TRUE *)
(* ENO has the same value as EN *)