Basic
25 min

Fermentation Temperature Control

temperaturepidfermentationanalogprocess-control
Fermentation Temperature Control scenario preview

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_TEMP

Vessel temperature in °C

REAL · %IW0

SETPOINT

Temperature setpoint in °C (default 22)

REAL · %IW2

START_PB

Start fermentation push-button

BOOL · %I0.0

STOP_PB

Stop push-button

BOOL · %I0.1

COOLING_OK

Cooling system OK status

BOOL · %I0.2

Outputs

JACKET_VALVE_CMD

Cooling jacket valve position (0-100%)

REAL · %QW0

AGITATOR

Agitator motor run

BOOL · %Q0.0

FERMENTATION_ACTIVE_LAMP

Fermentation 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.

  1. #1AGITATOR and FERMENTATION_ACTIVE_LAMP on when running

    Starting fermentation turns on both the agitator and the active lamp

  2. #2JACKET_VALVE_CMD > 0 when vessel is above setpoint

    Physics starts vessel warm; valve should open proportionally

  3. #3STOP_PB de-activates fermentation

    Pressing stop turns off agitator and active lamp

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