An industrial-grade development, simulation, and verification toolchain for IEC 61131-3 Structured Text (ST), delivered as an Eclipse IDE extension and a headless CLI test harness.
Built specifically for protection engineers, utility automation specialists, and control system developers working on mission-critical PLC logic, substation automation (ATS, load shedding, breaker control), and automated CI/CD verification pipelines.
- Rich Structured Text Language Tooling: Full AST-based syntax checking, cross-file symbol indexing across your entire Eclipse workspace/ResourceSet, live code mining reference counts, and inline parameter hints.
- Deterministic Virtual Simulation Engine: High-performance, cycle-based interpreter supporting native timers (
TON,TOF,TP), math, trigonometry, ramp generators, and PID controllers without requiring target hardware. - Hierarchical PLC Force Dashboard: Inspect live telemetry in real time. Drill down through nested function block instances and complex structures (e.g.,
StationFeed1.BreakerClosed) with one-click variable overrides and status highlights. - Headless CLI Test Runner: Run regression suites, test benches, and simulation assertions directly in command-line environments and GitHub Actions / GitLab CI pipelines.
- Code Generation & Portability: Transpile verified control routines to ANSI C or export compliant PLCopen XML for direct import into vendor-specific engineering suites (Siemens TIA Portal, Rockwell Studio 5000, CODESYS).
- Java Runtime Environment: OpenJDK or Oracle JDK 17 or 21+.
- Eclipse IDE Base (for IDE extension): Eclipse IDE 2024-03 (4.31) or newer.
- Recommended packages: Eclipse IDE for Java Developers, Eclipse Modeling Tools, or Eclipse Classic.
- Operating Systems: Windows 10/11 (x64), Linux (x86_64), or macOS (x86_64 / Apple Silicon via Rosetta or native JVM).
You can install the CircuitWorkbench Structured Text toolchain into an existing Eclipse installation via the p2 Update Site:
- Launch your Eclipse IDE.
- In the top menu, go to Help
$\rightarrow$ Install New Software... - Click the Add... button in the upper-right corner.
- Enter the repository details:
-
Name:
StructuredText Update Site -
Location:
https://raw.githubusercontent.com/circuitworkbench/st-eclipse-ide/main/repository(or specify a local archive if using an offline zip)
-
Name:
- Click Add.
- Select the CircuitWorkbench Structured Text Feature checkbox:
CircuitWorkbench Dependencies(Offline Runtime)CircuitWorkbench Structured Text IDE (Core EPL-2.0)CircuitWorkbench Structured Text Pro Tools (Commercial)
- Click Next, review the installation details, accept the license terms, and click Finish.
- Restart Eclipse when prompted.
- Switch to the Structured Text Perspective by navigating to:
-
Window
$\rightarrow$ Perspective$\rightarrow$ Open Perspective$\rightarrow$ Other...$\rightarrow$ Structured Text.
-
Window
- Right-click in the Project Explorer
$\rightarrow$ New$\rightarrow$ Structured Text Project. - Create a
.stfile (e.g.,StationServiceATS.st) to verify syntax highlighting and code minings.
The interactive PLC Force Dashboard enables engineers to monitor live simulation values and lock tags during execution:
- Launch a simulation or debug session by right-clicking your
.stfile or project and choosing Run As$\rightarrow$ PLC Simulation (or Debug As$\rightarrow$ PLC Simulation). - Open the view via Window
$\rightarrow$ Show View$\rightarrow$ Other...$\rightarrow$ PLC$\rightarrow$ PLC Force Dashboard. -
Structured Types & Complex Tags:
- Structs (e.g.,
StationFeed1) display expandable chevron toggles (>). - Expanding the root object exposes nested members such as
Healthy,Voltage_RMS, andBreakerClosed.
- Structs (e.g.,
-
Applying Forces:
- Select any variable or nested leaf tag in the viewer.
- Click Force Variable... in the view toolbar.
- Enter your target value (
TRUE,FALSE, or numeric literals) to lock the value across execution cycles. Forced tags are highlighted in red with statusFORCED. - Click Unforce Variable or Unforce All to restore standard programmatic control.
For headless verification suites and automated CI/CD pipelines, execute tests using the standalone native runner without launching the Eclipse GUI.
Standalone pre-built packages for Windows, Linux, and macOS are published under GitHub Releases:
🔗 CircuitWorkbench ST CLI v1.0.0 Release
Download the archive matching your target operating system:
| Platform | Architecture | Release Package Archive | Executable Binary |
|---|---|---|---|
| Windows | x86_64 | com.circuitworkbench.st.cli.product-win32.win32.x86_64.zip |
st-test-runnerc.exe |
| Linux | x86_64 | com.circuitworkbench.st.cli.product-linux.gtk.x86_64.tar.gz |
st-test-runnerc |
| macOS | x86_64 | com.circuitworkbench.st.cli.product-macosx.cocoa.x86_64.tar.gz |
st-test-runnerc |
Note for Windows: The archive provides both
st-test-runner.exe(GUI subsystem) andst-test-runnerc.exe(Console subsystem). Always executest-test-runnerc.exein Command Prompt, PowerShell, or CI scripts to synchronously capture terminal output, test progress logs, and process exit codes.
- Download and extract
com.circuitworkbench.st.cli.product-win32.win32.x86_64.zip. - Open Command Prompt or PowerShell and navigate to the extracted directory.
- Run the test runner:
:: Set license key via environment variable (recommended for CI/CD)
set CIRCUITWORKBENCH_LICENSE_KEY=YOUR_LICENSE_KEY_HERE
st-test-runnerc.exe --source-dir .\substation-logic --report-dir .\build\test-results
:: Or pass parameters directly via CLI arguments
st-test-runnerc.exe ^
--source-dir .\substation-logic ^
--report-dir .\build\test-results ^
--max-cycles 5000 ^
--cycle-delta 20 ^
--license-key YOUR_LICENSE_KEY_HERE- Download and extract the archive:
# Linux tar -xzf com.circuitworkbench.st.cli.product-linux.gtk.x86_64.tar.gz # macOS tar -xzf com.circuitworkbench.st.cli.product-macosx.cocoa.x86_64.tar.gz
- Navigate to the extracted directory and ensure execution permissions are granted:
chmod +x st-test-runnerc
- Run the test runner:
# Set license key via environment variable export CIRCUITWORKBENCH_LICENSE_KEY="YOUR_LICENSE_KEY_HERE" ./st-test-runnerc --source-dir ./substation-logic --report-dir ./build/test-results # Or pass parameters directly via CLI arguments ./st-test-runnerc \ --source-dir ./substation-logic \ --report-dir ./build/test-results \ --max-cycles 5000 \ --cycle-delta 20 \ --license-key "YOUR_LICENSE_KEY_HERE"
| Argument | Description | Default |
|---|---|---|
--source-dir <path> |
Directory path containing .st source and automated test suite files |
. |
--report-dir <path> |
Destination folder where the JUnit XML report (TEST-plc-results.xml) is written |
./build/test-results |
--max-cycles <int> |
Maximum scan cycles per test before terminating | 100 |
--cycle-delta <ms> |
Simulated scan cycle interval in milliseconds (advances runtime timers like TON) |
50 |
--license-key <key> |
Pro license key (can also be supplied via CIRCUITWORKBENCH_LICENSE_KEY) |
None |
0: All discovered test POUs passed successfully.1: Test assertion failure, syntax/linking validation error, invalid argument, or missing Pro license entitlement.- Test Reports: Automatically writes standard JUnit XML results to
<report-dir>/TEST-plc-results.xmlfor native ingestion into GitHub Actions test reporters, GitLab CI reports, or Jenkins.
CircuitWorkbench Structured Text is distributed under proprietary binary licensing across two editions:
- Core Edition (Freeware): Free of charge for development, syntax validation, AST analysis, and local non-simulation editing.
- Pro Edition (Commercial Subscription): Commercial engineering work, industrial control verification, virtual PLC cycle simulation, interactive Force Dashboard overrides, transpiler outputs, and headless CI/CD runner pipelines require an active CircuitWorkbench Pro subscription.
- Purchase a Subscription: Visit the CircuitWorkbench Lemon Squeezy Storefront to purchase a license.
- Retrieve Your Key:
Upon checkout completion, your order confirmation email will contain your unique UUID license key (formatted as
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
Choose one of three activation methods:
- Open Window
$\rightarrow$ Preferences (or Eclipse$\rightarrow$ Settings... on macOS). - Navigate to StructuredText
$\rightarrow$ Licensing. - Paste your license key into the License Key field and click Activate/Refresh.
- The IDE will contact the activation service and cache an offline entitlement token valid for 3 days between connectivity syncs.
- Click Apply and Close.
Set the environment variable prior to starting Eclipse or running the headless CLI:
export CIRCUITWORKBENCH_LICENSE_KEY="YOUR_LICENSE_KEY_HERE"Pass the license key directly to the CLI test launcher:
./st-test-runnerc --license-key "YOUR_LICENSE_KEY_HERE"Or append it to your eclipse.ini / Java VM launch flags:
-Dcircuitworkbench.license.key=YOUR_LICENSE_KEY_HERE
- Issue Tracker: Submit bug reports, unexpected transpilation behaviors, or feature requests via GitHub Issues.
- Discussions: Ask technical questions regarding IEC 61131-3 syntax support, AST configurations, or simulation timing on GitHub Discussions.
This software is distributed under the terms of the CircuitWorkbench End User License Agreement. See about.html in each feature distribution for edition-specific terms and conditions.