EnableEvents![This function or function block supports PLCopen motion PLCopen motion icon](../Resources/Images/Icon_PLCopen.png)
A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Enable or disable the production of events for binding(runtime
In computer science, runtime (or run-time) describes the operation of a computer program, the duration of its execution, from beginning to termination (compare compile time).
Within KAS, runtime also refers to the virtual machine that manage the program written in a computer language while it is running 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 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 *)