How-to
S7-1200 to S7-300 data exchange: I-Device or PUT/GET
Short answer
You do not need a PN/PN coupler. Enable PUT/GET on the S7-1200 and exchange DB ranges over an S7 connection, or export the S7-1200 as an I-Device GSD and mount it in the S7-300's IO system. One PROFINET port carries the PLC link, the KTP-700 and WinCC together.
On this page
- Do you need a PN/PN coupler to link an S7-1200 to an S7-300?
- Which method should you choose, PUT/GET or an I-Device?
- How do you set up PUT/GET between the S7-1200 and the S7-300?
- How do you run the S7-1200 as an I-Device under a STEP 7 V5.5 IO controller?
- Can one S7-1200 PROFINET port carry the S7-300 link, the KTP-700 HMI and WinCC at once?
- Which STEP 7 versions must the engineering stations run?
- How do you prove the exchange works before handover?
- Questions asked
Skip the PN/PN coupler. An S7-1200 and an S7-300 exchange data over PROFINET with nothing between them but a switch: either the S7-1200 calls PUT and GET over an S7 connection, or it presents itself as an I-Device whose GSD file the S7-300 imports in STEP 7 V5.5. The same single Ethernet port that carries the PLC-to-PLC exchange also carries the KTP-700 HMI and the WinCC SCADA link, as long as every partner gets a unique IP address in one subnet and its own connection resource in the project. This article walks through both methods, the version constraints on the engineering stations, and the commissioning test that proves the link before handover.
Do you need a PN/PN coupler to link an S7-1200 to an S7-300? #
No — you do not need a PN/PN coupler, because the S7-1200 and the S7-300 speak S7 communication natively over the same PROFINET Ethernet port, and either PUT/GET blocks or an exported I-Device GSD file moves the data between the two CPUs directly. A coupler only earns its slot when two networks must stay electrically and configurationally separate; in one subnet it is a second device to buy, power, configure and diagnose for nothing.
Both CPUs also carry their other duties on the same wire. The S7-1200 answers its HMI and SCADA partners while it serves the S7-300, and the S7-300 keeps its own PROFINET devices cycling. Treat the exchange as one more connection in the project, not as a separate network.
Which method should you choose, PUT/GET or an I-Device? #
Pick PUT/GET when the exchange is program-driven — blocks that read and write shared DB ranges on request — and pick the I-Device when the S7-300 must see the S7-1200 as cyclic process I/O inside its own PROFINET IO system. Both run on the standard TCP/IP PROFINET port of each CPU; neither needs an extra communication module.
The differences that decide it:
- PUT/GET needs no GSD file anywhere. The S7-300 side is a data-block exchange, so the plant keeps its existing STEP 7 V5.5 program and you add only the partner DBs. The block calls live in the S7-1200, which suits a machine supplier who owns the new code and must not rewrite the legacy program.
- I-Device moves the transfer areas through the S7-300's process image every PROFINET update, with no block call on either side. It suits exchange of fixed real-time signals, but it requires the GSD import and a hardware-configuration change in the S7-300 station — a bigger intervention on a running legacy line.
If the client cannot take a hardware-configuration download on the S7-300 this week, start with PUT/GET and treat the I-Device as the cleaner long-term shape.
How do you set up PUT/GET between the S7-1200 and the S7-300? #
The whole setup is four steps: permit PUT/GET in the S7-1200's protection settings, create one S7 connection to the S7-300's IP, call the PUT and GET instructions on the S7-1200, and provide matching DBs on the S7-300. The S7-300 needs no checkbox and no GSD file for this method; it answers requests that arrive as ordinary S7 communication on TCP port 102.
-
In TIA Portal, open the S7-1200's Device configuration, select the Properties tab, go to Protection & Security, and tick the box for Permit access with PUT/GET. On current S7-1200 firmware this box ships cleared, so nothing leaves or enters the CPU over PUT/GET until you set it.
One safety note: that checkbox opens the CPU to writes from any partner that can reach it, so keep this cell on a segmented network and do not enable it on a controller reachable from a flat office-side network.
-
In the network view, add an S7 connection on the S7-1200 with an unspecified partner, enter the S7-300's IP address and its rack and slot, and note the connection ID the project assigns.
-
Call the PUT and GET instructions from the S7 communication folder of the S7-1200's instruction catalog. Each call needs the connection ID from step 2, a rising-edge trigger, the remote address — a pointer to the partner's DB range — and the local data range. The names and the sketch below are illustrative; use the parameter names your TIA Portal version shows.
// Illustrative layout — variables are mine, sizes are the example's putTrig : Bool := FALSE // rising edge from a 100 ms timer bit connId : DInt := 1 // the S7 connection from the network view // PUT: local DB10, bytes 0–9 -> S7-300 DB20, bytes 0–9 // GET: S7-300 DB30, bytes 0–9 -> local DB15, bytes 0–9 -
In STEP 7 V5.5, open NetPro only to confirm nothing conflicts, and create DB20 and DB30 on the S7-300 with the lengths the calls address. Download the blocks, then download the S7-1200 project with the connection.
Worked example of the payload rate: each PUT moves 10 bytes per trigger, so at one trigger every 100 ms the write direction carries 10 B ÷ 0.1 s = 100 B/s; add the GET and the combined exchange is 2 × 100 B/s = 200 B/s. If the application needs faster or larger exchange, widen the ranges or shorten the trigger — the method does not cap the size, the CPU's documented connection resources and cycle time do.
How do you run the S7-1200 as an I-Device under a STEP 7 V5.5 IO controller? #
The S7-1200 becomes a PROFINET device in five steps: switch its interface to I-device operation, define the transfer areas, export the GSD file, import it into STEP 7 V5.5, and slot the device into the S7-300's IO system. After that the S7-300 handles the S7-1200 like any remote IO station.
- In TIA Portal, open the S7-1200's PROFINET interface properties and set the operating mode to I-device communication.
- Add the transfer areas. For this example use 16 bytes input plus 16 bytes output, so the device exchanges 16 + 16 = 32 bytes per IO update — 16 bytes arriving as inputs in the S7-300's process image and 16 leaving as outputs.
- In the Inspector window of the interface, go to Operating mode > I-device communication and select Export. TIA Portal writes the device as a GSDML file that STEP 7 V5.5 accepts.
- In STEP 7 V5.5, open HW Config and install the exported GSD file from the Options menu, then drag the new device from the catalog onto the PROFINET IO system of the S7-300 — its PN port on the CPU or its CP 343-1.
- Assign the IP address and device name, and confirm the slots the transfer areas occupy; in HW Config they appear as IO slots, and the S7-300 program reads and writes them as process-image bytes or as direct peripheral access.
Choose this method when the exchanged signals are cyclic and fixed — interlocks, setpoints, status words — and the legacy program should keep working untouched except for new addresses.
Can one S7-1200 PROFINET port carry the S7-300 link, the KTP-700 HMI and WinCC at once? #
Yes — the one physical port handles several logical connections at the same time, so give every partner a unique IP inside one subnet and reserve a separate connection resource for each in the S7-1200 project. Configure each partner as if it were the only one; the port multiplexes them.
| Partner | Example address | Connection entry on the S7-1200 |
|---|---|---|
| S7-1200 itself | 192.168.0.1 | mask 255.255.255.0 |
| S7-300 (PUT/GET or IO controller) | 192.168.0.10 | one S7 connection, or one IO device slot |
| KTP-700 HMI | 192.168.0.20 | one HMI connection |
| WinCC SCADA station | 192.168.0.30 | one S7 connection for the SCADA channel |
| Engineering PG | 192.168.0.100 | online access when needed |
Every address above sits in the 192.168.0.0/24 subnet of the example, so no router and no coupler belong in the path. Three or four concurrent connections are a light load for an S7-1200, but the exact number of connection resources per CPU is fixed by its order number and firmware, so size the full partner list against the system manual entry for your CPU before the final download. Watch total traffic too: one port shares its bandwidth, so do not expect full-speed cyclic exchange, SCADA polling and HMI updates to hit their worst case at the same instant.
Which STEP 7 versions must the engineering stations run? #
Keep the S7-300 on the STEP 7 V5.5 station it already has and write the S7-1200 project in a TIA Portal version that is installed on the other station, because a TIA project does not open in an older TIA release. In the setup this article targets, the S7-300 station runs STEP 7 V5.5 SP3 and the S7-1200 project is written in TIA Portal V13 — both stay as they are; only the new machine's station needs TIA installed.
Two things follow. First, if a colleague sends you a TIA project saved in a newer version, either upgrade the engineering station or have them save it for your version; recreating a small S7-1200 station from scratch is often faster than a version upgrade on site. Second, the GSD import in step 4 works in V5.5 as delivered, so the I-Device method needs no service pack. If the S7-300 program itself will move to TIA Portal later, that is a separate project: the walkthrough for migrating an S7-300 project from STEP 7 v5.5 to TIA Portal covers the conversion order, and what STEP 7 is in a PLC project and which one you need maps the package names before you order anything.
How do you prove the exchange works before handover? #
Prove both directions before handover: force a marker bit in the S7-1200 watch table and watch the mapped bit change in the S7-300's watch table in STEP 7 V5.5, then do the same test from the S7-300 side. A link that only ever sends one way is not a data exchange.
Run the sequence in this order:
- With the PUT/GET method, force a bit inside the local range of the GET call and confirm the partner DB bit on the S7-300 changes; then set a bit in the S7-300's DB and confirm it arrives in the S7-1200's local range. Check the GET and PUT status outputs read no error after each edge.
- With the I-Device method, force a bit in the S7-1200's output transfer area and confirm the matching input byte in the S7-300's process image follows within one IO update; then drive a byte the other way.
- Bring the KTP-700 online and confirm its tags still update while the PLC-to-PLC exchange runs, and do the same with the WinCC station — this proves the connection resources were reserved correctly for all partners.
- Leave the watch tables live for a few minutes with the machine cycling; a connection configured with the wrong rack, slot or device name usually drops in that window, not in the first second.
When the same station later shows a warning on open because TIA Portal has written to it, the fix for the STEP 7 V5.5 warning after TIA Portal wrote an S7-300 is the first thing to check. If all four steps pass, hand the machine over: the exchange, the HMI and the SCADA all share the one port you already had.
Questions asked
Can the S7-1200 stay an IO controller for its own remote I/O while it is also an I-Device?
Yes. Both roles run on the same PROFINET interface at the same time: the devices the S7-1200 controls keep updating on their own slots while the exported transfer areas serve the S7-300 as cyclic IO data. Configure the controller role and the I-device role in the same operating mode page of the interface.
Why do PUT and GET report an error right after download?
Check four things in order. The permit checkbox must have been ticked before the hardware configuration was compiled and downloaded, not after. The connection ID in the call must match the S7 connection in the network view. The partner DB on the S7-300 must exist and be at least as long as the addressed range. The rack and slot in the connection must match the S7-300 station.
Do both CPUs have to sit in the same subnet?
Both methods assume direct Ethernet reachability, so keep every partner address inside one subnet with an identical mask and a plain switch between them. If plant policy separates the cell networks, a router can carry the S7 connection, but configure the partner address as routed and accept the extra latency that routing adds to each exchange.
Which method costs the S7-300 less scan time?
The I-Device costs the S7-300 program nothing, because PROFINET cycles the transfer areas through the process image on its own. With PUT/GET the block calls run entirely on the S7-1200 and the S7-300 only answers them as a communication server, so the S7-300 scan stays untouched either way, but the I-Device adds no program logic at all.