Model-Calibrated Sim-to-Real Optimization of Outer Fuzzy-PI Control on a PLC: A Coupled-Tank System Study
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.
Authors
- Natee Thong-un (ORCID: https://orcid.org/0000-0002-2101-5127)
- Wittaya Koodtalang (ORCID: https://orcid.org/0009-0002-8278-3493)
- Wongsakorn Wongsaroj
- Satit Mangkalajan (ORCID: https://orcid.org/0000-0001-9065-4291)
- Jirayut Hansot (ORCID: https://orcid.org/0009-0004-4059-0129)
- Thaksin Sangsuwan (ORCID: https://orcid.org/0009-0009-4554-1584)
- Agkapon Pongmanee (ORCID: https://orcid.org/0009-0002-2796-1488)
Institutions
- Suranaree University of Technology (TH)
- King Mongkut's University of Technology North Bangkok (TH)
Publication Details
- Journal
- Automation
- Published
- 2026-12-01
- DOI
- https://doi.org/10.3390/automation7060205
- Primary Topic
- Fuzzy Logic and Control Systems
- Type
- article
- Field-Weighted Citation Impact
- 0.00