Reference ID: MET-59D8 | Process Engineering Reference Sheets Calculation Guide
Introduction & Context
A Programmable Logic Controller (PLC) is the industrial computer that continuously monitors field devices and executes user-defined logic every scan cycle.
In food & beverage, pharmaceutical, and chemical plants, the interlock studied here prevents product scorching, vessel over-pressure, or loss of agitation by immediately shutting off the steam supply.
The calculation is therefore a safety interlock specification rather than a sizing exercise; it defines the Boolean conditions under which the steam valve must de-energise within one deterministic scan.
Methodology & Formulas
Normalise discrete inputs
The field signals are wired as:
TTD = 0 → temperature < 98 °C, TTD = 1 → temperature ≥ 98 °C
X1 = 0 → agitator off, X1 = 1 → agitator on
PB = 0 → emergency-stop pressed (NC contact), PB = 1 → button released
Form the danger condition
Danger exists when any of the following is true:
\[
\text{DANGER} = \text{TTD} \vee \left(1 - \text{X}_{1}\right) \vee \text{PB}_{\text{active}}
\]
Generate the interlock output
The steam valve is energised only when the danger flag is false:
\[
\text{Steam\_Valve} = 1 - \text{DANGER}
\]
Design criteria & regimes
Parameter
Symbol
Condition
Regime
Scan cycle
\(t_{\text{scan}}\)
\(t_{\text{scan}} \le 50\ \text{ms}\)
Food-safety reaction limit
Discrete inputs
TTD, X1, PB
\(\in \{0,\ 1\}\)
Valid Boolean domain
Start by listing every I/O point and its required response time. Rank them into three groups:
Critical (≤ 10 ms) – safety interlocks, fast loops
Standard (10–100 ms) – normal PID, digital status
Slow (> 100 ms) – alarms, trending data
Set the main scan to match the fastest Standard task, then use interrupt or time-scheduled tasks for Critical logic. Finally, move serial comms, data logging, and HMI updates to the Slow cyclic or event-driven routines. Verify CPU load stays below 70 % at peak; if higher, offload non-critical code to a secondary PLC or edge device.
Use the PLC’s analog input configuration wizard to set:
Raw counts at 4 mA (e.g., 3277 for 15-bit)
Raw counts at 20 mA (e.g., 16383)
Low EU value (0 kPa, 0 L/min, etc.)
High EU value (full scale)
The firmware automatically applies linear scaling. Store the result in a REAL tag named PV_EU and map it to the HMI. This keeps scaling in one place and prevents rounding errors that occur when scaling is done twice (in PLC and HMI).
Most modern PLCs support online firmware update (OUFI) that preserves I/O states and keeps the CPU in RUN. Prerequisites:
Redundant power supplies and network paths
Controller model certified for OUFI by the vendor
Application verified compatible with new firmware
Tested fallback image stored on SD card
Schedule the update during a low-demand shift, have an operator monitor critical loops, and keep a rollback plan ready. If redundancy is not available, plan a controlled shutdown of non-critical sections while keeping safety systems energized.
Follow these steps to avoid bumps:
Configure the new loop with Manual mode as default and set its output equal to the current manual valve position or existing loop output.
Download changes while the CPU is in RUN; the new loop will initialize in Manual.
Switch the field wiring to the new output channel one wire at a time using hot-swap terminal strips.
Once the process is stable, tune the loop in Manual, then switch to Auto with bumpless transfer enabled.
Always trend PV, SP, and CV for 30 min before and after the switch to confirm smooth transition.
Worked Example – Boiler Drum Level Emergency Trip
A small package boiler supplies 5 t h-1 of saturated steam to a food-processing plant. A PLC monitors the drum level and must shut the steam valve within one scan if a “low-low” condition is detected. The ladder program uses a single push-button (PB) for manual reset and a dedicated low-level switch (X1). The plant engineer wants to verify that the PLC scan time is fast enough to prevent uncovering the boiler tubes.
Check the trip condition: DANGER = 1 indicates that X1 has been low long enough for TTD to expire.
Verify the reset interlock: PB_active = 1 and PB = 0, so the manual-reset branch is not satisfied and cannot override the trip.
Determine the valve response: Because DANGER = 1 and the reset is not true, the PLC de-energises the Steam_Valve output, giving Steam_Valve = 0 (valve closed).
Calculate the worst-case shut-off time: The valve solenoid is de-energised at the end of the scan in which DANGER becomes 1. In the worst case this scan lasts MAX_SCAN_MS = 50.0 ms. The solenoid releases in 15 ms and the valve closes mechanically in 0.3 s. Total shut-off time = 0.050 s + 0.015 s + 0.300 s = 0.365 s.
Compare with process requirement: Plant standards require closure within 0.5 s to prevent tube uncover. 0.365 s ≤ 0.5 s, therefore the PLC scan specification is acceptable.
Final Answer: The PLC will close the steam valve within 0.365 s under worst-case conditions, meeting the 0.5 s safety requirement.
"Un projet n'est jamais trop grand s'il est bien conçu."— André Citroën
"La difficulté attire l'homme de caractère, car c'est en l'étreignant qu'il se réalise."— Charles de Gaulle