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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.rsalready does for PLCopen LD/FBD.What to change
FlgNetparts and wires → ST, mirroring the PLCopen LD/FBD translation inpipeline/plc/plcopen.rs.Acceptance
FlgNetfixture produce ST equivalent to the PLCopen translation of the same logic.unsupportedentry naming the block, and the rest of the export still scans.