In addition to the circuitry created
for HD15-11 Vending Machine 1, add some circuitry to move the
horizontal bar back to the bottom after the drink is dispensed.
Add the following components:
- A pushbutton to represent a microswitch that senses when
the bar is at the bottom of the cabinet. (This can be either a normally
open or a normally closed pushbutton.)
- A relay named "Purchase."
- A light to represent when the motor is running CCW.
Here are some rules that will achieve the desired design:
- The Purchase relay is energized, and latches, when either the One relay or the Two relay are energized.
- The Purchase relay is deenergized when the horizontal bar reaches the Bottom microswitch..
- The motor is run CCW if the Purchase relay is energized and neither relay One nor relay Two are energized
|