IMDHMIControls LibraryShop main store

Troubleshooting

Why I-Device shows no data between two S7-1200 in PLCSIM

Industrial networks Published 6 min read

Short answer

Two S7-1200 CPUs in PLCSIM show no I-Device data because the simulator does not support the IO device role, not because a block is missing or the configuration is wrong. No user program block is needed: the PROFINET stack updates the transfer areas, and the link must be proven on physical CPUs.

On this page
  1. Why the simulator shows no data
  2. Separate the simulator limit from a real fault
  3. An I-Device link needs no program block
  4. Sizing the transfer areas for a 256-byte status handover
  5. Commission the link on physical CPUs
  6. When physical CPUs still show no data
  7. Questions asked

If two S7-1200 CPUs that you configured as an IO controller and an I-Device both run in PLCSIM, the empty watch tables are the expected result: the simulator does not support the I-Device role, so the PROFINET IO relationship between the two instances never establishes. A perfectly correct project — matching device names, one IP subnet, a clean diagnostic buffer — still shows nothing, because nothing in the project is wrong; the capability is absent from the runtime. No program block is involved either way. An I-Device link lives entirely in the hardware configuration, the PROFINET stack moves the transfer-area data by itself, and the link can only be proven on physical CPUs. The checks below separate that simulator limitation from the faults that do appear on real hardware.

Why the simulator shows no data #

PLCSIM executes each CPU's user logic faithfully, but it does not emulate the PROFINET IO relationship between two instances. The I-Device role — one CPU presenting itself as a PROFINET IO device to the other CPU acting as its IO controller — is not supported there, so the handshake that starts the cyclic exchange never runs. The transfer areas compile into both projects and both downloads succeed, and precisely because nothing in either project is invalid, no error is raised: diagnostics stay clean and the mapped addresses hold their initial values.

That combination — a valid project, clean diagnostics and frozen watch tables — is the signature of a runtime limitation, not of a configuration fault. Change nothing in the project based on this result.

Separate the simulator limit from a real fault #

Use the runtime and the LEDs to decide which situation you have:

  • Both CPUs are PLCSIM instances, watch tables frozen, diagnostic buffers empty: the simulator limitation. Repeat the same projects on physical CPUs to test the link.
  • Physical CPUs, an ERROR or MAINT indication lit on either CPU: the relationship failed to establish. Read the IO controller's diagnostic buffer first; it names the station that did not arrive.
  • Physical CPUs, all LEDs healthy, data still frozen: an assignment or mapping fault. Check the device name on the I-Device CPU, the IP subnet, and the transfer-area lengths and directions on both sides.

An I-Device is a CPU that keeps its own controller role while also presenting itself as a PROFINET IO device to a higher-level IO controller. The two CPUs exchange data over transfer areas — the I/O areas over which an I-Device and its higher-level controller exchange data, in the manual's own terms. Each area maps a block of the I-Device's local I or Q addresses to a block of the controller's I/O addresses, with a direction stated from the I-Device's side: the I-Device CPU writes an output area and the controller reads it, and the controller writes an input area and the I-Device CPU reads it.

The PROFINET stacks update these ranges cyclically, independent of the user program, so no communication instruction belongs in either program; your code reads and writes the mapped addresses like ordinary process image I/O. You create each area in the hardware configuration: in the I-Device CPU's device view, open the PROFINET interface properties and switch the operating mode to IO device, then define the areas in the I-Device configuration of that operating-mode section.

The same transfer-area scheme exists on the PROFIBUS side of an S7-1200; the article on what I-Slave transfer areas an S7-1200 CM 1242-5 slave must publish covers that variant. And if all you need while the hardware is still virtual is two simulated CPUs that swap data, program instructions do run in PLCSIM: the article on simulating GET/PUT between two S7-1200 CPUs in PLCSIM shows that route.

Sizing the transfer areas for a 256-byte status handover #

Inputs for a typical machine handover; the first two are an example layout, the third is documented in the S7-1200 manual:

  • 192 bytes of status, sent by the I-Device CPU up to its line controller.
  • 64 bytes of setpoints, sent by the line controller down to the I-Device CPU.
  • 1024 bytes, the maximum size of one transfer area when a CPU is configured as an S7-1200 I-Device.

The rule: size each area independently against that per-area cap, set the direction from the I-Device's side, and make the controller-side length equal the I-Device-side length area for area. The mapped bytes share the CPU's process image with its real I/O, so the manual's further constraining factors can bite before the cap does.

The arithmetic: 192 bytes fits one output area because 192 ≤ 1024; 64 bytes fits one input area because 64 ≤ 1024; the mapped process-image demand is 192 + 64 = 256 bytes.

The result: two transfer areas — an output area of 192 bytes at I-Device output addresses 0 to 191, and an input area of 64 bytes at I-Device input addresses 256 to 319, example addresses. When the I-Device joins the controller's IO system, set the partner-side lengths to 192 bytes and 64 bytes to match.

The decision: a handover of 1024 bytes or less in one direction goes into a single transfer area; above 1024 bytes in one direction, split it into several areas, each with its own direction and address range. That threshold comes from the manual's per-area cap, not from this example's size.

  1. In the I-Device CPU's device view, open the PROFINET interface properties and switch the operating mode to IO device, then create the transfer areas with the lengths, directions and addresses from the sizing above.
  2. In the controller project, add the I-Device CPU to the IO system in the network view and set the partner-side addresses so the lengths match area for area.
  3. Put both interfaces on one IP subnet, for example 192.168.0.11 and 192.168.0.12 with a 255.255.255.0 mask.
  4. Assign the PROFINET device name to the I-Device CPU from its online and diagnostics view, in the assign-name group; the online name must match the configured name exactly.
  5. Compile both projects and download hardware and software to both CPUs. Do this only while neither CPU drives a live process: a hardware download interrupts the I/O.
  6. Prove the exchange: write a changing value, for example a counter, into the controller-side output area and watch the mapped input addresses on the I-Device CPU. The value should arrive within one or two scans; then reverse the direction to test the other area.

When physical CPUs still show no data #

  • LEDs: RUN steady green on both CPUs, ERROR and MAINT dark, and the LINK/ACT light lit on the Ethernet port that carries the cable between them. A red or flashing ERROR on the I-Device CPU means the controller cannot reach or parameterize it.
  • Diagnostic buffer: read it on the controller first, because an entry for a missing station means the relationship never established and its text points at the side to correct. The article on fixing PROFINET connect errors between a controller and an S7-1200 walks that buffer entry by entry.
  • Name and address: read the actual device name back from the I-Device CPU's online and diagnostics view and compare it with the project character for character, then confirm both IP addresses sit in the same subnet.
  • Assignment: in a project with several controllers, confirm the I-Device is assigned to this controller's IO system and not to another one.
  • Mapping: watch the mapped absolute addresses, not unrelated tags; after any change to a length or an address, recompile and download both projects, because one stale download leaves one side on the old mapping.

Questions asked

Does any setting make PLCSIM run an I-Device link?

No. The IO device role is not implemented in PLCSIM, so no name, address, compile option or version choice turns the relationship on; the transfer areas compile but never exchange. Treat a simulated no-data result with a clean diagnostic buffer as the simulator limitation and repeat the test with the same projects on physical CPUs.

What limits one transfer area on an S7-1200 I-Device?

The S7-1200 manual sets the maximum size of one transfer area at 1024 bytes, and it notes that further constraining factors can apply, because the mapped bytes share the CPU's process image with its real I/O. A handover larger than 1024 bytes in one direction must be split into several areas, each with its own direction and address range.

Can two PLCSIM CPUs exchange data at all?

Yes, with program instructions instead of a configured IO relationship: PUT/GET links run between two simulated S7-1200 CPUs in PLCSIM. That route moves data your program handles explicitly; it does not create the cyclic, configuration-driven I/O mapping an I-Device uses, so keep it for logic tests while the hardware is still virtual.

What does the controller read while an I-Device station has failed?

While the relationship is down, the controller substitutes zeros for the failed device's input data, and its writes to the device no longer reach the CPU; the diagnostic buffer logs the station failure, and the entry clears when the link returns. During an outage, expect zeros rather than stale values in the controller's input image.

Keep reading

  • 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

  • Troubleshooting

    Fix ctrlX CORE PROFINET device not found with XF10 connected

    This is not a Siemens fault: DCP discovery runs at the Ethernet layer, so XF10 and XF51 answer in one broadcast domain through the same unmanaged switch whatever their IP subnets. Put the engineering port on its own switch or VLAN and confirm the device name on XF51, and the startup dependency disappears.

    Industrial networks

  • Explainer

    Why a RevPi Connect S needs a PROFINET gateway for an S7-1500

    In PROFINET the I/O controller defines the data layout, and it reads that layout from the device's GSDML file. A RevPi Connect S does not present a GSDML on its own, so it needs a RevPi Gate PROFINET IRT device module (or a CODESYS soft PLC acting as the PROFINET device) before the S7-1500 can exchange I/O with it.

    Industrial networks