In this section of the chapter, we will begin creating the logic that will dispense the ingredients for our robot bartender beverages. We will begin by creating the subroutine structure for our program and then we will fill in the logic for each routine. The program will be built around the main routine, which contains timer objects associated with each pump.
Each drink recipe will also have its own routine that will watch for a push-button input, modify the time for each pump timer, and then run the pumps. In the next section, we will create some empty place holder routines that we will populate later in the chapter.
Building the robot bartender routine structure
Let's start by creating some empty routines that will be executed by our main program. As you will recall from chapter 8, Writing Ladder Logic, we will need to create the jump to subroutine calls from the main program of our project so that the logic...