Griffing-Technology-LLC/engineering-pe-skills / skills/control-systems-engineering
control-systems-engineering
VerifiedControl systems engineering aligned to the NCEES PE Control Systems exam — PID tuning, loop dynamics, transfer functions, stability and frequency response, process instrumentation and P&IDs, final control elements, safety instrumented systems and SIL, and industrial control security. Use when tuning or diagnosing a control loop, building a transfer function or block diagram, checking stability or phase and gain margin, sizing a control valve or selecting a sensor, reading or drafting a P&ID, doing a SIL or LOPA assessment, or designing a feedback controller for a physical plant.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 8.3 KB |
| references/instrumentation-and-safety.md | markdown | 4.7 KB |
| references/loop-dynamics.md | markdown | 3.3 KB |
| references/pid-and-tuning.md | markdown | 4.4 KB |
references/loop-dynamics.md
View on GitHub# Loop Dynamics: Transfer Functions, Stability, Frequency Response
Reference file for the `control-systems-engineering` skill.
## 1. Plant models
Most industrial processes are adequately captured by **first-order plus dead
time (FOPDT)**:
$$G(s) = \frac{K_p e^{-\theta s}}{\tau s + 1}$$
Three parameters carry nearly all the design information:
* $K_p$ — process gain, Δoutput/Δinput **in stated units**
* $\tau$ — time constant, to 63.2% of the final change
* $\theta$ — dead time, before any response begins
Identify them from an open-loop step test: step the output in manual, record,
and fit. State how the model was obtained; a controller tuned against an
unidentified plant is a guess.
**Integrating processes** (level in a tank, position from velocity) have no
steady state and take $G(s) = K_p e^{-\theta s}/s$. Tuning rules for
self-regulating processes do not apply to them, and using them is a common cause
of slow cycling on level loops.
## 2. Why dead time is the binding constraint
The controllability ratio $\theta/\tau$ bounds achievable performance:
| $\theta/\tau$ | Consequence |
| --- | --- |
| < 0.2 | Easy; aggressive tuning viable |
| 0.2 – 1.0 | Moderate; standard PID with care |
| > 1.0 | Difficult; consider dead-time compensation or a better measurement location |
Dead time contributes phase lag without attenuation — it costs stability margin
and gives nothing back. **No amount of tuning removes dead time.** When
$\theta/\tau$ is large the honest answer is usually to move the sensor, not to
retune. Report this ratio in every loop analysis.
## 3. Closed-loop form
For a loop with controller $G_c$, plant $G_p$, and feedback $H$:
$$\frac{Y}{R} = \frac{G_c G_p}{1 + G_c G_p H}$$
The **characteristic equation** $1 + G_c G_p H = 0$ governs stability. Closed-loop
poles must lie in the left half of the s-plane.
Second-order standard form:
$$\frac{\omega_n^{2}}{s^{2} + 2\zeta\omega_n s + \omega_n^{2}}$$
with overshoot set by $\zeta$ alone, and settling time by $\zeta\omega_n$.
## 4. Stability margins
Determining stability is necessary but not sufficient — **report the margins**:
* **Gain margin** — factor by which loop gain may rise before instability,
measured where phase crosses −180°. Typical target: 2 to 5 (6 to 14 dB).
* **Phase margin** — additional phase lag tolerable, measured where gain crosses
0 dB. Typical target: 30° to 60°.
Phase margin correlates with damping: roughly $\zeta \approx PM/100$ for
moderate values. A loop with 15° phase margin is technically stable and
practically useless — it will ring on every disturbance and go unstable on any
process change.
Always name the frequency at which each margin occurs. A margin without its
frequency cannot be compared against the plant's expected variation.
## 5. Robustness is the real requirement
The plant you tuned against is not the plant you will run. Process gain varies
with throughput, valve characteristics are non-linear, and heat exchangers foul.
**Tune for the worst-case plant, not the nominal one.** Where process gain varies
with operating point, either tune at the highest-gain condition or apply gain
scheduling. A loop tuned tight at low throughput commonly goes unstable at high
throughput, and this is one of the most frequent causes of loops being left in
manual.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |