Control logic in ST and ladder
Start-up sequences, interlocks, pump and motor control, and alarm handling with TON and TOF timers.
02 · LIC-101 · PLC control
Designing and programming control logic to IEC 61131-3: Structured Text and ladder, PID loops, interlocks and state machines, backed by field work on instruments and loop checks.
A good PLC program is not judged by whether it runs, but by what it does when something breaks. I write control logic in Structured Text with structure: clear state machines, safety interlocks, timers that stop chattering, and names the next engineer can read. I also built the ST Lab, which runs IEC 61131-3 programs in the browser.
Start-up sequences, interlocks, pump and motor control, and alarm handling with TON and TOF timers.
Level, pressure, flow and temperature control, with tuning and integral anti-windup.
HART transmitter calibration, loop checks, and wiring 4-20 mA signals to PLC inputs correctly.
Readable, documented programs, and ST exported to SCL ready for TIA Portal.
The problem, the result you need, the existing equipment and the constraints, on a call or a visit.
Reading things as they are: panels, instruments, cables and network, before any design.
Scope, deliverables, time and cost in writing, before work starts.
Built in stages, each part tested before moving on to the next.
Commissioning on site, documentation, and training for the people who will run it.
A free online PLC simulator for Structured Text (IEC 61131-3): write ST code, run it on six virtual processes in your browser, see it as a live ladder diagram or build it in ladder and get ST, then export it to Siemens SCL and share it with a link.
Open toolFY-102Scale current to engineering units and check the loop voltage budget.
Open toolA CODESYS Structured Text program that runs red, yellow and green for two directions from a one-second TON timer and a down counter, written three ways, with…
A set of small ST programs on a simulated PLC: timer and counter blinkers, up/down control with end limits, a two-input interlock, a four-output sequential…
A high-level textual language in IEC 61131-3 that resembles Pascal. It suits calculations, complex logic and state machines, is supported by most modern PLCs, and Siemens calls it SCL.
Ladder is great for simple discrete logic that maintenance technicians follow on screen. ST is better for maths, loops, arrays and state machines. Many projects use both.
The PLC reads all inputs, executes the program top to bottom, writes the outputs, and repeats every few milliseconds. Understanding it prevents classic bugs such as reading a value from the previous scan.
Yes. The ST Lab in the workshop runs your program against a virtual tank on a 50 ms scan and exports it to SCL.
Write a few lines about the site and what you need; your request reaches me immediately.
Describe the problem, intended outcome, hardware or software, project location and proposed timeline. Requirements and scope are agreed after reviewing the details.