EnableEvents

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

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 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
     EnableEvents
     ST  ENO