IMDHMIControls LibraryShop main store

Explainer

Why an AB7634 Modbus TCP PROFIBUS DP-V1 gateway needs a client

Industrial networks Published 8 min read

Short answer

The AB7634 X-gateway is a slave on both sides: a Modbus TCP server on TCP port 502 and a PROFIBUS DP-V1 slave. It never initiates a transaction, so a PROFIBUS DP master and a Modbus TCP client must both drive its shared internal image. If your Modbus TCP device must be polled, this part number has the wrong role on the Modbus side.

On this page
  1. What the AB7634 is on each network
  2. What a slave-only design does to the architecture
  3. How large the shared image may be
  4. Configuring both sides
  5. Tests that prove each direction
  6. Faults that trace back to the both-slave role
  7. The decision, case by case
  8. Questions asked

The order code answers the architecture question before you open a configuration tool. The Anybus X-gateway AB7634 is a Modbus TCP slave on the Ethernet side and a PROFIBUS DP-V1 slave on the bus side, and a device that is a slave on both networks never starts a transaction. Data crosses only when a DP master drives the PROFIBUS side and a Modbus TCP client drives the Ethernet side, both of them reading and writing one shared internal image. If the plan was to poll a Modbus TCP meter or drive through this gateway, the part number has the wrong Modbus role: take the client-role variant or add a client. Every configuration step below follows from that one fact.

What the AB7634 is on each network #

On Ethernet the gateway is a server: it listens on TCP port 502 and answers requests from whichever client connects. It never opens a connection and never sends a request of its own. On PROFIBUS it is a DP-V1 slave: the master owns the bus cycle, parameterizes the station, and exchanges the cyclic process image with it, while the DP-V1 acyclic services on top serve diagnostics and parameter tools. Inside the housing, two protocol stacks copy across one shared data image; nothing in the gateway originates traffic on either side. The product page's description, a gateway that connects Modbus TCP equipment to DP-V1 control systems, holds only for equipment willing to act as the client.

What a slave-only design does to the architecture #

Three consequences decide whether this gateway fits the job.

First, with no Modbus TCP client on the network, the DP master reads an image nobody updates. The values sit at zero or at whatever the last client left, while every indicator on the gateway looks healthy; the missing partner is invisible from the PROFIBUS side.

Second, the two sides run on unrelated clocks. The master scans its own cycle; the client writes whenever its program reaches the exchange. A value in the PLC's input area is as old as the slower side, and no gateway setting synchronizes them. If the PLC needs fresh values every cycle, the client's update period is the number to engineer, not the bus cycle.

Third, the client side carries its own configuration burden, from addressing to register areas, covered step by step in what you must configure on the PLC side for Modbus TCP.

And if the field device is itself a Modbus TCP server waiting to be polled, stop here: this part cannot do it. Role decides feasibility across this gateway family, not only on PROFIBUS. Why an AB7961 gateway will not link an FX5U to EtherCAT is the same lesson one network over.

How large the shared image may be #

The PROFIBUS DP specification caps one slave at 244 bytes of cyclic input and 244 bytes of cyclic output per data exchange. For this gateway family on the DP-V1 slave side, the Anybus PROFIBUS integration documentation states a working envelope on top: all cyclic I/O buffers together stay within 416 bytes, with neither direction above 244. Size against both numbers together, because the total binds first; 244 bytes in each direction would already exceed it.

Ignore the 512-bytes-in-each-direction figure quoted for the family's PROFIBUS master gateways: it describes parts where the Anybus unit is the DP master, and the AB7634 is not one of those.

Worked sizing example. A machine carries 16 bytes from the Modbus TCP client into the PLC and 12 bytes back:

  • Client-to-PLC: 16 ÷ 2 = 8 words, so the client writes 8 registers, and the DP master configures a 16-byte input module.
  • PLC-to-client: 12 ÷ 2 = 6 registers, and the DP master configures a 12-byte output module.
  • Envelope check: 16 + 12 = 28 bytes total, inside 416, and each direction clears its per-direction cap.
  • Expansion check: adding a 240-byte block in the client-to-PLC direction gives 28 + 240 = 268 bytes total, still inside 416, but that direction alone becomes 16 + 240 = 256 bytes, past 244. The block must be split or trimmed even though the total looks comfortable.

The gateway's web page is where the byte counts are set, and the master's module list must equal them exactly; that equality is what the master checks at parameterization.

Configuring both sides #

  1. Pull the installation guide and the user manual from the manufacturer before touching parameters; for this variant the installation guide stands at revision 2.02. Read from them how the gateway takes its IP address and its PROFIBUS station address, because the methods are fixed by the document, not by habit.
  2. Bench first: put the gateway and the client on one flat subnet, for example the gateway at 192.168.1.10 and a laptop test client at 192.168.1.50, and prove the client reaches the gateway before you configure the PLC side.
  3. Open the gateway's web page. Each network side has its own tab, and the PROFIBUS DP-V1 tab is where the slave interface is configured; the manual points to chapter 5.4.4 for it. Enter the input and output byte lengths from the sizing above and record them.
  4. Lay out the register areas from the manual's register map: the area the client writes, which surfaces in the master's inputs, and the area the client reads, which carries the master's outputs. Give each writable area exactly one writing client.
  5. Import the GSD file issued for the AB7634 itself, since a sibling model's file installs cleanly and identifies wrongly, then insert the station on the DP line and choose modules whose byte lengths equal the web-page numbers. Set the station address to match, download the hardware configuration, and put the master in run.
  6. Point the Modbus TCP client at the gateway address and the agreed areas, then move to the tests below.

Tests that prove each direction #

Run these in order and do not combine directions until each passes alone.

  • Ping the gateway from the client machine. Steady replies clear the path; replies arriving in duplicate pairs point to two stations sharing one address.
  • Connect a Modbus TCP test client and read the first register of the image. A normal response clears the server side. An exception reply means the server answered but rejected the request, which means a wrong unit identifier or register area; a timeout means the request never arrived.
  • In the DP master diagnostics, expect the station in data exchange with no parameter or configuration fault. A configuration fault almost always means the master's module lengths do not equal the byte counts set on the web page.
  • Write a pattern from the client: 0xAA55 into the first register, then 0x55AA. Expect 0xAA then 0x55 as the first two bytes in the master's input area, in that order. Reversed order points to a word swap; a shifted start point points to a register offset error.
  • Drive the pattern the other way: force values in the master's output area and read them back at the agreed client registers.
  • Pull the Ethernet plug, then the DP connector, one at a time, and record what the surviving side sees: frozen or cleared values, according to the configured behavior. If any signal crossing this gateway takes part in a stop or a protective action, prove that fail-state on the bench before production.

Faults that trace back to the both-slave role #

  • Inputs stuck at zero with every indicator green: no client is writing. Check for an open TCP session before touching the PROFIBUS side.
  • Configuration fault at parameterization: the module list and the web page disagree on byte counts, and the gateway shows no data exchange until they match.
  • Wrong values that pass the ping and the connection test: register numbering conventions differ, so the same cell reads as 40001 in one tool and as offset 0 in another. Decide the convention once and settle it with the pattern write rather than with live process values.
  • A 32-bit value that flips between two plausible numbers: the master's PLC and the client's tool assemble the two words in opposite order, or a read spanning two registers catches one old word and one new one. If the manual for your revision documents a consistency mechanism, use it; otherwise add a sequence counter to the layout and compare it before trusting the value.
  • Bus hardware: termination at both cable ends and correct A/B lines still decide more installations than any parameter on either side.

The decision, case by case #

  • The Modbus TCP device must be polled, as most meters and drives are: this part cannot do the job. Change to the client-role variant of the same gateway family or put a separate client device in front, and do not commission the AB7634 against a server.
  • A client already exists, whether a SCADA node, a second PLC, or a commissioning laptop: the AB7634 fits. Size the image inside the slave-side envelope, set the byte counts once on the web page, mirror them in the master's module list from the manufacturer's GSD, and prove both directions with pattern writes before live data flows.
  • No client exists and none is planned: the image stays dead however healthy the DP side looks. If the client role must live in the cabinet rather than in an existing SCADA node, that is a computer choice, and an industrial mini PC beside the controller is the usual host for a permanent Modbus TCP client; the client-side configuration above then applies to it.

Questions asked

Can the AB7634 poll a Modbus TCP drive or power meter?

No. Its Modbus TCP side is a server: it answers requests and never issues them, so a device that waits to be polled will never be read. The same X-gateway family ships a Modbus TCP client variant with the PROFIBUS slave side for exactly that polling job, so change the part number rather than the configuration. A separate client device in front of this gateway also works, at the cost of an extra station.

Does the PROFIBUS station need its baud rate set to match the master?

No. A DP slave detects the bus rate the master runs, so the settings that matter are the station address and the module list. Set the address by the method the installation guide prescribes for this variant, make the master's module byte lengths equal the gateway's web-page values, and the station should join data exchange on any standard PROFIBUS rate.

How many Modbus TCP clients can connect to the gateway at once?

Read that limit from the manual for your gateway revision rather than assuming one, because the accepted session count is a firmware property. Design ownership regardless of the number: exactly one client writes each writable register area, because two writers interleave values in the same cells without any error on either side. Multiple read-only clients are harmless.

Where should a reversed 32-bit value be fixed?

Fix it once, at the edge where the value is assembled. If the client's tool or driver offers a word-order or swap option for 32-bit values, set it there and leave the PLC code untouched; otherwise add a swap in the PLC on the words after they arrive. Do not compensate with a register offset, because a swap and an offset look alike in live data but behave differently on the pattern test.

Keep reading

  • Explainer

    Why a MicroLogix needs a Modbus gateway to join PROFIBUS

    No MicroLogix has a native PROFIBUS interface, and the 1769-DPM is documented for CompactLogix only. Run each MicroLogix 1100, 1200 or 1500 as a Modbus RTU slave on its serial port, polled by a gateway that is Modbus RTU master and PROFIBUS DP slave. The bus master sees only the gateway's process image, and data age is the serial poll cycle plus one bus cycle.

    Industrial networks

  • Selection guide

    Choosing how an S7 PLC talks to a Mitsubishi Q or AnS PLC

    Yes — the link exists on every generation. Put Modbus TCP (QJ71MT91) or Modbus RTU (QJ71MB91) against a Mitsubishi Q series PLC, PROFIBUS master or slave against an AnS or QnAS because those generations had no Modbus modules, and a protocol-converting gateway where the two sides share no interface.

    Industrial networks

  • Selection guide

    Choosing a CP-341 or gateway for an S7-300 Modbus RTU slave

    For an S7-300 that must answer as a Modbus RTU slave, a PROFIBUS DP-to-Modbus RTU gateway is the lower-effort route: no separately licensed loadable driver and no serial code in the CPU. Choose the CP-341 with its Modbus Slave (RTU) driver only when the link must be independent of the fieldbus or when you need a per-write flag such as CP_NDR. Before ordering, confirm the exact gateway variant runs DP slave and Modbus RTU slave simultaneously.

    Industrial networks