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.
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 Pack | Covered Topologies & Equipment | Standards & Telemetry Scope |
|---|---|---|
| Data Centres | 132 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 Stations | Combined-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. |
| Nuclear | PWR 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. List existing facility projects
curl -sS -H "Authorization: Bearer $TWINCTL_API_TOKEN" \
http://127.0.0.1:8080/api/v1/projects
# 2. Provision a governed facility project from a domain blueprint
curl -sS -X POST -H "Authorization: Bearer $TWINCTL_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"templateId":"ai-dc-2n-liquid","name":"Campus Hall B2","activate":true}' \
http://127.0.0.1:8080/api/v1/projects/instantiate
# 3. Query the resolved asset hub summary
curl -sS -H "Authorization: Bearer $TWINCTL_API_TOKEN" \
http://127.0.0.1:8080/api/v1/projects/proj_01j8k2m4/hub/summary- 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. - Instantiate a blueprint: Provision a
.twinprojproject from a domain blueprint to seed initial constraints, asset kinds, and study lenses with zero empty placeholders. - 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. - Simulate and verify: Launch TwinCore emulation at
/emulate(Cmd/Ctrl+4) to run coupled physics and protocol endpoints at1×wall-clock or100×+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.
/api/v1/projects/instantiateBearer tokenProvision 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.
| Parameter | In | Type | Description |
|---|---|---|---|
templateId * | body | string | Identifier of the signed domain blueprint template to instantiate. |
name * | body | string | Human-readable facility or campus project title. |
activate | body | boolean | Selects 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
| Guide | Focus |
|---|---|
| Studio & Workbenches | The ten workbenches, Context Navigator, four Studio themes, shortcuts, and multi-user concurrency. |
| TwinProject & Packs | Blueprint provisioning, pack signing and pinning, non-blocking branching, 3-way diff, rebase, and shadow cutover. |
| TwinDesign & Studies | Calibrated takeoff, TwinSync recognition, 2D SLDs/P&IDs, 3D keepouts, inline physics, and open exports. |
| TwinCore & Simulation | 500,000+ point state, 10,000+ multiplexed endpoints, multi-rate physics, dual clocks, faults, and virtual FAT/SAT. |
| TwinCode & vPLC | IEC 61131-3 across 18 dialects, deterministic debugging, transpilation, and single-scan Slot A/B handover. |
| TwinScript Language | Unit-checked automation scripts, capability bounds, event handlers, and shadow-qualified plant actions. |
| Protocols & Devices | 59 symmetric driver-and-emulator stacks spanning 73 protocols, live wire inspection, and PCAP synthesis. |
| Operations & Guardrails | L1–L5 commissioning, ISA-101 HMI, N-1 outage rehearsal, digital LOTO, and fail-closed Guardrail governance. |
| API & CLI Reference | REST JSON endpoints, /ws/telemetry RBE streams, TwinScript SDK, and twinctl CLI reference. |
