****** I HAVE EDITED THIS POST TO SHOW MANUAL INTERACTION WHERE NEEDED *******
While waiting for some parts to arrive I wrote my Mach Cycle State Machine.
I might combine a couple of states later on but for now this helps me organize my thoughts.
PUMPA is now HLT_PUMP
PUMPB is now MLT_PUMP
Initial setup
VERIFY ALL VALVES CLOSED (Includes Boil Kettle (A.K.A. BK))
Hose from HERMs output valve on HLT attached to MLT recircIN
Hose attached to MLT_PUMP IN, other end loose
Hose from MLT_PUMP OUT valve to HERMs IN valve of HLT attached
Hose from HLT OUT valve to HLT_PUMP IN attached
Hose from HLT_PUMP OUT valve to HLT recircIN valve attached
Wort transfer hose attached to BK OUT valve, other end loose
PROCESS
Mash Cycle
State 0: Ramp up of HLT.
Resources
Out0, HLT element under PID control using temp0 = HLT temp probe,
temperature at setpoint
Timer0: Elapsed time to reach HLT set point, init to 0
Timer2: Total Elapsed time for mash process, init to 0
Out1: HLT_PUMP recirculate HLT water for even temperature
Exit Condition, HLT temp >= HLT setpoint Goto State 1
Manual Actions:
Open HLT OUT valve
Open HLT recircIN valve
Prime HLT_PUMP
Start HLT_PUMP
State 1: Dough In
Out0, HLT element under PID control using temp0 = HLT temp probe,
temperature at setpoint
Timer2: Total Elapsed time for mash process, cummulative from State 0
Out1: HLT_PUMP transfer measured strike water from HLT to MLT
Exit Condition: Web Input button activated to start mash after
dough in complete, Goto State 2
Manual Actions:
Stop HLT_PUMP
Close HLT OUT valve
Close HLT recircIN valve
Close HLT_PUMP output valve
Move HLT_PUMP hose output from HLT recircIN to MLT output valve
Open MLT output valve
Open HLT_PUMP output valve
Prime HLT_PUMP
Start HLT_PUMP
Use HLT sight guage to meter strike water transfer to MLT
When transfer complete stop HLT_PUMP
Close MLT Output valve
Close HLT_PUMP output valve
Move HLT_PUMP hose output to HLT recircIN
Open HLT_PUMP output vavle
Open HLT recircIN valve
Prime HLT_PUMP
Start HLT_PUMP
Add grain to MLT/Dough In
Attach loose end of MLT_PUMP IN hose to MLT OUT valve
Open MLT OUT valve
Open MLT_PUMP OUT valve
Open HERMS IN valve
Open HERMS OUT valve
Open MLT recircIN valve
Prime MLT_PUMP
Start MLT_PUMP
Enable START MASH Win Button
State 2: Mash
Out0, HLT element under PID control using temp1 = MLT temp probe,
temperature at desired mash setpoint
Timer1: init to desired length of mash, count down to 0
Timer2: Total Elapsed time for mash process, cummulative from
State 0 and State 1
Out1: HLT_PUMP recirculate HLT water for even temperature
Out2: MLT_PUMP recirculate wort through HERMs coil in HLT to
maintain mash temp
Exit Condition: Timer1 <=0; Goto State 3
Manual Actions:
Monitor temps and adjust MLT_PUMP flow or PID setpoint as needed
Other duties as needed (out of scope of this process)
State 3: Transfer 1st Runnings to boil kettle
Out0, HLT element under PID control using temp0 = HLT temp probe,
temperature at mashout
Timer2: Total Elapsed time for mash process, cummulative from
States 0, 1 and 2
Out2: MLT_PUMP transfer wort from MLT to boil kettle
Exit Condition: Web Input Button activated to start batch sparge
Goto State 4
Manual Actions:
Stop MLT_PUMP
Close ALL MLT valves including MLT_PUMP output valve
Close HERMs IN and HERMs OUT valves
Remove MLT_PUMP OUT hose and leave loose (in clean catch bucket)
Connect loose end of BK wort transfer hose to MLT_PUMP OUT valve
Open BK OUT Valve
Open MLT OUT valve
Open MLT_PUMP OUT valve
Prime MLT_PUMP
Start MLT_PUMP
When MLT drained, stop MLT_PUMP
Close BK OUT valve
Close MLT OUT valve
Close MLT_PUMP OUT valve
Remove BK wort transfer hose from MLT_PUMP OUT and leave loose in clean catch bucket
State 4: Batch Sparge
Out0, HLT element under PID control using temp0 = HLT temp probe,
temperature at mashout
Timer2: Total Elapsed time for mash process, cummulative from
States 0, 1,2 and 3
Out1: HLT_PUMP transfer sparge water from HLT to MLT
Exit Condition: Web Input Button activated to start vorlauf;
Goto State 5
Manual Actions:
Stop HLT_PUMP
Close HLT OUT valve
Close HLT recircIN valve
Close HLT_PUMP output valve
Move HLT_PUMP hose output from HLT recircIN to MLT output valve
Open MLT output valve
Open HLT_PUMP output valve
Prime HLT_PUMP
Start HLT_PUMP
Use HLT sight guage to meter sparge water transfer to MLT
When transfer complete stop HLT_PUMP
Close MLT Output valve
Close HLT_PUMP output valve
Move HLT_PUMP hose output to HLT recircIN
Open HLT_PUMP output vavle
Open HLT recircIN valve
Prime HLT_PUMP
Start HLT_PUMP
Attach loose end of HERMS IN hose to MLT_PUMP OUT valve (previous loose hose in catch bucket)
Open MLT OUT valve
Open MLT_PUMP OUT valve
Open HERMS IN valve
Open HERMS OUT valve
Open MLT recircIN valve
Prime MLT_PUMP
Start MLT_PUMP
Enable VORLAUF Win Button
State 5: Vorlauf
Out0, HLT element under PID control using temp0 = HLT temp probe,
temperature at mashout
Timer2: Total Elapsed time for mash process, cummulative from
States 0,1,2,3 and 4
Timer3: Init to 10 minutes, count down to 0
Out1: HLT_PUMP recirculate HLT water for even temperature
Out2: MLT_PUMP recirculate wort through HERMs coil in HLT to vorlauf
Exit Condition: Timer3 <= 0, Goto State 6
State 6: 2nd runnings to boil kettle
Timer2: Total Elapsed time for mash process, cummulative from
States 0,1,2,3,4 and 5
Out2: MLT_PUMP transfer wort from MLT to boil kettle
Exit Condition: Web Input Button END MASH activated
at end of transfer;
Manual Actions:
At vorlauf timer expiration
Stop MLT_PUMP
Close ALL MLT valves including MLT_PUMP output valve
Close HERMs IN and HERMs OUT valves
Remove MLT_PUMP OUT hose and leave loose (in clean catch bucket)
Connect loose end of BK wort transfer hose to MLT_PUMP OUT valve
Open BK OUT Valve
Open MLT OUT valve
Open MLT_PUMP OUT valve
Prime MLT_PUMP
Start MLT_PUMP
When MLT drained, stop MLT_PUMP
Close BK OUT valve
Close MLT OUT valve
Close MLT_PUMP OUT valve
Remove BK wort transfer hose from MLT_PUMP OUT and BK
Enable MASH END Win button
End Mash Cycle