IMDHMIControls LibraryShop main store

Troubleshooting

Why a Profibus gateway cannot trade input bytes for outputs

Industrial networks Published 7 min read By IMDHMI controls team

Short answer

PROFIBUS budgets each direction separately: a DP-V0 slave carries at most 244 bytes of inputs and 244 bytes of outputs, so unused inputs never become 488 bytes of outputs. TIA Portal accepts the oversize modules because it checks the device description, not the bus behind the gateway. The smaller side governs, so split the data across a second gateway or cut the payload.

On this page
  1. Each direction has its own budget
  2. Where the limit is enforced
  3. Why TIA Portal accepts the oversize set
  4. What the fault looks like on the equipment
  5. Worked example with real numbers
  6. Cut the payload or add a second gateway
  7. Configure both sides identically
  8. Prove the bytes cross
  9. The decision
  10. Questions asked

No, the trade does not exist. On its PROFIBUS side the gateway is a DP-V0 slave, and that specification budgets input data and output data separately: each direction has its own ceiling per slave, and the two are not a shared pool. When the datasheet says 244 bytes in and 244 bytes out, it means exactly that, so a plan with no inputs still cannot exceed the output figure, and 488 bytes of outputs is not representable on the segment. TIA Portal accepts eight 128-byte output submodules anyway, because the hardware configuration validates the gateway's device description and the controller's totals, not the PROFIBUS bus behind the gateway. The refusal appears later, at the gateway or at the DP master. Here is where the limit sits, what the fault looks like, and the configuration that works.

Each direction has its own budget #

The ceiling comes from the DP-V0 slave specification, not from the gateway vendor: the cyclic input area and the cyclic output area of a slave are bounded on their own, and no parameter in the specification merges or reallocates them. That is why gateway datasheets print the PROFIBUS side as two separate lines. Read both lines, and any combined figure as well, because a product may be stricter than the specification: one documented gateway between Interbus and PROFIBUS lists 244 bytes in and 244 bytes out but caps both directions together at 344 bytes.

The same separation holds on the PROFINET side. The example gateway's rating of 512 bytes in and 512 bytes out is two allowances, not a 1024-byte pool. There the gateway is an IO device like any other and cannot take the controller role, as covered in why a PROFINET IO-device gateway cannot be a controller.

Where the limit is enforced #

Hop Who enforces the limit What is checked
IO controller to gateway on PROFINET Gateway firmware at parameterization; the IO controller checks its own totals The configured submodules against the device description and the per-direction rating
Inside the gateway Gateway firmware The mapping from one process image to the other, direction by direction
Gateway to DP master on PROFIBUS The DP-V0 slave definition, applied when the master parameterizes the slave The announced input and output lengths against the per-direction ceiling

A configuration can pass the compile and still die at either end: at the first row when the sums exceed the rating, at the third when the planned mapping cannot exist under the ceiling.

Why TIA Portal accepts the oversize set #

TIA Portal checks each configured submodule against the gateway's device description, the GSD file you imported, which is normally an XML file with its icons, confirming that a module with that length is offered for that slot. It also checks the configured data against the IO controller's own limits. What the check cannot see is the PROFIBUS side: that budget lives in the gateway's firmware and in the DP master's parameterization, and neither is part of the PROFINET device description. Eight 128-byte output submodules compile cleanly because each submodule is individually legal; the sum of 1024 bytes is nobody's check but yours. A clean compile is a statement about the description file, not about the segment.

What the fault looks like on the equipment #

Read the symptoms in this order, physical layer first:

  1. PROFINET port LEDs off or steady: a cabling or switch problem, not a size problem. Fix the link before touching the configuration.
  2. Link up but the gateway holds a configuration or parameter fault, on its LEDs and in the TIA Portal online diagnostics: the gateway refused the configured set at parameterization. Compare your sums with the rating.
  3. PROFINET side in data exchange but the DP master shows the slave in fault or never reaching data exchange: the announced lengths do not fit the ceiling or do not match what the gateway expects. Shorten or match the per-direction lengths.
  4. Everything green yet the tail of the mapping reads zero: the two sides announce different lengths, or the cause is addressing rather than size, the same family of symptom as an S7-300 PROFIBUS gateway that is detected but reads no I/O data.

The exact wording of the error differs from product to product; read the diagnostic buffer text of the controller and of the master, and the LED table in the gateway manual.

Worked example with real numbers #

Illustrative inputs: a gateway rated 512 bytes in and 512 bytes out on the PROFINET side, the DP-V0 figures on the PROFIBUS side, and a plan of eight 128-byte output submodules with no inputs at all.

Check Arithmetic Verdict
Configured outputs 8 × 128 bytes = 1024 bytes Placed without complaint in TIA Portal
Against the PROFINET output rating 1024 − 512 = 512 bytes over Refused at parameterization
Against the DP-V0 output ceiling 1024 − 244 = 780 bytes over Not representable in any case
The no-inputs plan, outputs only 488 − 244 = 244 bytes over The input budget stays unused

Neither plan survives the first arithmetic that matters. Suppose the field side genuinely needs 300 bytes of outputs and 100 bytes of inputs. Two ways out:

Option Arithmetic Result
Cut the payload Convert 28 setpoints from 32-bit reals to 16-bit integers: 28 × 2 = 56 bytes freed; 300 − 56 = 244 Outputs sit exactly at the ceiling; inputs fit easily
Split across two gateways Gateway 1 takes 244 bytes of outputs, gateway 2 takes 300 − 244 = 56 bytes; the inputs ride on gateway 1 Each slave address stays within its own two budgets

The cut option leaves zero margin: one more output byte and the plan belongs on a second gateway.

Cut the payload or add a second gateway #

  • Add a second gateway. Each one is its own DP slave with its own station address and its own two budgets, so the outputs spread across two addresses.
  • Pack bits. Sixteen status flags sent as sixteen single bytes become two bytes, unpacked in the PLC with shifts and masks.
  • Send setpoints as 16-bit integers where range and resolution allow, as in the worked example.
  • Move slow values such as meter totals and device parameters to acyclic transfer where both ends support it, and keep the cyclic bytes for what the loop needs every scan.
  • Check the device behind the gateway. If it is itself a DP slave, its own data profile governs and is often far below the ceiling; an EM277 configured as a PROFIBUS DP slave carries only what its profile declares, as configuring the S7-200 EM277 as a PROFIBUS DP slave shows.

Configure both sides identically #

  1. List every signal that crosses the gateway with its byte length, split into controller-to-field and field-to-controller.
  2. Total each direction on its own. Both totals must sit at or under the ceiling for that slave address, and the PROFINET-side sums at or under the rating.
  3. In TIA Portal, replace the oversize submodule set with modules whose combined output length equals the PROFIBUS-side output total, in the order the gateway is parameterized for.
  4. Enter the same lengths in the gateway's own configuration tool or in the DP master's slave configuration, so both sides announce identical sizes.
  5. Download to controller and master, then restart the gateway if its manual requires that for configuration changes.

Prove the bytes cross #

  1. Confirm the gateway is in data exchange in the TIA Portal online view with no diagnostic entry.
  2. Confirm the DP master reports the slave in data exchange with no configuration or parameter fault.
  3. Write distinct patterns to the first and last output byte, for example 16#A5 first and 16#5A last, and read both on the field side. Those bytes drive real actuators: run this test with the machine in its safe state or the actuators inhibited.
  4. Repeat in reverse for inputs: force known values on the field side's first and last input bytes and read them in the controller.
  5. Judge the last byte. First bytes arriving with the tail stuck at zero means the announced lengths differ between the two sides; identical patterns at both ends mean the mapping is whole.

The decision #

  • Planned outputs above the ceiling with no inputs needed: the trade does not exist. Commit to a second gateway or to cutting the payload down to the ceiling; nothing else moves the number.
  • TIA Portal compiled the oversize set: treat the compile as unverified, redo the sums before download, and expect the refusal at the gateway or at the DP master if you download anyway.
  • Both directions at or under the ceiling and the PROFINET sums within the rating: proceed. Set both sides to identical lengths, download, and close out with the pattern test on the first and last byte of each direction.

Questions asked

Does PROFIBUS DP-V1 raise the output limit?

No. DP-V1 adds acyclic record transfer, alarms and parameter access on top of the cyclic data; the cyclic process image keeps the same ceiling of 244 bytes per direction. What DP-V1 gives you is a second channel: slow values such as meter totals or device parameters can travel over acyclic records while the cyclic bytes carry only what the control loop needs every scan.

Is the ceiling per gateway or per PROFIBUS segment?

Per slave. The budget belongs to the slave's data area, not to the cable, so an otherwise empty segment or a fast baud rate adds nothing. Segment load changes the update time, not the byte count: every configured byte lengthens the DP cycle at the chosen baud rate, and that cycle time is the number to watch when more bytes or more slaves join the segment.

Can a second gateway share the same PROFIBUS cable?

Yes. Each gateway is a separate slave with its own station address and its own two budgets, and one DP master can parameterize both on the same cable. Give the second gateway the next free station address, add it to the master's station configuration, then re-check the update time, because the cycle now carries both slaves' bytes.

What will TIA Portal actually reject?

It rejects a submodule the device description does not offer for that slot, and totals above the IO controller's own limits; the CM 1542-1 communication module, for example, stops at 8192 bytes of output data over all its PROFINET IO devices. What the compile does not audit is the PROFIBUS budget behind the gateway, so that column of bytes remains your check before every download.

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

  • Explainer

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

    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.

    Industrial networks

  • Explainer

    Why an S7-200 with EM277 cannot be a PROFIBUS master

    No — an S7-200 with an EM277 cannot take the PROFIBUS DP master role. The EM277 is documented only as a DP slave module and the CPU222 only as an MPI slave, so the network needs a controller with an integrated DP master, such as an S7-300 CPU315-2 PN/DP, with the IO-Link master module added as its DP slave.

    Industrial networks