Process control: a tank, its level and its alarms
Read an analogue level sensor and turn its voltage into a percentage, keep the level between two thresholds with a pump (hysteresis), and raise a high-level alarm that flashes, sounds and waits to be acknowledged.
You need IF, the latch and timers: chapters 1–8 of PLC from zero teach them.
Chapters
How the course works
Structured Text (IEC 61131-3), the language used by industrial engineering environments such as TwinCAT 3 and CODESYS. PLC Studio and the Trainer T8 are VisoTrain’s own training tools. TwinCAT is a registered trademark of Beckhoff Automation GmbH. CODESYS is a registered trademark of CODESYS GmbH. VisoTrain is not affiliated with or endorsed by them.
Syllabus
Level: Intermediate · Time: about 2 hours · You need: IF, latch and timers (chapters 1–8 of PLC from zero).
You learn: analogue input scaling with REAL, hysteresis control, filtering with a timer, the alarm sequence with acknowledge.
Chapter 1: Read the level: an analogue input
- A tank in a real plant: Say what level control and a process alarm are for.
- Analogue signals: from volts to per cent: Turn the number of an analogue input into a level in %, with REAL.
- Lab in PLC Studio: program this part and pass the automatic tests.
Chapter 2: The pump: control with hysteresis
- The pump: hysteresis: Control the pump with two thresholds and no ELSE.
- Lab in PLC Studio: program this part and pass the automatic tests.
Chapter 3: High-level alarm with acknowledge
- The alarm sequence: Raise, acknowledge and clear an alarm the way process plants do.
- Lab in PLC Studio: program this part and pass the automatic tests.
Frequently asked questions
How do you scale an analogue input in a PLC?
Convert the raw value (0–32767 on a 16-bit card) to REAL and apply the rule of three: % = raw × 100 / 32767.
What is hysteresis in level control?
Two thresholds instead of one: the pump starts below the low one and stops above the high one, so it does not switch on and off all the time.