There is a machine with a large steel shaft supported by bearings. This shaft is coupled to a large electric motor. The bearings need lubrication, which is supplied by an oil pump driven by a small electric motor. The operation of the program can be summarized as follows:
A. To start the machine, the operator turns SW on.
B. Before the motor shaft starts to turn, the bearings are supplied with oil by the pump for 10 seconds.
C. The bearings also receive oil when the machine is running.
D. When the operator turns SW off to stop the machine, the oil pump continues to supply oil for 15 seconds.
E. A retentive timer is used to track the total running time of the pump. When the total running time is 3 hours to test your program the motor is shut down and a pilot light is turned on to indicate that the filter and oil need to be changed.
F. A reset button is provided to reset the process after the filter and oil have been changed You can test your code for 100 seconds for total running time. .