IMDHMIControls LibraryShop main store

Explainer

Why an S7-1500 Modbus TCP client needs no GSDML for drives

Industrial networks Published 10 min read

Short answer

A GSDML file describes a PROFINET device for cyclic I/O, and a Modbus TCP drive is not one. The S7-1500 CPU reaches each drive over the same Ethernet port as ordinary TCP: one MB_CLIENT call per drive, addressed by IP address and TCP port 502, each with its own instance data block, while PROFINET and HMI traffic keep running.

On this page
  1. Does an S7-1500 Modbus TCP client need a GSDML file for a drive?
  2. How does Modbus TCP share the CPU's Ethernet port with PROFINET and HMI traffic?
  3. How do you address a Modbus TCP drive that has no device description?
  4. Which drive settings come before the first Modbus TCP read?
  5. Why does each drive need its own client instance and data block?
  6. What does a three-drive setup look like in real numbers?
  7. How do you prove the reads while PROFINET and HMI keep running?
  8. Questions asked

No. A GSDML file exists so a PROFINET controller can configure a device's cyclic I/O, and your drive is not becoming a PROFINET device for this job. Over Modbus TCP the S7-1500 reaches each ATV930 as ordinary TCP: call the MB_CLIENT instruction once per drive, address it by IP address and the Modbus TCP port 502, and let the drive's register map — not a description file — define every address you read or write. The CPU runs this beside live PROFINET I/O and HMI traffic on the same port, because TCP/IP and PROFINET real-time frames share the cable without getting in each other's way. This page gives the decision, the addressing rules, the drive-side settings, the per-drive instance setup and a three-drive worked example with the arithmetic shown.

Does an S7-1500 Modbus TCP client need a GSDML file for a drive? #

No: a GSDML file describes a PROFINET device's cyclic I/O to the engineering tool, and a Modbus TCP drive is not a PROFINET device in your project — its IP address, the Modbus TCP port and its register map carry everything the exchange needs.

A GSDML file is an XML device description that the engineering tool imports so a PROFINET controller can slot the device, assign it a name and address on the PROFINET network, and map its cyclic I/O into the process image. None of that machinery exists for a Modbus TCP transaction: there is no device object to insert, no slotting and no I/O mapping, so there is nothing for the file to describe. The plain GSD format plays the same role for PROFIBUS devices, which is why experienced answers say GSD files are a PROFIBUS matter; neither format has anything to do with Modbus.

Two pieces of documentation replace the file. The endpoint is the drive's IP address together with its Modbus TCP server port, TCP port 502. The register map is the drive maker's list of which addresses carry measurements, status words, commands and references, and which operation each address allows. Decide by those two alone: if you can name the endpoint and the registers, you can program the exchange, and if you cannot, no description file would have supplied them.

How does Modbus TCP share the CPU's Ethernet port with PROFINET and HMI traffic? #

Modbus TCP runs as standard TCP/IP on the CPU's PROFINET port, so it rides the same interface as PROFINET real-time frames and HMI connections without displacing them; the CPU keeps the protocol stacks apart, and the shared limits are connection resources and scan time, not the cable.

Siemens documents the MB_CLIENT instruction on S7-1200 and S7-1500 CPUs as one that communicates as a Modbus TCP client via the PROFINET connection, which is the formal version of the coexistence you are after. The PROFINET controller function keeps its cyclic I/O, its diagnostics and its update cycle; the HMI keeps its connections; each Modbus TCP client call opens one ordinary TCP connection to its server. The rhythms differ, because PROFINET cyclic data moves on the cycle the project assigns while Modbus TCP moves only when a request and response complete, but the protocols do not conflict.

What they share is the CPU underneath. Every Modbus TCP connection takes one of the CPU's connection resources, and every client call takes execution time in the scan, so the capacity figure to use is the one in your CPU's documentation for its firmware version. How one S7 CPU PN port carries Modbus TCP and S7 comms together works through the same port holding two protocol roles at once. Decision: run the Modbus TCP client on the integrated PROFINET port in parallel with PROFINET and HMI traffic, and set poll periods against the documented connection resources and your scan budget.

How do you address a Modbus TCP drive that has no device description? #

You configure the client call with the drive's IP address and the Modbus TCP port, a connection identifier unique within the CPU, the operation and register range taken from the drive's map, and a PLC buffer sized to the register count — the drive never enters the device tree.

The whole application definition for one transaction is four items: the endpoint, the operation, the register range and the buffer. In TIA Portal you will meet the integrated client function under the name MB_CLIENT; long-time users also know the library numbers FB1084 for the client and FB1085 for the server, but program against the instruction name and its help page, because a block number alone is not a specification of the calling interface.

Watch the one trap that costs hours: address notation. Drive manuals in the Modicon convention label the first holding register 40001, and the label and the address the protocol actually carries differ by that base, while some tools display addresses zero-based and some one-based — so the same register can show up one number apart between two interfaces. Resolve the pairing once, from the instruction's documentation against the drive manual's convention, and never by trial writes to a live drive.

If the peer on the other end is another PLC rather than a drive, what you must configure on the PLC side for Modbus TCP covers the server-side settings that have to match these client inputs.

Which drive settings come before the first Modbus TCP read? #

Set the drive up as the Modbus TCP server before you program anything: enable Modbus TCP on its Ethernet interface, give that interface a unique IP address reachable from the PLC, and read the command-source, reference-source and communication-loss settings out of the drive's communication manual first.

The ATV930 carries Modbus TCP on its onboard Ethernet interface, so no option module is needed for this job — but confirm which interface is actually fitted on your unit, because Altivar platforms take option modules for other fieldbuses and the governing manual is the one for the interface you have. Take the register map and interface settings from Schneider Electric's Altivar Modbus TCP communication manual so the revision matches your drive.

Record four things from the drive side before the first transaction. The IP addressing — address, subnet mask, gateway where routing is needed — unique for every drive on the subnet. Confirmation that Modbus TCP is enabled on that interface. A read-only test register: a documented status or measurement whose value you can also check at the drive's local display, with its address, data width and unit conversion known. And the command-source, reference-source and communication-loss behavior, because those decide what a network write does and what happens when the PLC stops answering.

The commissioning order — one drive addressed, one read proven, then the rest — is the same discipline as commissioning five VFD drives on one Modbus gateway, and it transfers unchanged from a serial gateway to direct Modbus TCP.

Why does each drive need its own client instance and data block? #

Because the instance data block holds the connection state and transaction buffers for one call, two client calls that share one instance overwrite each other's state; give every drive its own call, its own instance data block and its own receive buffer, and a connection identifier of its own.

The failure pattern is distinctive and cheap to avoid. With two calls on one instance, one drive's connection data or half-finished transaction is overwritten by the other's, and you see values from one drive in another drive's buffer, requests that never complete, or errors that hop between calls. The same mechanism is why two MB_CLIENT instances stop Modbus TCP reads from one server; there the discipline is several instances against one server, here it is one server per instance — the rule is one call, one instance data block, one buffer, in both cases.

Three habits keep the calls orderly. Keep each call's parameters and buffer stable while its transaction is active, because a request in flight must not find its destination rewritten. Sequence with the call's own busy, completion and error outputs rather than fixed timers alone. And poll at the rate the process needs: several client calls may run in the same scan, but demanding a 10 ms update from a value that changes once a second only spends connection resources and scan time for nothing.

What does a three-drive setup look like in real numbers? #

Say the drives sit at example addresses 192.168.10.11, 192.168.10.12 and 192.168.10.13 on a 255.255.255.0 subnet with the CPU at 192.168.10.1: that is three client calls, three instance data blocks, three TCP connections and one poll period applied to each drive in turn.

Item Drive 1 Drive 2 Drive 3
Example IP address 192.168.10.11 192.168.10.12 192.168.10.13
Connection identifier (example) 1 2 3
Instance data block own block, named by you own block own block
Receive buffer own buffer, sized to the largest read own buffer own buffer
Example poll period 100 ms 100 ms 100 ms

Check one transaction from drive 1 by arithmetic. Suppose the drive's map lists a status group as four consecutive holding registers at an example label of 40151 — use your own manual's label in the real project. The Modicon label base is 40001, so the protocol start address is 40151 - 40001 = 150, and the buffer must hold 4 registers × 2 bytes per register = 8 bytes.

Now check the load. With a 100 ms poll period, each drive is read 1000 ms ÷ 100 ms = 10 times per second, and three drives give 3 × 10 = 30 request-response transactions per second, each on its own TCP connection. That transaction count is three connections and three calls in the scan — a light load by CPU standards, but it is the number to compare against your CPU's documented connection resources, not the drive count alone.

Enable network command writes only after every read is proven and decoded. A Modbus write takes control of a live drive, so make the first ones with the drive able to be stopped locally and the motor safe to move, one deliberate transaction at a time.

How do you prove the reads while PROFINET and HMI keep running? #

Watch the client call's own outputs through a full request cycle, compare one decoded value against the drive's local display, then poll all three drives with the HMI and PROFINET traffic running — if every buffer tracks its own drive and no error output appears, coexistence is settled.

Work through five checks in order:

  • Endpoint reached: the connection diagnostics show an established connection to the drive's IP address on its Modbus TCP port. If it never establishes, the fault is addressing or the drive's server function, not the registers.
  • One complete transaction: the call reports a finished read with no error output active, with its parameters and buffer stable across the whole cycle.
  • One value you can trust: the decoded PLC value agrees with the drive's local display, within that display's resolution and the sampling difference between the two readings.
  • Instance independence: all three drives polled, each receive buffer holding its own drive's data — no duplicated values, no drive 2 data in drive 1's buffer.
  • Concurrent traffic unchanged: the HMI updating, PROFINET I/O healthy and updating, no new diagnostics on the PROFINET side while the Modbus polling runs.

When a check fails, the pattern names the layer. A connection that never establishes points at the link, the IP addressing, the network path or the drive's server function. A connection that establishes but returns errors points at the register address, the operation type, the request length or the drive's server settings. Values that arrive but look wrong point at address notation, data width, signedness and word order before they point at the drive. Writes that succeed while the motor ignores them mean the drive's command and reference sources are still on the terminals or keypad — move them to the network channel as the manual prescribes, with the communication-loss behavior you already decided.

Questions asked

Does a PROFIBUS drive need a description file?

Yes. A PROFIBUS device is made known to the controller with the vendor's GSD file, the predecessor format of GSDML, and is then configured as a PROFIBUS slave with its parameters and I/O data. The no-description rule in this article applies only to Modbus TCP over Ethernet. A serial Modbus RTU drive is a third case again: it is served through a serial communication module and its own instruction family, not through the TCP client call.

Can one client setup talk to a drive and to another PLC?

Yes, provided each endpoint keeps its own client call, instance data block and receive buffer. The instruction only sees an IP address, the Modbus TCP port and a register map behind them; whether the server is a drive, a power meter or another PLC changes nothing in the mechanics. What corrupts state is sharing one instance between endpoints, whatever those endpoints are.

What limits how many drives one S7-1500 can poll?

Each drive costs one TCP connection, one client call in the scan and the execution time of that call, so the ceiling comes from your CPU's documented connection resources for its firmware version plus the scan time your poll periods consume. Poll each drive at the rate its process value actually needs, and release connections you stop using through the call's connection-control input so the resource returns.

What if the same drive later joins the network as a PROFINET device?

Then and only then GSDML enters: import the vendor's file for the drive's PROFINET interface, insert the device on the PROFINET network and map its cyclic I/O as usual. On the PLC side your Modbus TCP client calls are untouched by that. Whether the drive can serve Modbus TCP and PROFINET cyclic I/O at the same time is a property of the drive, so check its communication documentation before counting on both.

Keep reading

  • How-to

    Connect an S7-1500 to Modbus TCP in TIA Portal

    Modbus TCPIP is Modbus TCP: Modbus frames carried over TCP on Ethernet, listening on port 502. On an S7-1500 you connect by calling MB_CLIENT over the integrated PROFINET port in TIA Portal. Choose client or server by which side initiates the request; most connections to an older system need the PLC as client.

    Industrial networks

  • Explainer

    CP 443-1 Modbus TCP server limit and the FB108 call pattern

    Yes — with the S7-OPENMODBUS/TCP V5.x package (2XV9450-1MB00) in STEP 7 V5.5 SP4, one CP 443-1 polls several Modbus TCP servers: one NetPro TCP connection and one FB108 instance DB per server. The ceiling is the CP's documented 64-connection total minus every connection it already carries, or the package's stated connection count if that is lower.

    Industrial networks

  • Troubleshooting

    Why an S7-1200 Modbus TCP client shows no data through a gateway

    When a Modbus TCP test utility reads the instrument through the gateway but the S7-1200 shows nothing, the Ethernet path already works; the PLC's request does not match it. Copy the working request's destination, unit identifier, function code, address and count, capture the PLC at a switch mirror port, and read MB_CLIENT STATUS to place the fault at connection, timeout or exception stage.

    Industrial networks