PLC Training

What Is PLC Programming, and Why Learn It

Shahul Hameed
Updated
5 min read
What Is PLC Programming, and Why Learn It

Video coming soon, subscribe to EDWartens YouTube

The machine

A programmable logic controller is an industrial computer built to do one thing without stopping: read inputs, run a program, write outputs, repeat. It does that cycle thousands of times a minute, for years, in a cabinet on a factory floor at forty degrees with vibration and electrical noise around it.

That last part is most of why PLCs exist rather than ordinary computers. A PLC does not have an operating system that decides to update itself. It does not swap tasks unpredictably. It runs your program, in order, every scan, at a rate you can measure. In a machine where a wrong output at the wrong moment injures somebody, that predictability is the whole product.

The scan

Everything about programming one follows from the scan cycle.

The controller reads the physical state of every input and copies it into memory. It executes your program from the first rung to the last, using that snapshot. Then it writes the results to the physical outputs. Then it does it again.

This has consequences that trip up every beginner. Your program does not react to an input the instant it changes; it reacts on the next scan. Rung order matters, because a value written in rung 50 is not visible to rung 10 until the following scan. And a program that takes too long to scan is a program that responds late.

Once the scan is genuinely in your head, most PLC behaviour stops being mysterious.

What the programming looks like

The IEC 61131-3 standard defines several languages. In practice you will spend most of your time in two.

Ladder logic looks like a relay wiring diagram: power rails down each side, contacts and coils between them. It is read by maintenance electricians as well as engineers, which is exactly why it has survived. A fault at two in the morning is found by somebody watching which contacts are true, and ladder makes that visible.

Structured text is ordinary procedural code, loops, conditions, functions. It is better for calculation, string handling and anything with real arithmetic in it, and worse for anything somebody needs to troubleshoot at a glance.

Good programs use both, deliberately. Sequences and interlocks in ladder because they get debugged live. Maths and data handling in structured text because ladder makes that painful.

You will also meet function block diagram, common in process work, and sequential function chart for step sequences.

What the job is actually like

Less typing than people expect.

A large part of it is reading: drawings, I/O schedules, an existing program somebody wrote nine years ago and did not comment. Understanding what a machine is supposed to do before you change what it does is most of the skill.

A large part is testing. You force an input and watch what happens. You step a sequence and check it recovers from a stop halfway through. You break things deliberately to see whether the interlock holds.

And a large part is being the person standing at the panel when the line is down and production is waiting. That pressure is real, and it is also why the job pays what it does. The engineer who stays methodical when everyone wants a guess is the one who gets the fault.

Why it has lasted

PLC programming was supposed to be automated away several times over. It has not been, for reasons that are structural rather than lucky.

Every plant is different. The equipment, the sequence, the interlocks and the safety case are specific to that machine in that factory. There is no generic program.

The consequences are physical. Software that moves a two-tonne press is not software you deploy on a Friday and patch on Monday. That keeps the bar high and the work deliberate.

And the installed base is enormous and long-lived. Controllers commissioned in the 1990s are still running, and somebody has to maintain, retrofit and eventually replace them.

The tools have changed a great deal in forty years. The job has not changed as much as the tools.

Who it suits

People who like finding out why something is doing what it is doing. That instinct matters more than a particular degree.

It suits people who are comfortable with hardware, you will be in panels, with a meter, tracing wiring, and people who can be careful under pressure without becoming slow.

It suits people from mechanical, electrical, electronics, instrumentation and mechatronics backgrounds roughly equally. Electrical and instrumentation graduates start with an advantage on wiring and signals; mechanical graduates often understand the machine better. Both gaps close within months.

It suits people who are willing to work where the plant is. That is not always a city.

It does not particularly suit people who want to work entirely from a desk, or who dislike being called when something breaks.

Where to start

Learn the scan cycle properly, before any syntax.

Learn ladder on one platform until it is comfortable, Siemens TIA Portal or Rockwell Studio 5000 are the two most worth knowing in India. Both have free or low-cost simulation.

Build sequences that recover from a stop, because that is what separates working logic from logic that only works when nothing goes wrong.

Then get your hands on real hardware as early as you can. A program that has only ever run against a simulator has never met a sensor that was slightly misaligned, and that is where the actual learning is.

Start Your Engineering Career at EDWartens

Join as a Junior Engineer at Wartens Automation Pvt Ltd. Get hands-on PLC SCADA training, industry certifications, and a 100% Job Guarantee backed by a 100% refund policy.