MVP-2.2 · SimaticML block XML (SCL/LAD/FBD) → ST #276

Open
opened 2026-09-20 20:18:24 +00:00 by sharang · 0 comments
Owner

Goal

Most TIA logic does not arrive as plain SCL: Openness exports blocks as SimaticML XML, including graphical languages. To lint LAD/FBD blocks with the existing rule engine, translate them to Structured Text the way plcopen.rs already does for PLCopen LD/FBD.

What to change

  • Parse SimaticML block XML for FB / FC / OB / GlobalDB.
  • SCL-token blocks → ST directly (reusing MVP-2.1).
  • LAD / FBD FlgNet parts and wires → ST, mirroring the PLCopen LD/FBD translation in pipeline/plc/plcopen.rs.
  • Unknown block types, languages and attributes are recorded as unsupported on the scan run instead of failing the parse.

Acceptance

  • FB, FC, OB and GlobalDB SimaticML fixtures translate to ST and are linted.
  • A LAD and an FBD FlgNet fixture produce ST equivalent to the PLCopen translation of the same logic.
  • An unknown language or block type yields an unsupported entry naming the block, and the rest of the export still scans.
  • Golden baseline covers the translated output (MVP-2.5).
## Goal Most TIA logic does not arrive as plain SCL: Openness exports blocks as SimaticML XML, including graphical languages. To lint LAD/FBD blocks with the existing rule engine, translate them to Structured Text the way `plcopen.rs` already does for PLCopen LD/FBD. ## What to change - Parse SimaticML block XML for FB / FC / OB / GlobalDB. - SCL-token blocks → ST directly (reusing MVP-2.1). - LAD / FBD `FlgNet` parts and wires → ST, mirroring the PLCopen LD/FBD translation in `pipeline/plc/plcopen.rs`. - Unknown block types, languages and attributes are **recorded as unsupported** on the scan run instead of failing the parse. ## Acceptance - [ ] FB, FC, OB and GlobalDB SimaticML fixtures translate to ST and are linted. - [ ] A LAD and an FBD `FlgNet` fixture produce ST equivalent to the PLCopen translation of the same logic. - [ ] An unknown language or block type yields an `unsupported` entry naming the block, and the rest of the export still scans. - [ ] Golden baseline covers the translated output (MVP-2.5).
sharang added this to the Production MVP milestone 2026-09-20 20:18:24 +00:00
sharang added the enhancement label 2026-09-20 20:18:24 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#276