Fermentation Temperature Control
Ready to build this?
Sign up free — no credit card required. This scenario requires the Basic plan.
Sign up to play this scenario →Already have an account? Log in
Briefing
Controls the temperature of a fermentation vessel using a cooling jacket valve (0-100% output) and an agitator. The jacket valve opens proportionally to the temperature error (TEMP - SETPOINT). When deviation exceeds ±2°C, an alarm is raised. The physics module simulates the vessel temperature responding to the jacket cooling.
Objectives
- JACKET_VALVE_CMD (0-100 REAL) opens proportionally to (VESSEL_TEMP - SETPOINT)
- AGITATOR runs whenever FERMENTATION_ACTIVE_LAMP is on
- FERMENTATION_ACTIVE_LAMP on while running with no alarm
- Deviation > +2°C above setpoint latches alarm; deviation < -2°C also latches alarm
- Alarm clears when temperature returns within ±1°C of setpoint
Hints
- ERROR := VESSEL_TEMP - SETPOINT; JACKET_VALVE_CMD := CLAMP(ERROR * GAIN, 0, 100)
- Use a reasonable proportional gain (~25 %/°C) so the valve responds meaningfully
- TOO_HOT := VESSEL_TEMP > SETPOINT + 2.0; TOO_COLD := VESSEL_TEMP < SETPOINT - 2.0
- ALARM_BIT: S= when TOO_HOT OR TOO_COLD; R= when ABS(ERROR) < 1.0 AND COOLING_OK
I/O Table
Inputs
VESSEL_TEMPVessel temperature in °C
REAL · %IW0
SETPOINTTemperature setpoint in °C (default 22)
REAL · %IW2
START_PBStart fermentation push-button
BOOL · %I0.0
STOP_PBStop push-button
BOOL · %I0.1
COOLING_OKCooling system OK status
BOOL · %I0.2
Outputs
JACKET_VALVE_CMDCooling jacket valve position (0-100%)
REAL · %QW0
AGITATORAgitator motor run
BOOL · %Q0.0
FERMENTATION_ACTIVE_LAMPFermentation active indicator
BOOL · %Q0.1
Your program will be tested against:
All test cases run automatically when you submit. Assertions are hidden until you pass.
- #1AGITATOR and FERMENTATION_ACTIVE_LAMP on when running
Starting fermentation turns on both the agitator and the active lamp
- #2JACKET_VALVE_CMD > 0 when vessel is above setpoint
Physics starts vessel warm; valve should open proportionally
- #3STOP_PB de-activates fermentation
Pressing stop turns off agitator and active lamp
Related scenarios
Ready to build this?
Sign up free — no credit card required. This scenario requires the Basic plan.
Sign up to play this scenario →Already have an account? Log in