Abstract
Reliable sim-to-real controller design requires models of hydraulic and implementation dynamics. This study evaluates two-stage calibration for outer fuzzy proportional–integral (PI) control of a coupled-tank system on a Siemens S7-1200 programmable logic controller (PLC). Hydraulic parameters were identified from open-loop data, independently validated, and fixed during closed-loop implementation calibration. A genetic algorithm (GA) and particle swarm optimization (PSO) tuned the same 25-rule fuzzy-PI architecture using nominal (M0) and calibrated (M2) models under matched conditions, with 20 independent runs per family. On withheld closed-loop data, M2 reduced lower-tank level and pump-command root-mean-square errors by 53.6% and 87.1%, respectively, relative to M0. Physical evaluation included six configurations, each with ten tracking recordings and ten drainage interventions. Compared with M0-based designs, M2-based tuning reduced mean tracking integral time-weighted absolute error by 3.58% and 1.29% for GA and PSO, respectively, although both 95% confidence intervals (CIs) for the differences included zero. Corresponding drainage integral absolute error reductions were 7.16% and 2.93%. For GA, the drainage mean difference was 1.707 cm·s (95% CI, 0.203–3.211 cm·s). The results demonstrate improved prediction accuracy and suggest modest, variable physical performance benefits without changing the cascade architecture or 10 ms PLC control interval.