One production line, four PLC brands: where AI integration actually stops
A real line, not a slide: an S7-1500 running the main sequence, two imported machines on CompactLogix and TwinCAT, and a packaging cell on a Mitsubishi FX. Three engineers, three IDEs, three file formats. Nobody on site
A real line, not a slide: an S7-1500 running the main sequence, two imported machines on CompactLogix and TwinCAT, and a packaging cell on a Mitsubishi FX. Three engineers, three IDEs, three file formats. Nobody on site can open all four programs.
Ask "can an AI agent work on this line?" and the usual answer is about the model β bigger context window, better reasoning, more tools. That is not where it stops. It stops at whether each vendor ships a programmable engineering interface: an API that can create objects, compile, and export. Four of the six major platforms do. Two don't, and no prompt fixes that.
This is a map of that boundary, checked against vendor documentation on 2026-10-27. I did not install and end-to-end test every ecosystem listed, so there are no performance numbers here β only "can this layer be driven by code, and how far".
Three shapes of "mixed brand"
The phrase hides three very different problems, in increasing order of difficulty.
- OEM cells, each with its own controller. You bought the machine, not the source. The programs live with the supplier, and your agent has nothing to read.
- Old line plus new line. An S7-300 nobody dares to touch, an S7-1500 next to it, and a Rockwell cell connected over OPC UA or a gateway. Two engineering files, two lifespans.
- Post-acquisition integration. Four plants, four standard platforms, one MES that has to talk to all of them.
All three lead to the same conclusion: there is no "one agent runs the whole line". Not because models are weak, but because the engineering layer β the place where a program is created, compiled and downloaded β is vendor-private by design.
Separate two things first: changing the program, or reading the process
This is the part most "AI for PLC" demos skip. What an agent can do in a plant is limited by three layers:
| Layer | What it can do | What it needs | Can an agent close the loop? |
|---|---|---|---|
| Engineering (write) | create blocks, edit logic, configure hardware, compile, export | a vendor engineering API (Openness, Automation Interface, L5X, CODESYS scripting) | Yes: edit β compile β read errors β edit again |
| Runtime (read/write) | read variables, write setpoints, watch state | a protocol (OPC UA, Modbus, MC, FINS, ADS) | Partly: values move, program structure does not |
| Text (no landing) | generate a snippet for you to copy | a chat box | No: if it doesn't compile, nobody finds out |
Almost every demo stops at the third layer, because the third layer needs no interface at all. The engineering value is entirely in the first: the agent writes, the compiler says no, the agent fixes it, the program runs in a simulation, and the result is read back and reconciled against the project.
So the useful question when someone asks "can we use AI on this vendor's line?" is one sentence long: does the vendor let you call "create object, compile, export" from code? If yes, the loop can close. If no, the agent is a reader.
Six platforms, one column that decides everything
| Vendor | Engineering tool | Engineering-level API | Runtime protocol | Practical read |
|---|---|---|---|---|
| Siemens | TIA Portal | Openness (.NET API: create objects, import/export, compile) | S7, OPC UA | The most complete. Third-party MCP gateways are mature enough to run commercially |
| Rockwell | Studio 5000 Logix Designer / FactoryTalk Design Studio | L5X (XML import/export); Design Studio is a browser IDE with a built-in assistant | EtherNet/IP (CIP) | Two doors: older projects via L5X text exchange, new ones inside a cloud IDE that ships its own AI |
| Beckhoff | TwinCAT 3 XAE | Automation Interface (COM automation, documented) plus XML import/export | ADS, EtherCAT | The veteran engineering API; the community has built a lot on it, and the vendor ships its own agent add-on |
| CODESYS family (WAGO, Bosch Rexroth, Festo and others) | CODESYS | Scripting plus PLCopen XML import/export | OPC UA | One interface, many hardware brands β the best value segment on a mixed line |
| Mitsubishi | GX Works3 | Project format is private; no equivalent engineering API in public material | MC protocol (runtime) | Read and monitor only; community projects parse project files for read-only analysis |
| Omron | Sysmac Studio | Same: no public engineering API | FINS (runtime) | Same: read/write values, never structure |
Read the third column as a yes/no gate. On the first four platforms an agent can be allowed into "edit the program". On the last two, do the reading and monitoring work first and keep agents away from program structure.
One more observation from looking at the open-source side: the MCP servers for PLC work are almost all single-vendor, and none of them claims to cross brands. That is not a gap in ambition β it is the interface being private. Cross-brand has to be assembled one layer up, and every backend needs its own regression tests.
What compiling proves, and what reading runtime never proves
This is why the layer matters more than the model:
| Engineering layer | Runtime layer | |
|---|---|---|
| Declares every name, checks types, catches literals out of range | Yes (compiler) | No |
| Reports that a function block is called with inputs it doesn't have | Yes | No |
| Can change program structure at all | Yes | No |
| Can read actual process values | Via simulation or OPC UA | Yes |
| Tells you whether the step timing matches your machine | No β that's the spec review | No |
| Tells you whether the stop circuit reads TRUE when healthy | No β that's the I/O check | No |
The bottom two rows are the reason a compile-passing program still gets reviewed by a human against the spec, line by line. Compilation proves it is a program. Running it in a simulation proves it moved. Neither proves it is right for that machine.
Three architectures, three different bills
A. One agent, several MCP backends. Keep the agent you already use; attach a backend per brand: one for the Siemens segment, one for TwinCAT, and for the Mitsubishi cell only a runtime reader. One interface for the engineer, one acceptance standard. The bill: every backend needs its own regression suite, and you accept that some segments stay read-only.
B. Exchange formats in the middle. Don't drive each IDE. Export the project as text: SimaticML for Siemens, L5X for Rockwell, PLCopen XML (IEC 61131-10) across vendors. Excellent for bulk review, migration and documentation.
The bill has to be said out loud: exchange formats always lose vendor features. Process objects, AOIs, TcCOM modules β export and re-import and the shape changes. So this route is good for reading and analysing, not for "edit, push back, go live".
C. Read-only first, unified. Everything over OPC UA (plus Modbus/MC/FINS where needed). The agent screens data, writes setpoints, triages alarms. Fast, low risk, and permanently outside the engineering layer.
In practice it is C as the floor and A as the increment: prove value with read-only, then open the write door on the lowest-risk segment β usually the Siemens or the CODESYS one.
The Siemens segment as the template
On most mixed lines Siemens is the majority, with a few other brands around it. That makes the Siemens segment the natural place to build a closed loop and copy the pattern outward.
That segment can be done with the TiaLink TIA Portal MCP gateway:
-
Shape: an MCP gateway exposing a
/mcp(Streamable HTTP) endpoint that wraps Openness capabilities as tools. - Deployment: the gateway must run on the same machine as TIA Portal β Openness only runs where TIA Portal is installed. MCP clients on other machines reach it over the LAN, so project data does not leave the plant network.
- Capabilities: hardware and network configuration, creating FB/FC/DB/UDT, writing SCL, compiling, downloading to S7-PLCSIM Advanced, and reading the project back to reconcile.
- Boundaries: TIA Portal V17 / V18 / V19 / V20 / V21; Siemens only β it does not cross brands; it is not tied to any particular agent; and it does not decide what the program should be designed to do.
The reconciliation step is the one people skip. "The lamp came on" is not evidence. Reading the key variables back after a scenario and comparing them to expected values is evidence you can paste into a review record β the same discipline as any other automated test.
Acceptance checklist for a mixed line
- Write down the layer per segment. Engineering-write, runtime-read, or text-only. If a segment is text-only, say so before anyone promises AI help there.
- Test the interface, not the demo. One scripted call per vendor: create an object, compile it, export it. If that fails, everything above it is theatre.
- Keep the brand out of the agent's head. One backend per brand, one tool surface per backend; don't ask the model to remember which vendor's literal syntax it is writing this minute.
- Simulate before download. S7-PLCSIM Advanced or the vendor equivalent, run the scenario, read back the variables, compare.
- Guard the write path. Dry-run, then compile, then download, then read back; roll back on failure. A model that can write to a live controller without those gates is not a tool, it is an incident.
- Re-run the regression after every vendor tool upgrade. These interfaces are private and they change β the TIA Portal version alone changes what Openness will accept.
What this framing does not solve
- There is no single agent for a mixed line. There is one agent with several backends, and the seams are yours to maintain.
- Exchange formats are lossy. Good for analysis and migration, not for round-tripping production programs.
- Vendor agents are single-brand. Siemens, Rockwell, Beckhoff and Schneider all ship their own assistants; each one is scoped to its own platform, so a four-brand line ends up with four assistants that don't talk to each other β which is more work than none.
- Safety is not in this conversation at all. Standard PLC code is never a safety function. Anything that protects a person belongs in a safety function designed to ISO 13849 or IEC 62061, implemented with safety-rated components.
If you want one action out of this: pick the lowest-risk segment, close the loop there (create β compile β simulate β read back), and measure how many review findings come from the machine instead of from a colleague reading code at 11pm. Then decide whether the second segment is worth the bill.
Cover: Blue Grass Chemical Agent-Destruction Pilot Plant control room, US Army / CMA, CC BY 2.0, via Wikimedia Commons. The interface facts were checked against vendor documentation on 2026-10-27; no end-to-end installation test of each ecosystem was performed.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.