ONLEVT: Online event
(Original Document)
Function description
This procedure can enter online events in the diagnostics buffer. The error recognition E_EFB_ONLEVT and the PARAM input are used for this.
NOTE: If EVT is set permanently to TRUE, each acknowledgement of an event will lead to a new entry in the diagnostic buffer. In addition, keeping EVT input permanently on TRUE will generate unnecessary runtime, due to checking the diagnostic buffer in each scan. Therefore it is recommended to use a rising edge detection at the EVT input in the application.
EN and ENO can be configured as additional parameters.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
LD DiagBufferFlag
ONLEVT Parameter
Representation in ST
Representation:
ONLEVT (DiagBufferFlag, Parameter);
Parameter description
Description of input parameters:
Parameter
Data type
Description
DiagBufferFlag
"1": Entry in diagnostics buffer.
Parameter
Parameter transferred to the diagnosis buffer.
Runtime error
NOTE: For a list of all block error codes and values, see Diagnostics.