feat(tia): TIA export bundle – contract and ingestion #1090

Open
opened 2026-12-01 12:35:57 +00:00 by sharang · 0 comments
Owner

Part of the TIA epic #1095.

The connector uploads one zip per export. Contract (versioned, bundle_version):

  • manifest.json: TIA version (V20/V21), project name and last-modified, export time, connector version; devices (name, TypeIdentifier/order number, firmware, role CPU/HMI/IO module, rack/slot); per CPU the security settings read via Openness (access level, access-control mechanism, PUT/GET, web server, OPC UA server and its security policies, Secure PG/HMI communication, project protection); blocks list with type (OB/FB/FC/DB), language, and protected: true for know-how-protected blocks.
  • blocks/: SimaticML .xml (V20/V21) and/or SIMATIC SD .s7dcl+.s7res (V21), plus .scl external sources.
  • hardware.aml (optional, CAx export).

Prüfwerk side:

  • new PlcFormat::TiaExport artifact; size and zip-bomb limits like the CODESYS archive;
  • manifest devices become the target's devices (source "TIA-Export", replacing earlier export-sourced ones, never a hand-entered one), so the existing Siemens CSAF matching (#1077) runs without manual entry;
  • protected blocks become a run note "nicht analysierbar", never a clean result;
  • synthetic fixtures only; contract documented in docs/guide/plc.md.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9

Part of the TIA epic #1095. The connector uploads one zip per export. Contract (versioned, `bundle_version`): - `manifest.json`: TIA version (V20/V21), project name and last-modified, export time, connector version; devices (name, TypeIdentifier/order number, firmware, role CPU/HMI/IO module, rack/slot); per CPU the security settings read via Openness (access level, access-control mechanism, PUT/GET, web server, OPC UA server and its security policies, Secure PG/HMI communication, project protection); blocks list with type (OB/FB/FC/DB), language, and `protected: true` for know-how-protected blocks. - `blocks/`: SimaticML `.xml` (V20/V21) and/or SIMATIC SD `.s7dcl`+`.s7res` (V21), plus `.scl` external sources. - `hardware.aml` (optional, CAx export). Prüfwerk side: - new `PlcFormat::TiaExport` artifact; size and zip-bomb limits like the CODESYS archive; - manifest devices become the target's `devices` (source "TIA-Export", replacing earlier export-sourced ones, never a hand-entered one), so the existing Siemens CSAF matching (#1077) runs without manual entry; - protected blocks become a run note "nicht analysierbar", never a clean result; - synthetic fixtures only; contract documented in docs/guide/plc.md. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#1090