Documentation menu

TwinControl Documentation

TwinControl unifies facility design, IEC 61131-3 control logic, multi-rate coupled physics, live fieldbus protocols, commissioning dossiers, and plant operations inside one executable digital twin. Every discipline works against the same canonical asset identity rather than passing disconnected spreadsheets and static exports between tools.

The Digital Thread Mental Model

Conventional critical-facility projects split engineering truth across six separate silos: CAD and takeoff suites, offline electrical and thermal study packages, SCADA protocol gateways, virtual commissioning and soft-PLC IDEs, passive OT monitors, and commissioning/CMMS spreadsheets. Each handover introduces transcription drift and manual tag re-mapping.

In TwinControl, every physical and logical item carries one canonical asset identity from initial takeoff through end-of-life maintenance:

  • Design: Calibrated PDF, DWG, DXF, and IFC takeoff materialises assets directly onto live 2D schematics, SLDs, P&IDs, and 3D enclosures.
  • Code: IEC 61131-3 control programs bind directly to those asset terminals and I/O points with unit-aware checks.
  • Physics: Electrical, hydraulic, thermal, and mechanical solvers read the same topology and signed equipment ratings—never duplicated single-line models.
  • Wire Protocols: Emulated and physical devices speak native fieldbus and IT/AI fabric frames mapped one-to-many onto each asset.
  • Commissioning & Operations: L1–L5 acceptance tests, ISA-101 operator screens, digital LOTO isolation chains, and Guardrail pre-flight checks link straight back to the underlying design and code revisions.
TwinControl Studio — Overview/overview · Light Engineering
TwinControl Studio Overview workbench showing the 100 MW Liquid-Cooled AI Campus project, Write Guardrail bar, pinned data-centre packs, and integrity checks
Overview workbench for 100 MW Liquid-Cooled AI Campus showing the Write Guardrail bar, Project Explorer, pinned data-centre packs, and integrity verification checks.

Domain Pack Architecture

The TwinControl platform kernel is domain-free: it embeds no hard-coded vertical equipment catalogues, unit rules, or regulatory tables. Instead, signed .twinpack bundles supply equipment classes, schematic symbols, physical models, PLC device profiles, study lenses, and compliance clauses. Domain packs compose transitively—for example, a hyperscale data-centre bundle composes a grid substation pack for end-to-end point-of-interconnection modelling.

Domain PackCovered Topologies & EquipmentStandards & Telemetry Scope
Data Centres132 kV-to-rack power trains, 415/480 VAC to 50 VDC ORv3 power shelves (and emerging 800 VDC HVDC buses), MV switchgear, STS, UPS, BESS, liquid-cooling CDUs, CRAHs, and AI GPU rack pods.TIA-942, IEC 60909, IEEE 1584, ISA-101, IEC 61131-3; Modbus, BACnet, Redfish HMLC, SPDM, SNMP, gNMI.
Power StationsCombined-cycle generation units, 400 kV GIS substations, protection bays, synchrocheck breakers, and inverter-based resources.IEC 61850 (MMS, GOOSE, Sampled Values), IEC 60909, IEEE 1584, NERC PRC-024, MOD-026, IEEE C37.111 COMTRADE.
NuclearPWR and SMR primary-secondary thermal-hydraulic loops, pressuriser pressure control, Class 1E safety buses, and emergency diesel generators.IEC 61513, IEEE 603, IEC 61131-3, ISA-101; deterministic safety train separation and auditable digital LOTO.

Quickstart

Provision a local facility twin, verify pack signatures, run headless rule checks, and launch Studio using either the twinctl CLI or the REST API.

# 1. Verify signed domain and device packs against your trust roots
twinctl pack install domains/datacentre/packs/dc-core.twinpack --trust trust.toml
twinctl pack list

# 2. Validate facility specifications and run headless design rule checks
twinctl design check ./hall-b2.twinproj --format text
twinctl check --config ./facility.toml --strict

# 3. Export bill of materials and cable schedule before site mobilisation
twinctl design report ./hall-b2.twinproj --kind all --format xlsx --out ./reports/

# 4. Inspect live platform status and connected protocol adapters
twinctl status --api-url http://127.0.0.1:8080
  1. Install and verify packs: Import your signed domain, equipment, and PLC packs against your installation trust file (trust.toml). Unsigned or tampered archives fail closed before entering the corpus.
  2. Instantiate a blueprint: Provision a .twinproj project from a domain blueprint to seed initial constraints, asset kinds, and study lenses with zero empty placeholders.
  3. Author and study: Open Studio at /design (Cmd/Ctrl+2) to import drawings, run inline load-flow and short-circuit checks (F9), and bind I/O to IEC 61131-3 logic in /control.
  4. Simulate and verify: Launch TwinCore emulation at /emulate (Cmd/Ctrl+4) to run coupled physics and protocol endpoints at 1× wall-clock or 100×+ deterministic CI speed.

Project Provisioning Endpoint

Every interactive action in Studio maps directly to the typed HTTP API used by CI pipelines and the CLI.

POST/api/v1/projects/instantiateBearer token

Provision a governed facility project from a signed domain blueprint.

Creates the project manifest, pins transitive domain and standards packs, seeds initial hierarchy constraints, and optionally activates the project for the workspace.

ParameterInTypeDescription
templateId *bodystringIdentifier of the signed domain blueprint template to instantiate.
name *bodystringHuman-readable facility or campus project title.
activatebodybooleanSelects the provisioned project as active in the workspace.

Request body

{
  "templateId": "ai-dc-2n-liquid",
  "name": "Campus Hall B2",
  "activate": true
}

Response

{
  "project": {
    "repository_id": "proj_01j8k2m4",
    "name": "Campus Hall B2",
    "lifecycle_stage": "simulation_sandbox"
  }
}

Documentation Map

GuideFocus
Studio & WorkbenchesThe ten workbenches, Context Navigator, four Studio themes, shortcuts, and multi-user concurrency.
TwinProject & PacksBlueprint provisioning, pack signing and pinning, non-blocking branching, 3-way diff, rebase, and shadow cutover.
TwinDesign & StudiesCalibrated takeoff, TwinSync recognition, 2D SLDs/P&IDs, 3D keepouts, inline physics, and open exports.
TwinCore & Simulation500,000+ point state, 10,000+ multiplexed endpoints, multi-rate physics, dual clocks, faults, and virtual FAT/SAT.
TwinCode & vPLCIEC 61131-3 across 18 dialects, deterministic debugging, transpilation, and single-scan Slot A/B handover.
TwinScript LanguageUnit-checked automation scripts, capability bounds, event handlers, and shadow-qualified plant actions.
Protocols & Devices59 symmetric driver-and-emulator stacks spanning 73 protocols, live wire inspection, and PCAP synthesis.
Operations & GuardrailsL1–L5 commissioning, ISA-101 HMI, N-1 outage rehearsal, digital LOTO, and fail-closed Guardrail governance.
API & CLI ReferenceREST JSON endpoints, /ws/telemetry RBE streams, TwinScript SDK, and twinctl CLI reference.