IMDHMIControls LibraryShop main store

Troubleshooting

S7-400 to S7-1500 PUT/GET over PROFIBUS: why it stalls

Industrial networks Published 5 min read

Short answer

PUT/GET between a STEP 7 V5.5 S7-400 and an S7-1500 over PROFIBUS stalls when GET is level-triggered, when source and destination lengths differ, or when the S7-1500 DB is optimized. For a 2600-byte dataset, move the transfer to BSEND/BRCV, which is documented up to 64 kB over the same S7 connection.

On this page
  1. Can PUT/GET run between an S7-400 and an S7-1505 over PROFIBUS?
  2. How do you configure the S7 connection when the S7-400 is not in the network view?
  3. Why must the S7-1500 DB have optimized access disabled?
  4. Why does a GET called with CLOCK_1Hz update only every 49 seconds?
  5. What was wrong with the GET pointers: 1100 BOOL against 1000 BOOL?
  6. Is 2600 bytes too much for PUT/GET, and what carries it instead?
  7. What order should you test in to prove the fix?
  8. Questions asked

PUT/GET between a STEP 7 V5.5 S7-400 and a TIA Portal S7-1500 over PROFIBUS works, and the usual stall has three causes: GET called level-triggered on a 1 Hz clock, a source and destination area of different lengths, or an optimized S7-1500 DB that absolute pointers cannot reach. Fix those three, and for the reported 2600-byte dataset move the transfer to BSEND/BRCV, which handles up to 64 kB over the same S7 connection. Below is the diagnostic order that gets communication up fastest, with the numbers to check at each step.

Can PUT/GET run between an S7-400 and an S7-1505 over PROFIBUS? #

Yes: PUT/GET is an S7 communication service, and S7 communication runs over MPI, PROFIBUS or PROFINET, so PROFIBUS does not exclude it. Configure one S7 connection between the two CPUs and both PUT/GET and BSEND/BRCV work over it; you do not need to care about the medium once the connection is established. The connection is configured as S7 connections in the network view, exactly as for an S7-1200 to S7-300 data exchange over PUT/GET.

How do you configure the S7 connection when the S7-400 is not in the network view? #

Create an unspecified S7 connection directly in the connections table when the S7-400 cannot be represented in the S7-1500's network view, and set the remote TSAP from the S7-400's CPU slot. The working form is TSAP 03.0 plus the S7-400 CPU slot number, for example 03.02 for a CPU in slot 2. On the S7-1500 side, enable Permit access with PUT/GET under the CPU's protection properties, or every request from the S7-400 is refused. On the S7-400 side in STEP 7 V5.5, permit PUT/GET communication in the CPU's protection settings the same way.

Why must the S7-1500 DB have optimized access disabled? #

Because PUT and GET address a DB by absolute pointer, and an optimized DB has no fixed absolute layout. Clear the optimized-access attribute on every S7-1500 DB a PUT/GET pointer references. The DB attribute is a checkbox in the DB's properties in TIA Portal; without clearing it, the pointer reaches data at an address that does not exist.

Why does a GET called with CLOCK_1Hz update only every 49 seconds? #

Because PUT and GET start on a rising edge at the request input, not on a level. The reported symptom: PUT changes were seen in the S7-400 after 2 seconds, while GET of a 2600-byte DB in the S7-400 took 49 seconds. Driving GET with CLOCK_1Hz gave one edge per full clock period and restarts on a level that never went low between jobs; moving the call to a cyclic organization block improved the time to 9 seconds but did not fix it. The decision: trigger each PUT and GET with a clean rising edge, one job per edge, and wait for the done or error bit before the next request.

What was wrong with the GET pointers: 1100 BOOL against 1000 BOOL? #

The reported GET errors were a length mismatch and a pointer syntax fault. The errors, and their corrections:

  • Source length 1100 BOOL against destination 1000 BOOL: make the two areas identical in length.
  • A pointer parameter pointing at a BOOL symbol: use a BYTE-oriented area pointer instead.
  • Missing separator in the DB address: use the documented form P#DB1.DBX10.0 BOOL 1000, a 1000-bit area starting at DB1 bit 10.0.

Prefer BYTE pointers throughout: a 1000-bit area is 125 bytes, and byte pointers avoid the bit-offset ambiguity entirely.

Is 2600 bytes too much for PUT/GET, and what carries it instead? #

For this pair, yes: move the 2600-byte transfer to BSEND/BRCV. The figures quoted for PUT/GET are "at least" 400 bytes on an S7-400 and "at least" 880 bytes on an S7-1500, which does not establish a maximum, so do not budget a 2600-byte job against them. BSEND/BRCV is documented up to 64 kB on the same S7 connection, and its client-client principle means you configure the S7 connection and the BSEND/BRCV pair on both sides.

Worked example: the dataset is 2600 bytes. Check against the BSEND/BRCV limit: 64 kB = 65536 bytes, and 2600 bytes is well inside it, with 62936 bytes of headroom. For comparison, even the more generous quoted PUT/GET figure of 880 bytes leaves the dataset split into at least three jobs: 2600 / 880 = 2.95, rounded up to 3 jobs, each needing its own edge and done bit, and none of them a documented maximum. The decision is BSEND/BRCV for the whole dataset, PUT/GET only for small status and command words.

What order should you test in to prove the fix? #

Verify in this order, and do not change the next item until the current one passes:

  1. Small test: transfer 16 bytes between two non-optimized DBs with equal lengths and byte pointers.
  2. Trigger: confirm one rising edge starts one job, and the done bit arrives before the next edge.
  3. Direction: verify values both ways, PUT to the S7-400 and GET from it, and record the measured update time in each direction.
  4. Scale up: implement BSEND/BRCV for the full 2600-byte dataset and re-measure.

If errors remain, recheck connection, TSAP, CPU slot, DB access mode, pointer syntax and lengths before touching cyclic scheduling again. One note: PUT/GET access lets any station on that network write your S7-1500 data, so permit it only on the trusted PROFIBUS segment this link uses.

Questions asked

Can BSEND/BRCV run over PROFIBUS DP, or does it need Ethernet?

It runs over PROFIBUS. BSEND/BRCV, USEND/URCV and PUT/GET are all S7 communication services, and S7 communication can run over MPI, PROFIBUS or PROFINET. Once the S7 connection is configured, you do not need to care about the underlying medium.

Does the S7-1500 GET call need the S7-400 project to declare the S7-1500 data blocks?

No. On the S7-1500 side you declare only the connection and the local areas your PUT and GET calls reference; the S7-400 side needs its DBs with absolute addressing and PUT/GET access permitted. You do not mirror the partner's data blocks in both projects.

Why is a rising edge needed instead of the CLOCK_1Hz signal directly?

PUT and GET start a job on a rising edge at the REQ input. A level-triggered call starts one job, and a 1 Hz clock that stays high for half a cycle only offers a new edge each full period; if the job is longer than that, requests queue or restart and the update time stretches to tens of seconds.

Keep reading

  • How-to

    S7-1200 to S7-300 data exchange: I-Device or PUT/GET

    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.

    Industrial networks

  • How-to

    Converting PROFIBUS to PROFINET on an S7-300 retrofit

    A PROFIBUS-to-PROFINET gateway can keep a CU320-2 DP servo on the existing DP segment behind an S7-1500, but it adds a transfer delay and cannot provide isochronous synchronization, so it suits non-synchronized axes only. Split the migration into controller, drive, SIMOTION and HMI projects, and handle each one separately.

    PLC programming

  • How-to

    Exchange data between an S7-300 and S7-200 over MPI

    No ladder program is ever transferred between an S7-300 and an S7-200: each CPU is programmed and downloaded in its own tool, STEP 7 and Micro/WIN. Over MPI the S7-300 does all the communication work, calling X_GET to read and X_PUT to write bytes in the S7-200's V memory, which it addresses as DB1. Match the segment baud rate and station addresses, map the bytes identically on both sides, then prove the exchange with a status chart before trusting it.

    Industrial networks