PLC control logic from our Capstone I design (Table 3.5), driven by simulated sensor inputs
Drag a slider or type a value and the PLC reacts on the next scan. "Run house model" lets the readings change by themselves, so you can watch the full loop: limit crossed, output ON, value recovers, output OFF.
| Register | Meaning | Value |
|---|
Link OK · last valid reply 0 s ago
| Condition | PLC action | Hysteresis / note |
|---|---|---|
| Temperature above the age-based high setpoint | Fan ON | OFF 1.0 °C below setpoint |
| Temperature below the age-based low limit | Heating bulb ON | OFF 1.0 °C above limit |
| RH above 70 % | Fan ON | OFF below 68 % |
| NH₃ at or above 8 ppm (80 % of limit) | Fan ON (assist) | OFF below 7 ppm |
| NH₃ at or above 10 ppm, or CO₂ above 3000 ppm | Fan ON + buzzer latched | CO₂ fan OFF below 2800 ppm |
| Temperature 2 °C outside its range, or RH above 80 % | Buzzer latched | Cleared by operator reset when normal |
| Sensor fault, or no valid Modbus reply for 5 s | Fan ON, heater OFF, buzzer ON | Fail-safe state |
Age setpoints are demo values built from Table 2.1 (Cobb guide [30]); 14–21 d uses the report's 30 °C example. The house model is a simple first-order model made only to exercise the logic. The NH₃ value stands for the calibrated MQ-137 index expressed as ppm.