Resources
Writing for people who program machines
Scan cycles, timers and analogue scaling first, then the ground where answers online get thin: safety, drives, fieldbus, panels, and what AI really does in this trade.
133 articles across 15 topics
Free online PLC simulator: what it should do and how to use one
A hands-on guide to simulating a PLC in the browser: what an honest simulator has to model, a step-by-step run through the LADV lab, and where a browser simulator stops being useful.
Fundamentals13
How a virtual PLC works: inside one scan
The mechanism of a software PLC, from the input image to the watchdog: the scan clock, catch-up in a throttled browser tab, tasks, RETAIN, warm and cold restart, and fault codes, with the real numbers from the LADV runtime.
8 min read
PLC tasks and the watchdog: cyclic, event and continuous, and what a fault does
How PLC tasks start (cyclic, event, continuous), how one CPU shares its time between them, and what a watchdog fault is, with a two-task program and the LADV behaviour as a worked example.
8 min read
How to force a PLC input or output, and how force differs from modify
What forcing does in the I/O image, how it differs from a one-off modify, why forces persist, the safety discipline around them, and how to practise on a virtual PLC.
8 min read
Logic gates in ladder logic: AND, OR, NOT, NAND, NOR, XOR, XNOR
Every logic gate as a ladder rung with its truth table, why NAND and NOR are drawn the way they are, and how XOR on bits differs from XOR on words.
9 min read
What actually happens in one PLC scan
Read inputs, solve logic, write outputs, repeat. Plus the three details in that sentence that cause most of the bugs beginners write.
7 min read
The output image: why your coil did not work
A coil sets a bit in memory, not a terminal. Understanding when that memory reaches the real world explains a whole class of bugs.
6 min read
Instructions13
Studio 5000 MSG instruction: path, setup and error codes
How to set up a Studio 5000 MSG instruction: message types, the communication path, connected and cached messages, and what each .ERR and .EXERR code means.
10 min read
Sequencer instructions, and the state machine that replaced them
SQO, SQI and SQL, what they were for, why they are rare in new code, and what to write instead.
6 min read
FIFO and LIFO: tracking parts that are already moving
Load, unload, and the shift register they compete with. Where a queue is the right model, and where it silently loses a part.
6 min read
Bit shift registers, and the conveyor they were made for
BSL, BSR, the shift bit that must be a one shot, and why the pitch of the conveyor decides the length of the register.
6 min read
Indirect addressing: one rung instead of forty
Indexed access, the loop that replaces copied logic, and the out of range fault that takes the controller down.
7 min read
User defined types: naming the thing instead of the address
What a UDT buys, how to decide what goes in one, and the versioning problem on a live system.
7 min read
Analog & I/O4
Analog scaling: turning 4-20 mA into something you can read
The arithmetic is two lines. The part that catches people is what the raw counts actually are on your controller, and what happens below 4 mA.
6 min read
Sinking and sourcing, settled
Two words that describe which way current flows, and a reliable way to stop guessing which one you need.
6 min read
RTD or thermocouple: choosing a temperature sensor
Two technologies with different failure modes, and a straightforward rule for which to use.
6 min read
Wiring I/O without creating problems for later
A short list of practices that make the difference between a panel that is easy to fault-find and one that is not.
6 min read
Platforms10
LADV100 vs LADV200 vs LADV300: which virtual PLC to learn on
The three live Wartens LADV series side by side: I/O, memory, scan time, modules and which twin each suits, with a plain rule for choosing and a note on the planned LADV400.
5 min read
The future of virtual PLCs, 2026 to 2030
Where software-defined control is heading: vendor virtual controllers, IEC 61499 portability, O-PAS, containers, time-sensitive networking, virtual commissioning and AI-assisted programming, and what is unlikely to change.
8 min read
FB vs FC in TIA Portal: which block to use, and why
An FC has no memory; an FB keeps its data in an instance DB. What that means for timers, edges, outputs and retain, with SCL for S7-1200 and S7-1500.
11 min read
CODESYS on a Raspberry Pi: install, licence and a first program
Install CODESYS Control for Raspberry Pi SL with Deploy Control SL, choose SL, MC SL or 64 SL, understand the two-hour demo and run a first program.
9 min read
Siemens and Allen-Bradley do not just differ in syntax
Moving between the two platforms is less about learning new mnemonics and more about two genuinely different mental models of what a program is.
8 min read
CODESYS: the PLC platform you are probably already using
Hundreds of hardware brands run the same runtime underneath, which matters more than most engineers realise.
7 min read
Migration4
L5X file: what it is and how to open, edit or convert one
An L5X is Studio 5000's XML export. What is inside it, how it differs from L5K and ACD, and how to open, import, hand-edit or convert one safely.
8 min read
PLC-5 to ControlLogix: what the converter will not do for you
Rockwell's migration tool handles the mechanical part and leaves markers everywhere else. Here is what those markers actually mean.
9 min read
SLC 500 to CompactLogix: the smaller migration nobody plans for
Less famous than the PLC-5 route and more common, with its own set of things that do not carry across.
7 min read
Moving a program between vendors, honestly
There is no automated path from Siemens to Rockwell, and understanding why explains what to plan for instead.
8 min read
Languages6
Structured Text examples: 12 complete IEC 61131-3 programs you can run
Twelve complete Structured Text programs from a seal-in to a two-task program, each with its purpose, what to watch when it runs and the classic mistake.
12 min read
What does IEC 61131-3 compliant mean? Editions, statements and PLCopen
What an IEC 61131-3 compliance statement is, how the editions and PLCopen levels differ, why two compliant products still behave differently, and how to read a vendor's table.
9 min read
Ladder logic to Structured Text: converters, rules and pitfalls
How a rung becomes Structured Text, the rules a converter must follow for timers, edges and latches, and the rungs that convert wrongly unless you test them.
10 min read
The five IEC 61131-3 languages, and when each is right
One standard, five notations. Most projects use two, and choosing badly makes a program nobody wants to maintain.
7 min read
Structured Text for people who think in ladder
The translation is mostly mechanical, and four constructs cover the majority of real code.
7 min read
Sequential Function Chart: when your machine has steps
SFC makes 'which step are we on' a first-class question instead of something you infer from a pile of bits.
6 min read
Networking12
MB_CLIENT in TIA Portal: Modbus TCP setup and STATUS codes
Set up MB_CLIENT on an S7-1200 or S7-1500: the connection, MB_MODE and addressing, polling several blocks, and what every STATUS code means and how to fix it.
11 min read
Modbus exception codes: what 01 to 0B mean and how to fix each
Every exception code in the Modbus specification: what the server is telling you, the usual cause on site and what to change, with real frames.
10 min read
Unified namespace: the idea, and what it does not solve
One broker, one hierarchy, every system publishing and subscribing. Why it beats point to point integration, and the three things it does not fix.
8 min read
MQTT Sparkplug or OPC UA: pick by where the data is going
One is a session between two machines, the other is a broadcast to a plant. The comparison people make, and the one they should.
8 min read
Diagnosing a PROFINET network that mostly works
Device names, update times, the difference between a lost frame and a lost device, and the tooling that finds intermittent faults.
7 min read
IO-Link: what it is, and the two reasons to use it
A point to point digital link to a sensor, parameter storage on the master, and diagnostics from devices that used to have none.
7 min read
Safety9
Cause and effect matrix: how to write one for control and safety
How to lay out, read and test a cause and effect matrix for interlocks and trips, including voting, latching, reset and bypass, with a worked example.
11 min read
SIL or PL: which one does your machine need?
Two standards, two scales, and one machine. Which one applies, how they map to each other, and why the answer is usually ISO 13849.
8 min read
Categories B, 1, 2, 3 and 4, in plain terms
Five architectures, what a single fault does to each, and the practical wiring that goes with them.
7 min read
Safety relay or safety PLC: how to decide
One is a wiring decision, the other is a programming one. The count of safety functions, not the size of the machine, is what settles it.
7 min read
Stop categories 0, 1 and 2, and why an E-stop is not a guard
Three stop categories, what each removes, and the reason a normally closed E-stop reads true when everything is healthy.
7 min read
Programming a safety PLC without inventing anything
Certified blocks, restricted logic, and the discipline that separates a safety program from an ordinary one.
7 min read
HMI & SCADA8
Free HMI software: what you can use, and on what terms
FUXA, Rapid SCADA, Node-RED, Ignition Maker Edition and the free panel editors compared by licence, limits and hardware lock-in, from their own pages.
8 min read
ISA-101: the grey screen that finds faults faster
Why a high performance HMI is deliberately dull, what colour is reserved for, and the evidence behind it.
8 min read
Alarm rationalisation: how to cut a list nobody reads
The questions that decide whether something is an alarm, the priorities that survive contact with an operator, and the paperwork that makes it stick.
8 min read
Alarm floods: why one fault produces two hundred alarms
Where floods come from, the four mechanisms that suppress them, and why shelving needs an expiry.
7 min read
How many HMI screens, and what goes on each
Four levels, the navigation that connects them, and the test for whether a screen earns its place.
6 min read
HMI colour: what each one should mean, and how many you need
A palette an operator can learn, why red for running is a trap, and the accessibility problem nobody checks.
6 min read
Drives & Motion6
The twelve VFD parameters that actually matter
A drive has hundreds of parameters and a dozen decide whether the motor runs properly. Which ones, in the order to set them.
8 min read
Six ways a drive commissioning goes wrong
Cable length, shielding, ramp times, the missing brake resistor, motor rotation, and the autotune nobody ran.
7 min read
VFD or soft starter: what each one is actually for
One controls speed, the other only controls starting. The cost, panel space and process questions that decide it.
6 min read
Encoders: incremental, absolute, and the wiring that fails
Quadrature, single turn and multi turn absolute, the difference between resolution and accuracy, and why the marker pulse exists.
7 min read
Tuning a servo without a control theory degree
The three loops, what inertia ratio does to all of them, and a tuning order that converges.
8 min read
Electronic gearing and camming, and when you need either
Following a master axis in a ratio, following it through an arbitrary profile, and the registration problem both exist to solve.
7 min read
Instrumentation5
HART: digital data on the same wires as the 4-20 mA
How a digital signal rides on an analogue loop, what it gives you that the current does not, and why most installations never use it.
7 min read
Choosing a level measurement that will still work in a year
Radar, ultrasonic, hydrostatic, capacitance and load cells, and the process property that rules each of them out.
8 min read
Flow meters: which technology, and what it will not measure
Electromagnetic, Coriolis, vortex, ultrasonic, turbine and differential pressure, with the conductivity, viscosity and straight run each demands.
8 min read
Loop powered transmitters, and the voltage budget nobody calculates
Two wires carrying power and signal, the compliance voltage arithmetic, and why adding a display stops the loop working.
6 min read
Intrinsic safety, zones, and what Ex ia actually promises
Hazardous area classification, the difference between intrinsic safety and flameproof, and the entity parameters that must match.
8 min read
Panel & Electrical7
Free control panel design software: electrical CAD compared
QElectroTech, ProfiCAD Home, the SEE Electrical trial and LADX CAD compared on licence, page limits, cross references, BOMs and DXF, from each vendor's pages.
7 min read
Control panel wire colour codes: NFPA 79 vs IEC 60204-1
Which colour each conductor gets under NFPA 79 (2024) and IEC 60204-1, clause by clause, what is mandatory, and a legend for a panel built for both.
8 min read
Laying out a control panel that can be worked on
Segregation, heat, access and the wiring that has to be traced at two in the morning by somebody who did not build it.
8 min read
Sizing an enclosure for the heat inside it
Adding up the load, what an enclosure dissipates on its own, and the decision between a filter fan, a heat exchanger and a cooler.
7 min read
Electrical noise: where it comes from and how to stop it
Capacitive and inductive coupling, the separation that works, screen termination, and the analogue input that reads correctly until the drive starts.
7 min read
Earthing and bonding, and the difference between them
Protective earth, functional earth, the star point, and why an earth measured at 0.4 ohms can still cause a fault.
7 min read
Compliance7
Factory acceptance test checklist for a PLC control panel
A FAT checklist you can copy for a PLC panel: documents, inspection, power-up, I/O point by point, interlocks, alarms, HMI, safety, failure modes, sign-off.
9 min read
Functional design specification for a PLC system: what goes in it
What a functional design specification for a PLC control system contains, section by section, with a worked sequence table and one requirement traced to FAT.
11 min read
GAMP 5 for control engineers, without the consultancy
Software categories, the V model, risk based effort, and what actually changes about how you write and test a PLC program.
8 min read
21 CFR Part 11 where the PLC is concerned
Electronic records, electronic signatures, audit trails, and the parts a controller genuinely has to satisfy.
8 min read
ISA-88 in practice: recipes, equipment and the separation between them
The physical and procedural models, why a recipe should not name a valve, and what a phase actually is.
8 min read
ISA-95 levels, and where your data actually has to go
Levels 0 to 4, what belongs at each, and why the level 3 gap is where most integration projects live.
7 min read
AI8
Can AI write PLC code that works? Compile it, run it, then review it
AI writes plausible PLC code; checking makes it usable. How LADX validates Structured Text, loops errors back, runs it on a virtual PLC, and what still needs a human.
8 min read
Best AI for PLC programming in 2026: how to choose and test one
Vendor assistants, MCP servers, specialist apps and general models compared on what each can see and change, plus a test you can run on any of them.
9 min read
TIA Portal and CODESYS MCP servers: what they do, and the risks
What the Model Context Protocol is, what the CODESYS and TIA Portal MCP servers can read and change, and the controls to set before you connect one.
10 min read
Why ChatGPT writes ladder logic that does not run
General models are good at the shape of PLC code and bad at the parts that matter. Here is what they get wrong, and what has to sit around them.
8 min read
Agentic AI on the plant floor: what is actually running
Every vendor has announced one. A smaller number have deployed. Here is what is genuinely in production, and what the word is doing in those sentences.
10 min read
Running a local model for PLC work
Most OT networks have no internet access, which makes local models the only option rather than a preference.
8 min read
Practice21
Learn PLC programming free: a 30-day plan with no hardware
A 30-day plan to learn PLC programming at home for free: ladder fundamentals, four virtual PLC machines, Structured Text and a small project, all in a browser.
10 min read
Virtual commissioning explained: testing PLC code before the machine exists
What virtual commissioning is, the model, software and hardware in the loop levels, what a plant model needs, the tools used and a small version you can run today.
8 min read
Teaching PLC programming with digital twins: objectives, faults and a lesson plan
How instructors can teach PLC programming with digital twins that mark the program themselves, with how objectives work, a module structure, assessment advice and a lesson plan.
8 min read
PLC ladder logic practice problems with solutions you can run
Nine graded ladder logic exercises, each with a spec, a worked solution, a scan-by-scan explanation and the wrong answer most people write first.
11 min read
Traffic light ladder logic: a PLC program you can run and test
A four-way junction in 25 rungs: a step machine with amber and all-red clearance, a flash mode, a conflict check, and a test table for every step.
9 min read
PLC interview questions and answers: what interviewers listen for
Twenty-five PLC interview questions grouped by level, each with a model answer, the reasoning the interviewer is listening for, and the answer that loses marks.
10 min read