How-to
What an S7-1200 upload recovers and what the IO devices need
Short answer
The documented upload of an S7-1200 recovers the CPU program and the controller-stored PROFINET configuration, including device names, IP addresses and module arrangements. It recovers nothing stored in the ten third-party IO devices: install each vendor's GSDML description separately and back up each device's own settings with its vendor tool, then verify byte counts and addresses online before building on the project.
On this page
An upload from an S7-1200 recovers the program blocks and the hardware configuration the CPU itself stores, including the PROFINET device names, IP addresses and module arrangements you assigned in the controller. It recovers nothing that lives outside the CPU. For ten third-party PROFINET IO devices you still need each vendor's GSDML device description and each vendor's own backup of device-internal settings. Run the whole recovery read-only, and build on the recovered project only after the checks below pass.
What the upload gives you #
The documented command in STEP 7 under TIA Portal is "Upload device as new station (hardware and software)" on the Online menu. STEP 7 then transfers the hardware configuration and the software of the connected CPU into a new station in your project. For an S7-1200 that covers the user program blocks, the CPU properties, and the controller-side part of the PROFINET IO system: which devices exist, their device names and IP addresses, their configured module arrangement, and the parameters assigned to them in the IO configuration.
Treat the result as a snapshot to rebuild from, because why uploading a PLC program is not full source recovery applies here too: you get what the CPU stored, not the engineering history, comments or unused blocks that existed only in the lost project.
What the ten devices need on top #
A GSDML file is the XML device description a vendor supplies for its PROFINET product. The GSDML specification defines it as the description of a device's identification, structure, communication features and process data. That is capability, not the installed settings of your machine. TIA Portal needs the correct description to display and interpret each third-party device in the recovered station; without it the device appears as unidentified, or the configured module arrangement is rejected.
Installing the files has its own order of operations, and why the GSDML install route decides CODESYS device repository entries shows how the same description file lands differently depending on how it is imported.
The second gap is settings that live in the device itself. A vision system's inspection jobs, a drive's local parameters, an encoder's scaling: if a vendor configures them through its own tool or the device's web interface, the upload never sees them. Each of the ten devices needs its own backup through that vendor's documented procedure.
Recovery sequence #
- Preserve any existing engineering files first. Get the project archive and any device backups from the machine builder or owner if they exist, and keep an unchanged copy before opening or converting anything.
- Read the CPU identity online: order number, firmware version and operating state. Match your licensed TIA Portal release to that CPU and firmware before the upload, because a mismatch produces an incomplete or failed recovery.
- Connect one network interface on the engineering workstation to the machine PROFINET network and establish online access. Change no addresses on the controller or the devices.
- Run "Upload device as new station (hardware and software)" into a new, separate project. Read the diagnostics the operation reports and keep them with the project; they distinguish a connection problem from a missing device description.
- Inventory all ten IO devices. Record each device's identity and revision, its PROFINET device name, its IP address, the configured module arrangement, the process data sizes in bytes, and the input and output address ranges the program uses.
- Install the GSDML files for every device whose description is missing, obtained from each manufacturer or its authorized distributor and matched to the revision you recorded in step 5. Then recheck that each device displays with the module arrangement from the recovered configuration.
- Back up the device-internal settings with each manufacturer's documented tool, and label every backup file with the device's name and physical location so it can be matched to the right unit later.
- Compile the project, check hardware and software diagnostics, and archive the project together with the GSDML files, the vendor backups and the discrepancy notes. Make no download to the controller or any device during this work: a download overwrites the installed configuration you are recovering.
Worked example: a mapping check on one device #
Take one third-party IO block that the recovered project shows with four 16-channel digital input modules. Each 16-channel module occupies 2 bytes, so the block carries 4 × 2 bytes = 8 bytes of process input data, mapped in this example from input byte 112, so IB112 through IB119.
If the description file you install instead offers only 8-channel modules for that block, the same four slots deliver 4 × 1 byte = 4 bytes, IB112 through IB115. Every program access at IB116 or above now reads outside the block. Comparing the recovered byte count against the program's address ranges like this, device by device, is how you prove the recovered arrangement matches the machine rather than a similar catalog entry.
Do the same for the addressing. Give the ten devices their own addresses on the machine subnet, for example 192.168.0.11 through 192.168.0.20 with the controller at 192.168.0.1, and check each one online rather than assuming the recovered table matches what the devices actually hold.
Verify before you build on it #
| Deliverable | Where it lives | Recovered by the upload |
|---|---|---|
| Program blocks and CPU properties | CPU | Yes |
| Device names, IP addresses, module arrangement | CPU | Yes, verify each device online |
| GSDML description for each third-party device | Vendor files | No, install separately |
| Device-internal settings | Each device | No, back up with the vendor tool |
The recovery is complete when all of these hold: the project compiles without hardware faults, each of the ten devices displays with the module arrangement and byte count that matches the running machine, and each device's vendor backup exists and is labeled. Then the project is safe to develop on. If any device fails that check, treat the recovery as partial: good enough to read and understand the program, not good enough to download a replacement configuration, because downloading an arrangement that differs from the installed one can silence whole groups of IO at restart.
Questions asked
Does uploading from an S7-1200 write anything to the running machine?
No. Uploading reads the program and hardware configuration out of the CPU into your project; a download is the operation that writes into the controller. Keep the whole recovery read-only, and make no download to the CPU or to any of the IO devices until the recovered project has been checked against the machine. A download during recovery overwrites exactly the configuration you are trying to preserve.
Where do the GSDML files for the third-party devices come from?
From each device manufacturer or its authorized distributor, matched to the model and revision you actually have. Read the device identity and revision from its diagnostics pages or nameplate first, then obtain the matching description file. A look-alike file describing a different module range silently changes the process data mapping, which is exactly the failure the worked example in this article shows.
Are the PROFINET device names and IP addresses part of the upload?
Yes. The controller stores the device name, IP address and module arrangement of each IO device as part of its hardware configuration, and the documented upload command recovers them with it. They are still worth checking device by device online, because a device whose stored name or address has drifted from the project reports a fault at startup no matter what the project says.
Can TIA Portal configure the third-party devices completely once the GSDML is installed?
Only the controller-side part. Parameters engineered into the IO configuration, such as the module arrangement and controller-assigned settings, come back with the upload. Settings that live inside each device and are set through the vendor's own tool or web interface are invisible to TIA Portal and need a separate backup per device. Without those backups the network runs, but individual device behavior cannot be reproduced after a replacement.