IMDHMIControls LibraryShop main store

Troubleshooting

Why an S7-1200 watch table reads zeros from a PROFINET gateway

Industrial networks Published 6 min read

Short answer

If the gateway home screen reports PROFINET idle mode, the S7-1200 is not in RUN and no cyclic I/O moves, so every watch entry reads zero even though Modbus registers are mapped. Put the CPU in RUN first; if zeros persist, watch the gateway's assigned I addresses rather than memory, and use peripheral access when those addresses exceed the process image.

On this page
  1. Why does the S7-1200 watch table show zeros when the gateway tool shows live Modbus data?
  2. What does PROFINET idle mode on the gateway home screen mean?
  3. How do I put the S7-1200 in RUN and confirm cyclic I/O is flowing?
  4. Which addresses should the watch table monitor for the gateway?
  5. When do I need peripheral addressing instead of the process image?
  6. How is this fault different from a PROFINET connect error?
  7. What order do I check when the watch table shows zeros?
  8. Questions asked

The zeros are almost never a broken mapping. When the gateway's home screen shows PROFINET idle mode, the S7-1200 is not in RUN, so the CPU exchanges no cyclic I/O with the gateway and every watched address reads zero while the Modbus side runs correctly. Put the CPU in RUN first, confirm the gateway leaves idle mode, and only then chase addressing: the watch table must monitor the I addresses TIA Portal assigned to the gateway, and any address above the process image needs peripheral access instead.

Why does the S7-1200 watch table show zeros when the gateway tool shows live Modbus data? #

Because the two tools prove different things: the gateway tool shows that your Modbus registers are mapped and carrying values, while the watch table shows only what the CPU has received as cyclic PROFINET I/O — and a stopped CPU receives nothing.

Everything verified so far lives on the configuration path. The GSD file made the gateway known to the project, the link placed it in the CPU's PROFINET system, and programming the Modbus device from a PC connected to the gateway proved a working path to the device. None of that makes the CPU fetch process data, and none of it puts the CPU in RUN.

What you observed What it proves What it leaves open
Gateway tool shows a live value per mapped register Modbus mapping is producing data Whether PROFINET cyclic transfer is running
PC programs the device through the gateway A configuration and communication path exists CPU run state and actual I/O exchange
Watch table reads zeros The monitored location currently holds zero Whether the right location is monitored at all

Treat the two sides as separate systems until the watch table tracks the gateway tool value for value.

What does PROFINET idle mode on the gateway home screen mean? #

It means the gateway's PROFINET side has no active connection to an IO controller exchanging cyclic data — on this class of gateway it specifically indicates that the S7-1200 is not in RUN, which is the state to fix before anything else.

PROFINET IO divides the work strictly. The S7-1200 is the IO controller: it owns the connection and reads and writes the device's slots on cycle. The gateway is an IO device: it publishes its data layout through the GSD file and then waits for a controller. A gateway can never take the controller role itself, which is why a PROFINET IO-device gateway cannot be a controller. While the CPU sits in STOP there is nothing for the device to serve, and it reports that as idle mode.

How do I put the S7-1200 in RUN and confirm cyclic I/O is flowing? #

Set the mode selector to RUN or start the CPU from TIA Portal's online tools, then re-read the gateway home screen — the moment idle mode disappears, the IO controller connection is established and cyclic data starts moving.

  1. Confirm the hardware configuration that contains the gateway is compiled and downloaded to the CPU.
  2. Move the CPU to RUN with the mode selector, or start it from the online CPU controls in TIA Portal.
  3. Read the gateway home screen again: idle mode gone means the controller-to-device connection is up.
  4. Open the watch table and go online with the CPU.
  5. Compare the watched input words against the gateway tool's register display; they should now track value for value.

One safety note: start the CPU only when it is safe for the program's outputs to act, because entering RUN energizes whatever the logic writes.

Give the first readings a moment rather than expecting an instant step: the device is supplied with fresh data within its configured IO cycle time, and the values settle inside that period.

Which addresses should the watch table monitor for the gateway? #

The I and Q addresses TIA Portal assigned to the gateway's slots, not memory addresses, and each mapped Modbus register occupies 2 bytes there — so 20 registers occupy 40 bytes of input area and 20 word entries.

Read the addresses from the device view in the hardware configuration: the input area carries data the gateway sends toward the PLC, which is where your Modbus registers land, and the output area carries what the PLC sends down. A watch entry on an M address reads zero forever, because gateway data is copied into the input image, never into memory.

Illustrative example using the register width from this setup. Take 20 mapped Modbus registers at 2 bytes each: the gateway's input slot needs 20 × 2 B = 40 B. If TIA Portal assigns the slot from input byte 100, the area runs to 100 + 40 − 1 = byte 139, in other words IB100 through IB139. Word entries then number 40 ÷ 2 = 20: IW100, IW102, and so on up to IW138. Watch all 20 words and each one mirrors one register.

When do I need peripheral addressing instead of the process image? #

When the gateway's assigned addresses run past the end of the process image the CPU refreshes each cycle — those bytes are not copied into the I/Q memory a plain watch entry reads, so it stays zero and the access must be peripheral.

The process image has a size, and the size belongs to the specific S7-1200 CPU: it is listed in that CPU's technical data. The deciding comparison is one line, highest assigned byte address against that size. Below it, monitor the plain addresses; at or above it, monitor the same addresses with peripheral access, using the same :P suffix the watch table offers for physical outputs (Q:P). In the case behind this article the process image was large enough and run state was the whole fault, but a gateway placed high in the address area will hit the limit. The same failure shape on PROFIBUS is an S7-300 PROFIBUS gateway detected but reading no I/O data.

How is this fault different from a PROFINET connect error? #

A connect error announces itself — failed device configuration or error diagnostics in the buffer — while this fault sits silent with the link up and everything configured, because the gateway simply has no running controller to serve.

A device that is configured but genuinely unreachable makes noise: the S7-1200 logs an IO device failure in the diagnostic buffer, and the OB86 organization block exists to catch exactly that, with entries naming the device. Zeros with a clean diagnostic buffer are the opposite signature: the connection is fine, and the problem is the CPU's run state or the addresses typed into the watch table. If the symptom is actually a failed connection rather than silence, start with fixing PROFINET connect errors between a controller and an S7-1200.

What order do I check when the watch table shows zeros? #

Gateway status first: if the home screen says PROFINET idle mode the S7-1200 is stopped, so put it in RUN — that single state explains the zeros whenever the Modbus side is confirmed mapped and moving.

  1. Home screen shows PROFINET idle mode — the S7-1200 is not in RUN. Start the CPU; cyclic I/O begins within the configured IO cycle time.
  2. Idle mode cleared, values still zero — the watch table is pointed at the wrong area. Replace M or DB entries with the gateway's assigned I addresses.
  3. Correct I addresses, still zero — compare the highest assigned byte with the process image size in the CPU's technical data; at or above it, monitor with peripheral (:P) entries.
  4. Diagnostic buffer shows an IO device failure instead of silence — that is a connection fault, not a zeros fault; chase the link and device health instead.

Questions asked

Does power-cycling the gateway clear PROFINET idle mode?

No. Idle mode reflects the controller side of the connection, not a stuck gateway: the device restarts and waits again for an IO controller that is exchanging cyclic data. Cycling the gateway's 24 V is only useful as a diagnostic step once the CPU is in RUN and the values still misbehave.

Can I read gateway inputs from the watch table while the CPU is in STOP?

No. A stopped S7-1200 exchanges no cyclic input data, so watched entries hold zero. Siemens documents one STOP-mode watch-table capability, enabling physical outputs (Q:P) for output testing, and that writes outputs rather than reading gateway data, so it cannot substitute for RUN.

Where is the IO cycle time set, and what does it mean?

Under the IO device's PROFINET port properties in TIA Portal: Advanced options > Real-time settings > IO cycle. Siemens describes it as the period within which a PROFINET IO device is supplied with new data from the CPU. Leave it at the default unless the process genuinely needs a faster update.

How many watch-table entries does each mapped Modbus register need?

One word per register. Each mapped 2-byte Modbus register occupies one input word, so 20 registers need 20 word entries spanning 40 bytes, counting up from the first assigned word with no gaps. Data the gateway transfers only in the other direction adds output (Q) words instead.

Keep reading

  • Troubleshooting

    Fix CODESYS PROFINET IP-change error on an S7-1200 link

    The station shows in the scan because DCP discovery answers, but the connection fails because the CODESYS runtime refuses the IP address the controller assigns. Enable the IP-address update for the bound Ethernet interface in the runtime's .cfg configuration and restart the runtime; the error names the fix itself. If you would rather not enable it, set matching fixed addresses on both sides.

    Industrial networks

  • Troubleshooting

    Fix an S7-300 PROFIBUS gateway: module address above the image

    The PROFIBUS side is fine: the S7-300 accepted the GSD file and the telegram carries your values. The assigned module addresses sit above the CPU's process image, so ordinary I and Q access reads zeros. Move them into bytes 0 to 127, or read and write them with peripheral access.

    Industrial networks

  • Troubleshooting

    Fix PROFINET connect errors between a controller and an S7-1200

    Separate the engineering port and the PROFINET port onto different IP layers on different physical ports, connect the controller to the S7-1200 directly or through a PROFINET-capable switch, make the device name and address match the project, and run the PROFINET IO task at priority 1 or 0. A scan that finds the S7-1200 proves discovery only; the connect stage is where DB814006 appears.

    Industrial networks