sleep 2000 [setup] clear new value spargevolume new value strikevolume new value preboilvolume new value elementvolume new value striketemp new value temp1 new value temp2 new value temp3 new value mashouttemp new value boiltemp new value pitchtemp new time doughintime new time time1 new time time2 new time time3 new time mashouttime new time boiltime new time hop1 new time hop2 new time hop3 new time hop4 new time whirltime new string status new string status1 new string hopstatus new string valvestatus spargevolume = 0 strikevolume = 18 preboilvolume = 18 elementvolume = 4 striketemp = 70 temp1 = 70 temp2 = 70 temp3 = 70 mashouttemp = 70 boiltemp = 70 pitchtemp = 70 doughintime = 00:00:10 time1 = 00:00:10 time2 = 00:00:10 time3 = 00:00:10 mashouttime = 00:00:10 boiltime = 00:00:30 hop1 = 00:00:30 hop2 = 00:00:20 hop3 = 00:00:10 hop4 = 00:00:05 whirltime = 00:00:10 [prep] start "Brew Stop" //status = "Ready to Start" //"CONTINUE" State = false //wait "CONTINUE" State == true "Bottom Temp" Enabled = true "Kettle Volume" Enabled = true "Flowmeter" Enabled = true "Recir Temp" Enabled = true "Chill Temp" Enabled = true "Mash PID" Enabled = false "Left Pump" Enabled = true "Right Pump" Enabled = true "Filtered Water" Enabled = true "Unfiltered Water" Enabled = true "Boil Power" Enabled = false "Whirlpool Hop" State = false status = "Setup Recipe" status1 = "Press IMPORT" "IMPORT" State = false wait "IMPORT" State == true status1 = "Return to Brewing" status = "Ready to Brew" "CONTINUE" State = false wait "CONTINUE" State == true [fill] status = "Kettle Fill" "Filtered Water" State = true sleep 3000 wait "Kettle Volume" Value >= strikevolume "Filtered Water" State = false status = "Kettle Ready, Press CONTINUE" start "Brew Alarm" [strike] status = "Heating Strike" "Filtered Water" State = false valvestatus = "Green Down, Yellow/Blue/Red Right" "Right Pump" State = true sleep 10000 "Mash PID" Target = striketemp "Mash PID" Enabled = true wait "Bottom Temp" Value >= "Mash PID" Target [strike_ready] status = "Strike Ready, Press CONTINUE" start "Brew Alarm" "CONTINUE" State = false wait "CONTINUE" State == true [fill_mash] new value volume status = "Mash Fill" valvestatus = "Yellow Down" "Mash PID" Enabled = false sleep 3000 //if "Sparge" State == true //volume = elementvolume + spargevolume //wait "Kettle Volume" Value <= spargevolume //else wait "Kettle Volume" Value <= elementvolume //endif status = "Mashtun Ready, Press CONTINUE" "Right Pump" State = false start "Brew Alarm" "CONTINUE" State = false wait "CONTINUE" State == true [dough_in] status = "Dough-In" valvestatus = "Green Up, Yellow Down, Blue/Red Right" "Flowmeter" Enabled = false //flowmeter at top MLT sleep 1500 "Flowmeter" Enabled = true //flowmeter at top MLT "Timer" Type = CountDown "Timer" Value = doughintime start "Timer" wait "Timer" Value <= 0 start "Brew Alarm" stop "Timer" if "Auto Mash" State == true start "Liquid Level Alarm" endif [mash_step1] status = "Mash Step 1" "Right Pump" State = true "Left Pump" State = true sleep 10000 "Mash PID" Target = temp1 + 1 "Mash PID" Enabled = true wait "Bottom Temp" Value >= "Mash PID" Target "Timer" Value = time1 start "Timer" wait "Timer" Value <= 0 start "Brew Alarm" stop "Timer" [mash_step2] status = "Mash Step 2" "Mash PID" Target = temp2 + 1 wait "Bottom Temp" Value >= "Mash PID" Target "Timer" Value = time2 start "Timer" wait "Timer" Value <= 0 start "Brew Alarm" stop "Timer" [mash_step3] status = "Mash Step 3" "Mash PID" Target = temp3 + 1 wait "Bottom Temp" Value >= "Mash PID" Target "Timer" Value = time3 start "Timer" wait "Timer" Value <= 0 start "Brew Alarm" stop "Timer" [mashout] status = "Mash Out" "Mash PID" Target = mashouttemp wait "Bottom Temp" Value >= "Mash PID" Target "Timer" Value = mashouttime start "Timer" wait "Timer" Value <= 0 start "Brew Alarm" stop "Timer" [drain] status = "Mash Drain" "Right Pump" State = false "Mash PID" Target = 0 "Mash PID" Enabled = false "Flowmeter" Enabled = false sleep 1500 "Flowmeter" Enabled = true if "Sparge" State == true status = "Sparge" "Filtered Water" State = true sleep 3000 wait "Flowmeter" Value >= spargevolume "Filtered Water" State = false start "Brew Alarm" endif "CONTINUE" State = false [drain_loop] if "CONTINUE" State == true "CONTINUE" State = false goto boil endif if "Kettle Volume" Value >= preboilvolume goto boil endif sleep 3000 goto drain_loop [boil] status = "Heating to Boil" hopstatus = "Prep Hop Additions" valvestatus = "Clean Mashtun" stop "Liquid Level Alarm" "Left Pump" State = false "Boil Power" Enabled = true "Boil Power" DutyCycle = 100 wait "Bottom Temp" Value >= boiltemp [boil_wait] "Boil Power" DutyCycle = 55 status = "Boil" valvestatus = "Green Down, Yellow/Blue/Red Right" "Timer" Value = boiltime start "Timer" wait "Timer" Value <= hop1 hopstatus = "Add Hop 1" start "Brew Alarm" wait "Timer" Value <= hop2 hopstatus = "Add Hop 2" start "Brew Alarm" wait "Timer" Value <= hop3 hopstatus = "Add Hop 3" start "Brew Alarm" wait "Timer" Value <= hop4 hopstatus = "Add Hop 4" start "Brew Alarm" wait "Timer" Value <= 0 "Boil Power" Enabled = false start "Brew Alarm" stop "Timer" hopstatus = "" [whirlpool] if "Whirlpool Hop" State == true hopstatus = "Add Whirlpool Hop" start "Brew Alarm" endif status = "Whirlpool" "Right Pump" State = true sleep 10000 "Timer" Value = whirltime start "Timer" wait "Timer" Value <= 0 start "Brew Alarm" stop "Timer" [chill] status = "Chill" hopstatus = "" valvestatus = "Red Up, Blue Down" "Unfiltered Water" State = true "CONTINUE" State = false sleep 10000 [chill_loop] if "CONTINUE" State == true "CONTINUE" State = false goto transfer endif if "Chill Temp" Value <= pitchtemp goto transfer endif sleep 3000 goto chill_loop [transfer] status = "Fill Fermentor and then Press CONTINUE" valvestatus = "Yellow Down" //"Flowmeter" Enabled = false //sleep 3000 //"Flowmeter" Enabled = true start "Brew Alarm" "CONTINUE" State = false wait "CONTINUE" State == true //[transfer_loop] //if "CONTINUE" State == true // "CONTINUE" State = false // goto clean //endif //if "Flowmeter" Value >= batchvolume // goto clean //endif //sleep 3000 //goto transfer_loop [clean] status = "Clean and then Press CONTINUE" valvestatus = "" "Right Pump" State = false "Unfiltered Water" State = false "CONTINUE" State = false wait "CONTINUE" State == true [end] clear goto setup //start "Brew Reset" //stop "Brew Start"