feat(tia): TIA block code – SCL, SIMATIC SD and SimaticML into the PLC rules #1093

Open
opened 2026-12-01 12:36:10 +00:00 by sharang · 0 comments
Owner

Part of the TIA epic #1095.

TIA exports block code in three shapes; all go into the existing PLC IR so the current rules apply:

  • SCL (.scl, and SCL networks inside SD/SimaticML): ST dialect with REGION/END_REGION, #local access, "quoted" globals, %I0.0 absolute addresses, VERSION/attribute pragmas;
  • SIMATIC SD (.s7dcl, V21): text format with per-network { S7_Language := "LAD" } pragmas, RUNG/Contact/Coil for LAD;
  • SimaticML XML (V20 and V21): SW.Blocks.FB/FC/OB with FlgNet parts and wires for LAD/FBD, StructuredText tokens for SCL.

GRAPH (SFC) blocks: listed, analysed later. Synthetic fixtures written to Siemens' published formats; real exports from our own demo project once the TIA install is up.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9

Part of the TIA epic #1095. TIA exports block code in three shapes; all go into the existing PLC IR so the current rules apply: - SCL (`.scl`, and SCL networks inside SD/SimaticML): ST dialect with `REGION/END_REGION`, `#local` access, `"quoted"` globals, `%I0.0` absolute addresses, `VERSION`/attribute pragmas; - SIMATIC SD (`.s7dcl`, V21): text format with per-network `{ S7_Language := "LAD" }` pragmas, `RUNG`/`Contact`/`Coil` for LAD; - SimaticML XML (V20 and V21): `SW.Blocks.FB/FC/OB` with `FlgNet` parts and wires for LAD/FBD, `StructuredText` tokens for SCL. GRAPH (SFC) blocks: listed, analysed later. Synthetic fixtures written to Siemens' published formats; real exports from our own demo project once the TIA install is up. 🤖 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#1093