Pro
20 min

Temperature Setpoint with Deadband

analogtemperaturesetpointdeadbandhysteresis

Ready to build this?

Sign up free — no credit card required. This scenario requires the Pro plan.

Sign up to play this scenario →

Already have an account? Log in

Temperature Setpoint with Deadband scenario preview

Briefing

A process heater must maintain a temperature at an operator-selected setpoint. The operator selects one of three presets using two toggle switches: | SP_SEL_A | SP_SEL_B | Setpoint | |----------|----------|---------| | OFF | OFF | 60 °C | | ON | OFF | 60 °C | | OFF | ON | 80 °C | | ON | ON | 100 °C | Turning the heater on/off at exactly the setpoint would cause rapid chatter. A **deadband** of ±2 °C prevents this: the heater turns **on** when temperature drops to (SP − 2 °C) and turns **off** when it rises to (SP + 2 °C). The physics engine computes these comparisons and publishes: - **BELOW_SP** — temperature is below (setpoint − 2 °C) — should turn heater ON - **ABOVE_SP** — temperature is above (setpoint + 2 °C) — should turn heater OFF Your task: use START/STOP for a RUN latch; latch HEATER ON when running and BELOW_SP is true; latch HEATER OFF when ABOVE_SP or STOP.

Objectives

  • Latch RUN_BIT on START, drop on STOP
  • HEATER latches ON (S=) when RUN_BIT AND BELOW_SP
  • HEATER latches OFF (R=) when ABOVE_SP or STOP

Hints

  • Use S= and R= coils for HEATER so it stays on between deadband crossings
  • | RUN_BIT AND BELOW_SP | S= HEATER ;
  • | ABOVE_SP OR STOP | R= HEATER ; (the OR condition is a single parallel rung)

I/O Table

Inputs

START

Start push-button

BOOL · %I0.0

STOP

Stop push-button

BOOL · %I0.1

SP_SEL_A

Setpoint selector bit A

BOOL · %I0.2

SP_SEL_B

Setpoint selector bit B

BOOL · %I0.3

TEMP_PV

Process temperature (°C)

REAL · %IW0

BELOW_SP

Physics: temperature below (SP − 2°C)

BOOL · %I0.4

ABOVE_SP

Physics: temperature above (SP + 2°C)

BOOL · %I0.5

Outputs

HEATER

Heater contactor

BOOL · %Q0.0

Your program will be tested against:

All test cases run automatically when you submit. Assertions are hidden until you pass.

  1. #1START at ambient → HEATER latches on (below setpoint)

    At ambient (20°C), well below 60°C setpoint, START → HEATER must latch on

  2. #2STOP immediately turns HEATER off

    While heater is on, pressing STOP drops it within one scan

  3. #3HEATER cycles: ON below deadband, OFF above deadband, stays on in between

    Verify heater latches on when BELOW_SP and latches off when ABOVE_SP

Ready to build this?

Sign up free — no credit card required. This scenario requires the Pro plan.

Sign up to play this scenario →

Already have an account? Log in

Runnable simulator field guide

Temperature setpoint PLC scenario: test checklist

Direct answer

The learner can validate units and quality, clamp an authorized setpoint, control around it without chatter and prove high-temperature and sensor-fault response.

Written for process-control learners joining an analog temperature measurement to an operator setpoint and bounded heater command.

a water-based process instrumentation skid with tank, valve, transmitter and controller evidence used for safe calibration and sequence practice while studying temperature scaling, bounded setpoint, heating permission and high-limit response
System map / 02

NODE 01observable

Scenario setup

Sensor range and quality, engineering unit, setpoint authority and limits, deadband or controller mode, heater permissives, output, high alarm and independent limit.

NODE 02observable

I/O and state map

Physical temperature through sensor and input scaling to control comparison, heater command, heat transfer, measured response and protective boundary.

NODE 03observable

Normal run

A valid measurement below setpoint permits bounded heating and settles within the declared band without defeating stop or high-limit behavior.

NODE 04observable

Boundary run

Bad sensor, frozen value, setpoint beyond limit, overshoot, rapid cycling, no heat, stuck output, manual mode, restart and power return.

NODE 05observable

Injected fault

A sensor, loop, scale, unit, setpoint, permission, control, output, thermal-process or protective-boundary mismatch.

NODE 06observable

Target check

The strategy validated on the intended thermal process with exact instruments, hardware limits, tuning and safety analysis.

Answer surface / 07

How should a PLC limit a temperature setpoint?

Validate numeric type and units, apply role-based lower and upper engineering limits and show the accepted value separately from the requested value.

What should happen when the temperature sensor fails?

Remove or constrain automatic heating according to the approved hazard analysis, declare bad quality and require a deliberate recovery path.