Skip to content

02 · LIC-101 · PLC control

PLC programming and control logic in Structured Text

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.

What I do

01

Control logic in ST and ladder

Start-up sequences, interlocks, pump and motor control, and alarm handling with TON and TOF timers.

02

PID loops and tuning

Level, pressure, flow and temperature control, with tuning and integral anti-windup.

03

Field instruments and loops

HART transmitter calibration, loop checks, and wiring 4-20 mA signals to PLC inputs correctly.

04

Documentation and Siemens TIA export

Readable, documented programs, and ST exported to SCL ready for TIA Portal.

Working with me

What you receive

  • A documented PLC program in ST or ladder, with comments explaining each part
  • The I/O list and the signal map
  • PID loop settings after tuning
  • Loop-check results for every signal
  • An SCL version ready for TIA Portal when needed

How the work goes

  1. Understand the need

    The problem, the result you need, the existing equipment and the constraints, on a call or a visit.

  2. Survey the site or drawings

    Reading things as they are: panels, instruments, cables and network, before any design.

  3. A written proposal

    Scope, deliverables, time and cost in writing, before work starts.

  4. Build and test

    Built in stages, each part tested before moving on to the next.

  5. Commission and hand over

    Commissioning on site, documentation, and training for the people who will run it.

Standards

IEC 61131-3ISA-5.1ISA-88NAMUR NE43

Technologies & skills

Structured TextLadderFBDSiemens S7 · TIA PortalAllen-BradleySchneiderPIDHART

Try it yourself

Projects demonstrating this expertise

Related articles

Terms

FAQ

What is Structured Text?

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.

When should I use ST and when ladder?

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.

What is the PLC scan cycle?

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.

Can I test a PLC program without hardware?

Yes. The ST Lab in the workshop runs your program against a virtual tank on a 50 ms scan and exports it to SCL.

Have a project in this area?

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.

Send a request