Example of using and programming the EV_DIA function block
(Original Document)
Application description
This example describes the monitoring of filling a hopper
Cycle : pour 100kg of the product into the hopper.
Checks to be carried out
Illustration of the application
The drawing below shows the application and the checks that have been carried out
Program in ST language
The application is programmed in text in this example.
%L0:
EV_1 (ED := Cycle, ENABLE := Evt, EVENT := Closed, COND := Level, ERROR => Klaxon);
!IF (Cycle AND Closed)
THEN
SET (Evt);
ELSE
RESET (Evt);
END_IF;
(*Hopper trap door Command*)
!IF Weight >= 100
THEN
RESET (Evt);
RESET (Closure);
SET (Opening);
END_IF;
!IF Weight =0
THEN
RESET (Opening);
SET (Closure);
END_IF;
The level in the silo is always checked, as long as the cycle is running.
When the hopper fills Evt on ENABLE , the hopper trap-door is monitored in its Closed state (EVENT input).
DFB graphic presentation
The illustration below shows a graphic representation of the DFB diagnostics as it is hardwired in this example.