Function - Enable or disable the production of events for binding (runtime to runtime variable exchange)


EN  : BOOL  TRUE to enable events / FALSE to disable events


ENO : BOOL  Echo of EN input


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 LD language, the input rung (EN) enables the event production, and the output rung keeps the state of the input rung. In IL language, the input must be loaded before the function call.

ST Language

ENO := EnableEvents (EN);

FBD Language

LD Language

(* Events are enables if EN is TRUE *)
(* ENO has the same value as EN *)

IL Language:

Op1: LD  EN
     ST  ENO