Device: tempctl0 (Temperature Control Card)
Physical Concept
Form Factor: Industrial controller module mounted in instrumentation backplane
Core Components:
- Microcontroller with PID control loop execution
- Thermocouple acquisition (2 channels) - digitized temperature sensors
- Relay output drivers (2 channels) - switches for heater/cooler control
- Communication interface for device protocol
- Non-volatile storage for setpoint/configuration
Operational Pattern
Primary Function: Temperature regulation with manual or automatic control
Operating Modes:
- Open Loop: Host directly controls relays, temperatures monitored
- Closed Loop: Onboard controller maintains setpoint, host monitors progress
Typical Control Flow:
- Host polls temperature signals periodically
- Manual mode: Host calls relay functions to control heating/cooling
- Automatic mode: Host sets mode and setpoint, controller handles relay actuation
- Controller maintains setpoint autonomously until mode change or new setpoint
Protocol Interface
Signals (read by host):
tc1_temp,tc2_temp(double) - Temperature readingsrelay1_state,relay2_state(bool) - Relay statescontrol_mode(string) - Current modesetpoint(double) - Target temperature
Functions (called by host):
set_mode(mode)- Switch control modeset_setpoint(value)- Set target temperatureset_relay(relay_index, state)- Manual relay control (open mode only)
Precondition: Manual relay control blocked when in closed-loop mode
Simulation Purpose
Validates multi-signal coordination, mode-based preconditions, and stateful control patterns.
Represents: Sensor ā Controller ā Actuator feedback loop