feat(tia): devices from a TIA hardware export (AML), no connector needed #1100

Open
sharang wants to merge 2 commits from feat/tia-aml into main
pull from: feat/tia-aml
2 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 5c695fcf8f docs(plc): the TIA hardware export (AML) upload
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 5m33s
CI / Check (pull_request) Successful in 23m20s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
2026-12-01 15:50:26 +01:00
Sharang ParnerkarandClaude Opus 5.5 8c43b2566c feat(tia): devices from a TIA hardware export (AML), no connector needed
A customer uploads TIA Portal's own hardware export ("CAx-Daten
exportieren", .aml) as a PLC project; a file named *.aml is read as one
whatever format was picked (#1097).

- The CAEX file is read after AutomationML's "Automation Project
  Configuration" recommendation: device items with a TypeIdentifier
  (OrderNumber:… or GSD:…) and FirmwareVersion, labelled with their
  station. Not yet checked against a real TIA export.
- Refused on upload with a code (not_aml, no_devices, too_large); the
  dashboard words TIA refusals on their own, no longer as SBOM ones.
- A new export replaces only an earlier one of the same file name, so
  stations exported one by one stay side by side.
- The scan notes devices it cannot match.

Fixes on the way:
- an upper-case X is part of real order numbers (6AV2124-0GC01-0AX0);
  only a lower-case x marks a catalog wildcard (HMIs were dropped);
- the Steuerungen page saved its whole list, exported devices included,
  into the hand-entered ones on any edit; the device list now says which
  export a device comes from, and only entered devices are saved or
  edited.

Tests: AML parsing, upload refusal/replacement/devices, and a scan-level
test of a TIA export plus an AML (SBOM entries and run notes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
2026-12-01 15:50:25 +01:00