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.
TwinControl Studio — TwinCode IDE & Live vPLC Executionstudio://twincode/ide
TwinControl Studio TwinCode IDE in dark theme displaying HallB2_CDU_RideThrough IEC 61131-3 Structured Text (hall_b2_cdu_ridethrough.st) with clean LSP diagnostics, physical unit checking, and live vplc-local-0 execution
IEC 61131-3 Structured Text authoring for HallB2_CDU_RideThrough (hall_b2_cdu_ridethrough.st) with clean LSP diagnostics, physical unit checks, and deterministic vPLC execution.
TwinControl Studio — Safety Interlocks & Multi-Controller Verificationstudio://twincode/safety-edg
TwinCode IDE displaying nuclear Class 1E emergency diesel generator sequencing, IEC 61513 interlock checks, and Slot A/B readiness
Class 1E emergency diesel generator and pressuriser protection logic under lockstep multi-controller verification.

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 .cid and relay settings during scheduled maintenance windows while vPLC targets automatically revert to Slot A on any excursion.
Fail-Closed Mutation and Cutover PipelineFour-stage fail-closed mutation pipeline progressing from Plan to Production Shadow Residual Check, Four-Eyes PE Sign-Off, and Single-Scan Slot A/B Cutover, with fail-closed abort drops on gates one through three and automatic Watchdog Rollback to Slot A on gate four.FAIL-CLOSED MUTATION & CUTOVER PIPELINENO DIRECT PLANT WRITES · DETERMINISTIC GUARDRAIL01 / PLANMutation IntentBounds & InterlocksSchema & Range GateStatic Safety Check02 / SHADOW CHECKProduction ShadowResidual CheckPhysics & Thermal DeltaResidual ≤ Tolerance03 / AUTHORISATIONFour-Eyes PESign-Off GateAuthor + Independent PESigned Commit Hash04 / CUTOVERSlot A/B CutoverSingle-Scan Atomic SwapSLOT AActiveSLOT BStagedREJECTABORTDENYFAIL-CLOSED ABORT · NO PLANT WRITE · IMMUTABLE AUDIT ENTRYFAULTREVERTWATCHDOG ROLLBACKAuto-Revert to Slot A
Fig. 5 / Fail-closed mutation guardrail: plan, shadow residual check, four-eyes PE sign-off, and Slot A/B cutover

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-signed IEC 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 stageTwinCode & vPLC executionVerified safety guarantee
1. Native import & unit auditParse 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 & proofTranspile 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 runQualify 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 packageHot-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
POST/api/v1/twincode/transpileBearer token

Transpile 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.

ParameterInTypeDescription
source_pack_id *bodystringLicensed source PLC pack identifier or slug (for example rockwell-logix, codesys-iec, siemens-tia).
target_pack_id *bodystringTarget licensed PLC pack identifier or slug (for example siemens-tia, codesys-iec, rockwell-logix).
source *bodystringIEC 61131-3 source text or native vendor project payload.
filenamebodystringOptional source filename hint for dialect and export naming.
run_equivalence_proofbodybooleanRun 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 replacedFailure mode in separate silosTwinCode & vPLC capability
TIA Portal, Studio 5000, TwinCAT & CODESYSSingle-vendor desktop silos without physical-unit typing or cross-plant physicsOne IEC 61131-3 IDE across 18 dialects wired directly to TwinCore
Manual cross-vendor PLC portingSubtle timer, scan-order, and PID anti-windup regressions discovered only on siteUniversal N×N transpilation with formal scan-equivalence proofs
Stop-on-download hardware PLCsMandatory outage windows for major logic changes and blind firmware upgradesFirmware shadow qualification, single-scan Slot A/B vPLC cutover, and PE-signed relay packages