IMDTouchKnowledge BaseShop main store

How-to

Y-Link LED status in WinCC needs a PLC-readable signal

HMI and touchscreens Published 8 min read By IMDTouch engineering team

Short answer

WinCC cannot read a Y-Link LED; it can only display a diagnostic value the controller supplies. Confirm the signal is readable in the PLC, map it into a data block prepared for HMI communication, and bind a WinCC tag and screen object to it. If the signal is disabled for reading, no HMI object can create it.

On this page
  1. Can WinCC show the LED on a Y-Link directly?
  2. Which diagnostic signal stands behind the LED I want to mirror?
  3. How does the PLC read the Y-Link's diagnostic data?
  4. What if the diagnostic signal is disabled for reading?
  5. How do I map a readable status into a DB for WinCC?
  6. What does a worked example with real numbers look like?
  7. How do I bind the WinCC tag and the screen object?
  8. How do I verify the display end to end?
  9. What is the decision for each case?
  10. Questions asked

If you need the Y-Link LED condition on a WinCC screen, the controller has to be able to read the diagnostic signal behind that LED first. WinCC displays the values its configured communication path delivers; it never looks at the device's front panel. So the job splits into two checks: find the diagnostic signal the LED represents, and confirm it actually changes when the LED changes. A signal that is reserved or disabled for user-program reading cannot be recovered by any screen object. When the value is readable, the PLC writes it into a data block prepared for HMI communication, and a WinCC tag bound to that variable drives the display. The sections below identify the signal, read it with the documented diagnostic instructions, map it into the DB, bind the tag, and verify every displayed state before the screen goes live.

No. WinCC visualizes only the values its configured communication path delivers from the controller, and the LED on a Y-Link is local indication at the device, so the status reaches the screen only after the PLC reads the matching diagnostic signal and passes it on.

A screen object animates from a tag, a tag lives in controller user data or in an area the configured driver exposes, and nothing on the Y-Link itself feeds the panel over a second path. If the link between WinCC and the controller is missing or misdeclared, nothing later in this chain can help — that failure is exactly what why your HMI cannot read PLC tags without a communication shortcut describes, so settle the connection before you chase the signal.

Which diagnostic signal stands behind the LED I want to mirror? #

Identify the LED in the Y-Link's operating instructions first, because the DP/PA coupler, DP/PA link, Y-Link and active field distributor manual documents which diagnostic signals each unit reports, and that set differs from device to device.

Name the exact indicator before you search for a tag: a bus LED, a fault LED and a per-segment indication sit behind different diagnostic signals, and one physical LED can combine several internal conditions. Device-specific coverage shows up in that same manual — extended fieldbus diagnostics for PROFIBUS PA, for instance, is documented there for the active field distributors, which tells you how much the reported set can differ across one product family. Whatever the engineering tool offers for your unit in its online view is the complete candidate set; a condition that is not in that set cannot be mirrored on the screen.

The controller reads it with its documented diagnostic instructions: DPNRM_DG retrieves a DP slave's current diagnostic data in the EN 50170 Volume 2 PROFIBUS format, and on an S7-1500 the integrated diagnostics instructions in the TIA Portal read out the diagnostic messages.

DPNRM_DG is documented for the S7-1200, and the Y-Link sits on the PROFIBUS DP side of the controller, so its diagnostic data arrives as DP slave diagnostics — exactly the record that instruction retrieves. Which engineering tool applies depends on the controller generation: the DP/PA manual's configuration chapters are written around SIMATIC Manager, while current S7-1500 diagnostics work happens in the TIA Portal, whose online and diagnostics view shows reported events as plain text. In both toolchains, the record the controller receives is the thing you decode. Built-in diagnostics views on an HMI follow the same rule of showing only what the controller reports, which is why the System Diagnostics View can stay empty on a Comfort panel even with a faulted device — see why the System Diagnostics View stays empty on a Comfort panel.

What if the diagnostic signal is disabled for reading? #

If the diagnostic is reserved or disabled for user-program reading, the controller never obtains a value, and no WinCC tag, script or screen object can create one; prove the case by watching the candidate signal in the online monitor while the LED changes state.

A frozen or absent candidate value is a final result for that configuration: WinCC cannot synthesize data the controller does not hold, and recreating the screen object changes nothing. Check the device documentation for another supported diagnostic mechanism that covers the same condition, and if none exists, say so on the screen — the Y-Link condition is indicated locally at the device only. The one mistake that turns a missing signal into a wrong signal is binding an unrelated process bit and labeling it as the LED status, because operators then trust a display that was never connected to the hardware.

How do I map a readable status into a DB for WinCC? #

Map the confirmed diagnostic value into a data block that exists for HMI communication, keep the device's documented encoding intact, and decode it in the PLC into display-ready states rather than exposing the raw code to the screen.

Work the mapping as five steps:

  1. Record the engineering tool and version, the WinCC version, and the exact Y-Link and DP/PA hardware identification, then open the matching diagnostic descriptions.
  2. Confirm in the online monitor that the candidate diagnostic value tracks the physical LED through at least one fault-and-clear cycle before anything is mapped.
  3. Create a DB reserved for HMI exchange — DB20 in the worked example below — and declare the status variable with its documented type: YLink_Status, data type Word, initial value 16#0000.
  4. Write decode logic that converts the documented encoding into display-ready states; never treat an arbitrary nonzero value as faulted, because coded diagnostics carry different meanings in different bits.
  5. Download, run, and re-watch the DB value in the online monitor to confirm the mapping still tracks the device.

The same pattern — controller status decoded into a DB variable that a screen animates — is what you would follow when displaying safety controller status on an HMI panel; only the diagnostic source changes.

What does a worked example with real numbers look like? #

In this illustrative example, DB20 holds YLink_Status of data type Word with initial value 16#0000, where bit 0 means bus communication with the Y-Link is present and bit 1 means a diagnostic is reported on the connected segment.

Add the display variable to the same DB: YLink_Display, data type Int, initial value 0. The decode logic reads 16#0002 from the online monitor and computes 16#0002 = 2^1, so bit 1 alone is set: YLink_Display becomes 2, and the screen must show the segment-diagnostic state with bus communication still healthy. If the word later reads 16#0003, the arithmetic 16#0003 = 16#0001 + 16#0002 says bits 0 and 1 are set at once — communication present and a segment diagnostic together — which a single on/off color could never express. One Word carries sixteen such conditions; one Bool carries one.

How do I bind the WinCC tag and the screen object? #

Create the WinCC tag on the configured S7 connection, address it to the DB variable exactly, and match the data type to the DB; the WinCC tag status monitoring procedure calls out the correct data type in the DB for an external tag.

For the example layout that means an unsigned 16-bit tag addressed to YLink_Status in DB20 on the configured S7 connection. Decode to the small display integer in the PLC — the example's YLink_Display — because a text and graphic list animates on exact values, not on bit masks: in this illustration the list assigns 0 to a grey no-data text, 1 to bus OK, and 2 to the segment-diagnostic text, and any state you leave undefined stays undefined instead of guessed. Once the screen runs, watch the tag's status next to its value: a communication fault between WinCC and the controller must never be drawn as a valid LED state.

How do I verify the display end to end? #

Produce the diagnostic once on an isolated bench or during planned downtime and compare five layers at the same moment: the device LED, the PLC online monitor, the DB value, the online WinCC tag, and the screen object.

Switch off power to a test Y-Link on the bench rather than tripping a live segment, step through the five layers in order, then clear the fault and confirm every layer returns. This one test catches the two real failures: a screen that renders a static or stale tag as if it were live, and a communication fault to the controller drawn as a valid LED state instead of being flagged by the tag's status. Timestamped captures of the device LED and the screen at both ends are enough to prove the update is live.

What is the decision for each case? #

Decide the whole job in the PLC online monitor, not in WinCC: if the candidate signal tracks the LED, map it into the HMI DB and bind the tag; if it stays static or never appears, the indication stays local to the device.

For the readable case, ship the chain you verified: documented signal, monitor value that tracks, HMI DB, tag data type matching the DB variable, and a screen list with one entry per documented state. For the disabled case, close it honestly: the LED stays local indication, the screen omits the object or labels it as local-only, and the diagnostics the device does expose become the tags you can offer instead. The deciding check takes minutes in the online monitor and prevents a screen object that would have shown a value the controller never held.

Questions asked

Does the LED color itself become a PLC value?

No. The front LED is local indication; the controller sees only the diagnostic data the device reports on the bus, and that arrives as a coded record, not as a color. Your decode logic defines which states the screen can show, which is why two different bit patterns can legitimately light one physical LED.

Why does the tag show good quality while the LED is faulted?

Tag quality describes the link between WinCC and the controller, not the field device. A healthy connection happily carries a fault value, and a broken connection carries no value at all, which is why verification compares the screen against the physical LED instead of trusting the quality flag alone.

How often does the displayed status refresh?

The screen refreshes at the acquisition cycle configured for that tag on its connection, on top of the rate at which the PLC writes the DB. A diagnostic that appears and clears faster than both cadences can pass unseen, so the verification change should be slower than the slowest of them.

Can a second operator station display the same status?

Yes. Any station whose configured connection reaches the same controller, and that declares its own tag on the same DB variable, shows the same value, because the DB is the single source. Stay within the documented driver and connection limits of the controller, and remember that each station adds its own polling load.

Keep reading

  • How-to

    Why a software controller needs a separate Ethernet operator path

    The CP5613 link from a WinAC RTX PC to its ET200M rack carries field I/O and never operator traffic. Configure the WinCC operator station as its own TCP/IP connection to the controller PC's reachable Ethernet address, with the rack and slot from the station configuration, and point the operator PC's PG/PC interface at the Ethernet adapter. No simulated station is needed in the controller's hardware configuration.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC Unified PC Runtime fails to open its PLC connection

    When one WinCC Unified PC runtime station opens its project but never establishes the PLC session, the runtime trace tells you which side failed. On the failing station the trace shows the open for CONN%HMI_Connection_2 rejected with AccessDenied, specific error -270 and reason 4102 before any S7Plus session exists, which places the fault on that station's connection binding. Set the connection entry point to exactly S7ONLINE, rebuild, redeploy and confirm the fix in a fresh trace.

    HMI and touchscreens

  • Troubleshooting

    Why HMI Alarm Beeps Sound Irregular Over Serial PLC Links

    The panel samples the toggle bit once per serial request round, and the PLC services one request per scan, so the round takes about request groups × scan time. When that exceeds the 100 ms toggle interval, transitions are missed and the beep stutters. Move dependable timing to the panel's own buzzer or a PLC-driven physical buzzer.

    HMI and touchscreens

Why a WinCC Professional LREAL field shows 0.0