This example describes monitoring the movement of a cart.
Checks to be carried out:
-
check that the Forward order has been correctly entered,
-
after receiving the command Forward, ensure that the cart leaves the fcAr sensor before 1 second has passed,
-
check that the Forward run-time period does not go beyond 10 seconds,
-
check that the 2 sensors at the end of the run are never on 1 at the same time,
-
check that the fcAr sensor is on 1 while the cart is at a halt.
Illustration of the application
The drawing below shows the application and the checks that have been carried out:
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, , ,) ;
-
EVENT input is used to check that the Forward order has been correctly entered while the cart moves.
-
EVENT_T0 input is used to ensure that the card leaves the fcAr sensor before 1 second,
-
EVENT_T1 input checks that the run-time does not last longer than 10 seconds,
-
COND input is monitored on 1 for the entire time that the DFB is running. It is used to check that:
-
the fcAr sensor is on 1 while the is at a stop,
-
the two fcAr and fcAv sensors are never on 1 at the same time.
The illustration below shows a graphic representation of the DFB diagnostics as it is hardwired in this example.