Final project
Industrial washing machines are common applications for timers. Typically, an operator will press a button and the washing machine will run for a given amount of time; then, a spin cycle will start. Essentially, this project will be an exercise in cascading timers. When one timer fires, it will trigger the start of another timer. Therefore, to begin this project, we will need the following variables.
Variables
To start off, let’s declare the following variables:
PROGRAM PLC_PRG VAR wash : TON; //washing machine timer spin : TON; //spin timer start : BOOL; //simulated start button washOn : BOOL; //washing state spinOn : BOOL; //spin state...