Example of using and programming the MV_DIA function block
(Original Document)
Application description
This example describes monitoring the movement of a cart.
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:
Advance := Forward AND NOT fcAv;
CondOK := Not (fcAv AND fcAr) AND (fcAr OR Advance OR fcAv)
NfcAr := Not fcAr;
MV_DIA1 (Advance, Forward, CondOK, NfcAr, fcAv, , ,) ;
DFB graphic presentation
The illustration below shows a graphic representation of the DFB diagnostics as it is hardwired in this example.