From 9cf0e493add5d08c0ca87ccfe54103b96ee3fbbc Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Tue, 1 Dec 2026 15:15:31 +0100 Subject: [PATCH] docs(plc): the TIA hardware export (AML) upload Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9 --- docs/guide/plc.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/guide/plc.md b/docs/guide/plc.md index 7fd4fb2..1c718a7 100644 --- a/docs/guide/plc.md +++ b/docs/guide/plc.md @@ -244,6 +244,36 @@ The API takes `devices` on `POST /api/v1/targets` and `PATCH naming it, and `GET /api/v1/devices/lookup?order_number=` what the advisories know of an order number. +## Siemens TIA Portal hardware export (AML) + +Without installing anything, a TIA Portal project's hardware reaches Prüfwerk as +TIA Portal's own hardware export: + +1. In TIA Portal, select the station (or the project) in the project tree. +2. Right-click, **CAx-Daten exportieren** (*Export CAx data*). TIA Portal writes + an AutomationML file, `*.aml`. +3. On the PLC/SPS target, upload the file as a **PLC project**. A file named + `*.aml` is read as a hardware export whatever format is picked. + +Each device item with a Siemens order number and firmware (CPUs, I/O modules, +drives, HMIs, switches) joins the target's controllers, named +`station / device`, and is matched against Siemens' advisories. Devices +without either (GSD devices of other vendors) are listed on the run as not +matched. A file that is not a hardware export is refused with `422` and a +`code` (`not_aml`, `no_devices`; `413 too_large` above 64 MiB). Exporting the +same station again under the same file name replaces it; stations exported +one by one stay side by side. + +Exported devices show on the **Steuerungen** page with the export they come +from; they change with the next export, not there. + +::: warning Checked against the format, not yet a real export +The reader follows AutomationML's "Automation Project Configuration" +recommendation (`TypeIdentifier`, `FirmwareVersion` on each device item). +Whether every TIA version writes both for every device is being checked +against real exports. +::: + ## Siemens TIA Portal projects (TIA export) A TIA Portal project reaches Prüfwerk as a **TIA export**: a zip that a TIA