Design a program to meet the following requirements:
• When the Start switch (I:1/0) is pressed, pump P1 will be energized and the tank will start to fill. The pulses generated by Flowmeter 1 should be used to increment a counter.
• When the count reaches a value where the tank is approximately 90% full, the pump is to be shut off and the control panel's FULL light is to be energized.
• The filling operation is to halt immediately if the stop switch is pressed.
• Hint: To make it a little easier to see what is happening with the counter, you might want to add the following rung to the end of your program.
If correctly entered, the TOD (To BCD) instruction will take the integer value in the counter's accumulator, convert it to Binary Coded Decimal, and then move (copy) this BCD value to the control panel LED display (O:4). The TOD instruction can be located in the Compute/Math group of instructions in the Edit Panel. Be sure to alter the Source entry to match the counter number you are using.
• The mixer will run for 8 seconds once the tank is full.
• When the mixing is complete, drain pump P3 is to be started and the tank is to be drained. Flowmeter 3 will be employed to decrement the existing counter, and draining will be allowed to continue until the counter's accumulator reaches zero.
• Once the tank is empty again, pressing the Start switch will cause the sequence to repeat.
• The filling and emptying sequence will repeat continuously once it has been started by the initial pressing of the Start switch.
• Ensure that the RUN light is energized when the mixer or either pump is running.
• The STANDBY light should light and the process should halt when the Stop button is pressed.
• The process should restart where it left off if the Start button is pressed following a Stop. (b). Single Batch Mode of Operation: Using your knowledge of PLC.