AI PLC: deterministic control code generation, 3D verification, and non-invasive diagnostics
Combining artificial intelligence with Programmable Logic Controllers (PLCs) requires strict separation between AI assistance and deterministic shop-floor execution. DualSoft provides a two-track AI PLC architecture: AI tools author formal DS2 control models via MCP for 3D verification and IEC 61131-3 output, while read-only sequence-guided AI diagnoses running PLCs without editing controller code.
On this page
Why AI PLC must separate AI assistance from deterministic execution#
Factory controllers run real motors, clamps, robots, and safety interlocks under hard real-time scan cycles. Asking a general-purpose language model to write raw Ladder Logic directly risks missing interlocks, race conditions, and inconsistent vendor tags. A safe AI PLC architecture keeps probabilistic AI strictly outside live safety and scan loops: AI drafts structured control intent or analyzes read-only operating logs, while deterministic compilers, simulations, and engineer-reviewed PLC commissioning govern shop-floor execution.
Track one: AI PLC programming via DS2, MCP, and 3D verification#
Instead of generating fragile vendor-specific ladder rungs from scratch, engineers and AI agents author compact, human-readable DS2 control text using 10 read-only Web MCP discovery tools and 10 published line examples in DS Studio PLAY. The compiler produces one sealed Structured Data Format (SDF) revision and Control IR, checks static rules, and lets teams verify sequence timing and interlocks in 3D across MILS, SILS, and HILS boundaries before deriving IEC 61131-3 Structured Text, Ladder, GRAFCET drawings, and standard AASX packages from the same source hash.
Track two: Non-invasive AI PLC diagnostics on running lines#
Most plants already operate multi-vendor PLC lines where modifying running programs for analytics is unacceptable. DualSoft's DS Pilot and Equipment Doctor AI read archived ON/OFF PLC signal logs without modifying live PLC code. Sequence decoding pairs actuator commands with completion sensors and splits each station cycle into active assembly, next-part preparation, and arrival wait zones before applying unsupervised AI (Isolation Forest) so maintenance teams distinguish internal jams from feeder delays, external line starvation, and chronic actuator wear.
Verification scope, standards alignment, and acceptance boundaries#
Every AI PLC stage states what it actually proves. Model simulation, static compilation, and AASX package checks verify design logic and file conformance, while vendor PLC IDE import (Vendor PLC IDE import not executed Not yet checked) and physical shop-floor commissioning (Physical commissioning outside this reference scope Not yet checked) remain explicit project-scoped engineering acceptance steps. Reverse-engineered PLC observations and forward-authored DS2 logic stay separated so field evidence never overwrites reviewed control intent silently.
General LLM Raw Code vs DualSoft AI PLC Architecture#
| Dimension | General LLM Raw Ladder/ST | DualSoft AI PLC (MCP · DS2 · 3D · Field AI) |
|---|---|---|
| Determinism & Safety | Probabilistic output; risk of missed interlocks or races | AI stays outside live scan/safety loops; deterministic compiler & PLC own execution |
| Pre-Deployment Check | Unverified text snippets with no timing or 3D check | Static rule checks + 3D verification across MILS → SILS → HILS boundaries |
| Standards & Multi-Vendor | Vendor-locked snippets; drawings drift from code | One DS2 revision emits IEC 61131-3 ST/LD, IEC 60848 GRAFCET, and AASX |
| Live PLC Diagnostics | Often requires invasive controller edits for analytics | DS Pilot & Equipment Doctor AI diagnose read-only PLC logs with zero PLC edits |
| Asset Management (AAS) | Control logic disconnected from asset records | Linked directly to IEC 63278-1 / IDTA AASX and SequenceControlData submodels |
Note: static code exports and simulations validate model logic and format rules; vendor PLC IDE import and physical commissioning remain separate project acceptance steps.
DualSoft Two-Track AI PLC Engineering & Operations Matrix#
| Track | Lifecycle Phase | Product & Protocol | Input → Core Output | Safety Boundary |
|---|---|---|---|---|
| Track 1 · AI PLC Authoring | Design & Verification | DS Studio · PLAY · MCP | Process intent / DS2 → 3D check · IEC 61131-3 · GRAFCET · AASX | Offline/virtual check before engineer review |
| Track 2 · AI PLC Diagnostics | Live Plant Operations | DS Pilot · Equipment Doctor AI | Read-only PLC logs → 3-zone split · delay root cause · wear alerts | Zero edits to live PLC code (Read-Only) |
| Standard Asset Link | Lifecycle Exchange | AAS Repository · BaSyx | Nameplate · sequence · 3D → standard AASX / REST API | Field evidence kept separate from authored IR |
Deep-Dive AI PLC Guides & Products#
DS Studio control modeling & 3D DS2, GRAFCET & IEC 61131-3 guide PLC log unsupervised AI whitepaper PLC AAS & MCP integration scope
Latest Engineering Insights & Trend Briefings#
Evidence-backed engineering briefings on AI PLC, PLC AAS, IDTA v3.2, and read-only predictive diagnostics.
Verified Facts and Scope Boundaries#
- Read-only discovery tools10
The public MCP endpoint provides discovery tools with read-only access.
- Published process examples10
Interactive process-line examples published on dualsoft.ai that open without local installation.
- PLC engineering-tool importVendor PLC IDE import not executed Not yet checked
Importing a project directly into a specific PLC vendor's engineering IDE has not yet been tested.
- Physical equipment commissioningPhysical commissioning outside this reference scope Not yet checked
Physical factory wiring, commissioning, and safety acceptance are outside this software reference scope.
Scope and Verification FAQ#
Is it safe to use AI with an industrial PLC on a live factory line?
Yes, when AI is strictly separated from live real-time execution and safety interlocks. In DualSoft's AI PLC workflow, AI assists with formal DS2 modeling during engineering and read-only signal log analysis during operation, while deterministic compilers, simulations, and engineer-approved PLC commissioning control real equipment.
Why use an intermediate DS2 model instead of asking a general chatbot to write Ladder Logic directly?
General chatbots lack deterministic interlock checking, scan-cycle simulation, and synchronized engineering artifacts. Authoring DS2 text lets the compiler validate causal rules and simulate behavior in 3D before emitting aligned IEC 61131-3 code, GRAFCET drawings, and AASX asset packages from one reviewed revision.
Can AI PLC diagnostics monitor existing Siemens, Mitsubishi, Rockwell, or LS ELECTRIC lines without editing PLC code?
Yes. DS Pilot and Equipment Doctor AI work from read-only PLC operating signal logs and sequence decoding, keeping existing controller programs and safety interlocks untouched. Exact connector scope, sampling period, and acceptance baselines are verified per project.
Does generating IEC 61131-3 code or AASX automatically guarantee vendor IDE import and site commissioning?
No. Static code generation and simulation verify model logic and format rules only. Vendor PLC IDE import (Vendor PLC IDE import not executed Not yet checked) and physical shop-floor commissioning (Physical commissioning outside this reference scope Not yet checked) are verified separately during project delivery.
Verified by: DualSoft Engineering — AI PLC Control Modeling, Verification & Field Diagnostics Architecture
Scope and deliverables are agreed together before any customer data is handled.
