CtrlLens
📖 Read the online documentation, available in multiple languages.
Git-native version control, visual diff/merge, and AI-assisted editing for Studio 5000® PLC projects — right inside VS Code. CtrlLens previews and version-controls .ACD / .L5X files, rendering Ladder (RLL), Function Block (FBD), Sequential Function Chart (SFC), and Structured Text.
Install
- VS Code / Cursor: install from the Visual Studio Marketplace.
- Kiro and other Open VSX-based IDEs: search for CtrlLens in the Extensions view, or install it from Open VSX.
Requires VS Code / Code OSS 1.108.0 or later. Windows x64, Linux x64, macOS Intel, and macOS Apple Silicon builds are published separately; the marketplace selects the matching package automatically.
Features
- Graphical preview — Ladder / FBD / SFC on an interactive canvas; Structured Text in VS Code's native editor with full syntax highlighting.
- Git-native VCS — commit, branch, push/pull, stash, and merge
.ACD / .L5X projects with per-program change tracking.
- Visual diff & merge — side-by-side rung / block / chart diffs and conflict resolution for RLL, FBD, and SFC, plus structural and line-by-line diffs for Structured Text.
- Interactive editing — inline operand & instruction editing, rung comments, drag-and-drop, native Undo/Redo with matching saved-state markers, and a Studio 5000-style Cam profile editor.
- Cross Reference (Pro) — query tag operands from Viewing or Editing mode across RLL / FBD / SFC / ST, including AOI definitions, native cross-program references and static alias chains. Inspect the read/write flag and double-click a row to jump to its source.
- Program connections — a read-only Connections column in Controller/Program Tags opens connection details; Show Program Connections provides the project summary. Signal and impact analysis follows verified parameter copies and InOut reference bindings, with source evidence and explicit unknown boundaries.
- Time values and project metadata — preserve exact time/date values, distinguish TIMER milliseconds from TIMER_T microseconds, and inspect read-only UDT revision/vendor properties and metadata differences. Instruction checks use verified controller, revision and language context.
- AI-assisted programming — exposes routine XML and an auto-generated project-schema bundle (tag inventory, UDT/AOI types, and a full Logix instruction index with per-project usage marks) to Codex, Claude Code, Copilot, and Cursor to support project-aware PLC editing.
- AI agent tools (MCP) — 16 local tools provide project map, search, language-aware semantics, ordered RLL structure, AOI definition and call-binding evidence, read-only routine text and program connections, conservative signal/impact analysis, instruction specs, verification, preview, diff, cross-reference, and auditable two-phase typed patches. An agent can stage a bounded Standard RLL/ST patch for free; formal apply is Pro and requires an unexpired, one-time receipt from L0 parse/round-trip, L1 static validation, semantic diff/impact/invariant review, and a passing Studio 5000 L2 Build. No L2 means no apply; Safety and protected logic are always read-only for typed patches.
- AI client setup — choose Codex or Claude Code, the client session folder, and the PLC default separately; review configuration before saving. Setup checks an absolute runtime and binds evidence links to the current editor.
- Typed Patch review —
CtrlLens: Review and Validate Typed Patch… shows the exact requirement contract, side-by-side Ladder diagrams for staged RLL changes, old/new text and comments, impact boundaries, invariants, L0/L1/L2 results, and approval hashes before Apply. Writes are snapshot-bound, backed up, atomically replaced, re-validated, and rolled back on failure.
- Validation — static checks (tag resolution, operand types, SFC topology, instruction/language compatibility, Add-On Instruction definition rules) surfaced in the Problems panel. Verified hardware limits — AOI nesting depth, InOut ceiling,
MESSAGE tag scope — follow the project's own controller family and Logix Designer version; unknown targets remain unknown. Static checks assist review and do not replace verification in the matching Studio 5000 version.
Working with Studio 5000
Use Open Project… for an existing or cloned local CtrlLens project. Use New Project… to create a separate project from an ACD/L5X source in an empty folder or a clean repository without PLC content. ACD linking is optional when opening an existing project; Close closes the current project.
CtrlLens adds Git version control, code review and AI-assisted offline editing to Studio 5000 projects. Hardware/network configuration, controller download/upload and online monitoring remain in Studio 5000. Typed-patch L2 validation invokes the installed Studio 5000 SDK Build on a disposable copy; it is not an independent compiler.
Free vs Pro
| Capability |
Free |
Pro |
| Preview (Ladder / FBD / SFC / ST / Tags) |
✅ |
✅ |
| Program Connections summary and Tags connection details |
✅ |
✅ |
| ACD ↔ L5X sync |
✅ |
✅ |
| Git VCS (commit / branch / merge …) |
— |
✅ |
| Visual diff & merge UI |
— |
✅ |
| Interactive RLL / FBD / Cam editing |
— |
✅ |
| AI Context bundle |
— |
✅ |
| MCP agent tools — project map / routine & state-machine semantics / project & instruction search / spec / context / verify / preview |
✅ |
✅ |
| MCP agent tools — validate Standard RLL/ST typed patch (L1/L2 staging) |
✅ |
✅ |
| MCP agent tools — signal dependency trace |
— |
✅ |
| MCP agent tools — change impact |
— |
✅ |
| MCP agent tools — apply L2-approved typed patch |
— |
✅ |
| MCP agent tools — apply verified rung |
— |
✅ |
| MCP agent tools — commit/diff review |
— |
✅ |
| Cross Reference (panel + MCP find-references) |
— |
✅ |
Start free; upgrade to Pro at ctrllens.com.
Requirements
- Git must be installed — the version-control, diff, and merge features depend on it. If you don't already have it, download and install from git-scm.com (most PLC/electrical engineers won't have Git yet; the default installer options are fine).
- No extra L5X command-line tools — explode/implode runs in-process on every platform. CtrlLens manages Git operations through your installed Git executable.
- ACD ↔ L5X conversion and typed-patch L2 Build require Windows, an activated Logix Designer® SDK, and the matching Studio 5000 project version. The bundled dispatcher selects isolated clients 2.2.1109 or 3.0.0 from the registered SDK service version (2.2 or 3.0); existing SDK2.2 users are not required to upgrade. SDK3 passed scoped V38/V39 conversion and offline Build checks. The SDK2.2 client baseline is retained; runtime checks for this release used SDK3. This does not certify every V39 controller or Safety/Motion workflow.
- Typed-patch L2 Build additionally requires a Logix Designer v37+ project; earlier revisions fail closed before conversion. Without a supported Build environment, typed patches can still be staged and checked at L1 but cannot be formally applied. Preview, Git, diff, merge, editing and
.L5X import/export work without the SDK on all four platforms.
Configuration
Core preview and L5X import need no additional tool paths. Git features use your installed Git. For an external AI client, use CtrlLens: Set Up AI Agent Tools (Client and Project Binding) to review its connection and PLC binding. The ACD↔L5X converter (ctrllens-acd, Windows only) ships inside the extension and is resolved automatically; you never point at it. The only optional setting is the SDK location, and even that is auto-detected:
| Setting |
Default |
When to set it |
ctrllens.logixDesignerSdkPath |
empty → auto-detected (Windows) |
Only if Studio 5000 / the SDK is installed to a non-default location. Auto-filled on first launch when found. |
Logix Designer SDK (Windows only) — clients for service families 2.2 and 3.0 are bundled separately. Selection uses the registered service executable version; finding an installation folder alone does not verify activation or conversion compatibility. Example default install location:
C:\Program Files (x86)\Rockwell Software\Studio 5000\Logix Designer SDK
CtrlLens auto-detects this on launch and fills the setting for you. If it isn't found, CtrlLens shows a one-time prompt with install / set-path options — or set ctrllens.logixDesignerSdkPath manually.
Online licenses are verified locally at startup. Successful online validation is reused for the signed interval (12 hours by default) across restarts and editors in the same OS profile. Refresh License requests an immediate check, subject to server rate limits; signed expiry, trial deadlines and offline licensing rules remain in force.
📖 Online documentation — multiple languages · CtrlLens website
Studio 5000® and Logix Designer® are products and trademarks of Rockwell Automation. CtrlLens is an independent product and is not affiliated with, endorsed by, or sponsored by Rockwell Automation.
| |