One IEC 61131-3 IDE across 18 PLC dialects. Zero-stop cutover.
TwinCode delivers full ST, LD, FBD, SFC, and IL authoring across 18 vendor PLC dialects with live physical-unit intelligence, lockstep time-travel debugging, equivalence-proven N×N transpilation, and single-scan Slot A/B vPLC promotion.
- IEC 61131-3 (ST / LD / FBD / SFC / IL)
- IEC 61513 & IEEE 603
- .L5X & SimaticML
- .TcPOU & PLCopen XML
- IEC 61850 .cid / .scd
Multi-dialect IEC 61131-3 authoring wired straight to facility physics
Author Structured Text, Ladder Diagram, Function Block Diagram, Sequential Function Chart, and Instruction List in one unified workbench supporting 18 vendor PLC dialects—including Siemens, Rockwell, Beckhoff, CODESYS, Schneider, ABB, Mitsubishi, Omron, and GE. Live type and physical-unit checking rejects incompatible units at edit time.
- Live unit & type intelligenceCatch dimensional errors such as mixing kW with MW, bar with psi, or unscaled analogue counts before compilation.
- Lockstep time-travel debuggerStep forwards and backwards scan-by-scan across multiple coupled controllers and the live physics plant using the scan oscilloscope.
- Native vendor project exportsEmit production-ready .L5X, SimaticML, .TcPOU, PLCopen XML, and IEC 61850 .cid/.scd files from the same verified source.
Firmware shadow qualification and single-scan Slot A/B vPLC cutover
Import vendor PLC firmware and patch binaries directly into shadow runs to verify scan behaviour before field rollout. On TwinControl vPLC targets, TwinControl Guardrail validates residual plant response against live telemetry, collects four-eyes PE sign-off, and swaps Slot B into active Slot A across a single scan barrier with automatic watchdog rollback. Physical protection relays are never hot-swapped mid-scan—they receive PE-signed IEC 61850 .cid and settings packages inside controlled maintenance windows after shadow qualification.
- Vendor firmware & patch qualificationEvaluate vendor firmware updates against facility sequences in shadow mode before touching field controllers.
- Single-scan bumpless Slot A/B vPLC swapPreserve retentive timers, PID integrators, and live I/O across one scan boundary on TwinControl vPLC without halting the controlled process.
- PE-signed relay packages & watchdog rollbackDeliver PE-signed
.cidand relay settings during scheduled maintenance windows while vPLC targets automatically revert to Slot A on any excursion.
Complete control engineering across 18 vendor ecosystems
Replace fragmented single-vendor engineering seats with one verifiable toolchain spanning authoring, cross-vendor translation, debugging, and live controller handover.
All 5 IEC 61131-3 Languages
Edit and cross-reference ST, LD, FBD, SFC, and IL across 18 dialects—Siemens, Rockwell, Beckhoff, CODESYS, Schneider, ABB, Mitsubishi, Omron, GE, and peers—in one workspace.
Live Type & Physical Unit Intelligence
Enforce engineering units (
kPa,degC,kW,A,%) across function-block ports and arithmetic expressions to eliminate scaling mistakes before commissioning.Time-Travel Multi-Controller Debugger
Freeze, scrub backwards, and inspect state across multiple synchronised controllers and TwinCore physics using the integrated scan oscilloscope.
N×N Transpilation & Equivalence Proofs
Translate logic across any pair of the 18 supported dialects with formal symbolic and scan-trace equivalence proofs covering timers, latches, and PID windup, marking vendor-specific opaque blocks for explicit engineer review.
Vendor Firmware Binary Qualification
Import OEM firmware and security patch images into TwinCore shadow verification to detect scan-order or instruction-timing shifts prior to site deployment.
Native Exports & Slot A/B vPLC
Emit native
.L5X,SimaticML,.TcPOU,PLCopen XML, and PE-signedIEC 61850.cid/.scdpackages for controlled relay maintenance windows, or hot-swap TwinControl vPLC targets via single-scan Slot A/B cutover.
Impossible elsewhere: N×N controller migration with equivalence proof and zero-stop cutover
Migrating chilled-water and emergency power sequences from Rockwell ControlLogix to Siemens S7-1500 and deterministic vPLC targets ordinarily requires manual rewrites and risky plant outages. TwinCode proves scan-by-scan equivalence before cutover.
| Migration stage | TwinCode & vPLC execution | Verified safety guarantee |
|---|---|---|
| 1. Native import & unit audit | Parse existing .L5X routines, attach engineering units to every tag, and bind to TwinDesign I/O. | Surfaces latent scaling and overflow bugs before translation begins. |
| 2. N×N transpile & proof | Transpile to Siemens SCL and vPLC native targets while verifying timer and PID semantics and flagging vendor-specific opaque blocks. | Mathematical equivalence proof plus explicit engineer review of hardware-bound blocks. |
| 3. Firmware shadow run | Qualify target controller firmware alongside live facility telemetry in production shadow mode. | Residual difference stays within tolerance under real load swings. |
| 4. Slot A/B vPLC or signed relay package | Hot-swap Slot B into Slot A across one scan barrier on TwinControl vPLC, or issue PE-signed .cid and settings packages to physical relays in maintenance windows. | Zero process halt on vPLC and governed maintenance handover for field protection. |
Control logic examples, native export CLI, and transpilation API
Integrate dialect transpilation, equivalence proofs, and Slot A/B cutover plans into automated engineering pipelines. Full details live in the API & CLI reference.
FUNCTION_BLOCK FB_CDU_LeadLag
VAR_INPUT
HeaderDiffPress : REAL := 0.0 (* kPa *);
TargetDiffPress : REAL := 160.0 (* kPa *);
RackThermalLoad : REAL := 0.0 (* kW *);
END_VAR
VAR_OUTPUT
PumpSpeedCmd : REAL := 45.0 (* % *);
StandbyStart : BOOL := FALSE;
END_VAR
VAR
PressError : REAL;
END_VAR
PressError := TargetDiffPress - HeaderDiffPress;
PumpSpeedCmd := LIMIT(30.0 (* % *), 45.0 (* % *) + (PressError * 0.65 (* %/kPa *)), 100.0 (* % *));
StandbyStart := (RackThermalLoad > 1850.0 (* kW *)) OR (HeaderDiffPress < 110.0 (* kPa *));
END_FUNCTION_BLOCK# Compile IEC 61131-3 logic via the vPLC workbench
twinctl control codegen --file ./plc/cdu_lead_lag.st --json
# Inspect live vPLC status and run a time-warped fault sweep
twinctl control status --json
twinctl control warp-sim --seconds 600 --open-breaker mvb-01 --json
# Benchmark cyclic executive jitter and validate strict config
twinctl runtime bench --cycles 5000
twinctl check --strict{
"controller_id": "vplc-edg-1e-train-a",
"active_slot": "A",
"staged_slot": "B",
"staged_digest": "sha256:41f8c2e9d07b19a2...",
"shadow_residual_pass": true,
"pe_signoffs": ["pe-eng-014", "pe-ind-089"],
"cutover_mode": "single_scan_bumpless",
"watchdog_revert_to": "A"
}/api/v1/twincode/transpileBearer tokenTranspile IEC 61131-3 programs across 18 vendor dialects with equivalence proofs.
Converts source control logic between vendor dialects, validates physical-unit constraints, flags vendor-specific opaque blocks for explicit engineer review, emits native vendor project files, and returns a formal scan-equivalence proof.
| Parameter | In | Type | Description |
|---|---|---|---|
source_pack_id * | body | string | Licensed source PLC pack identifier or slug (for example rockwell-logix, codesys-iec, siemens-tia). |
target_pack_id * | body | string | Target licensed PLC pack identifier or slug (for example siemens-tia, codesys-iec, rockwell-logix). |
source * | body | string | IEC 61131-3 source text or native vendor project payload. |
filename | body | string | Optional source filename hint for dialect and export naming. |
run_equivalence_proof | body | boolean | Run symbolic and scan-trace equivalence proofs across edge timers and arithmetic. |
Request body
{
"source_pack_id": "rockwell-logix",
"target_pack_id": "siemens-tia",
"source": "FUNCTION_BLOCK FB_CDU_LeadLag ... END_FUNCTION_BLOCK",
"run_equivalence_proof": true
}Response
{
"source_pack_id": "com.twinctl.plc.rockwell-logix",
"target_pack_id": "com.twinctl.plc.siemens-tia",
"target_language_id": "siemens-scl",
"target_filename": "FB_CDU_LeadLag.xml",
"target_source": "<Document><SW.Blocks.FB ...>...</SW.Blocks.FB></Document>",
"address_rewrites_count": 6,
"review_markers": [],
"diagnostics": [],
"equivalence": {
"verified": true,
"method": "plc-equiv-tier2-roundtrip",
"summary": "Tier-2 IEC 61131-3 re-parse and scan-cycle runtime equivalence verified.",
"mismatches": []
}
}Incumbent PLC toolchains replaced by TwinCode & vPLC
Retain full native .L5X, SimaticML, .TcPOU,PLCopen XML, and IEC 61850 compatibility while eliminating vendor-locked seats and stop-on-download downtime.
| Base tools replaced | Failure mode in separate silos | TwinCode & vPLC capability |
|---|---|---|
| TIA Portal, Studio 5000, TwinCAT & CODESYS | Single-vendor desktop silos without physical-unit typing or cross-plant physics | One IEC 61131-3 IDE across 18 dialects wired directly to TwinCore |
| Manual cross-vendor PLC porting | Subtle timer, scan-order, and PID anti-windup regressions discovered only on site | Universal N×N transpilation with formal scan-equivalence proofs |
| Stop-on-download hardware PLCs | Mandatory outage windows for major logic changes and blind firmware upgrades | Firmware shadow qualification, single-scan Slot A/B vPLC cutover, and PE-signed relay packages |

