Troubleshooting
Edge gateway cloud connected but PLC variables missing
Short answer
A Connected cloud status proves only the gateway-to-hub link. When the metric node tree shows only Sys, data and downstream and the driver list lacks the PLCnext data source, discovery between controller and gateway failed, not the cloud link. Run the controller-side checks, escalate through the gateway application's Contact Support channel with the evidence list, and accept the fix only when a changed test value reaches the hub.
On this page
- Why does the gateway show Connected but no PLC variables?
- Where does the fault actually sit?
- What does an enabled DSLink actually prove?
- Do LOCAL and HMI attributes make the variables show up?
- What can I check myself before contacting support?
- When do I escalate, and what do I send?
- What test proves the fix end to end?
- Questions asked
Connected is a status light for one hop, not a receipt for your data. When an edge gateway reports its cloud connection as Connected, both DSLinks sit at enabled, and the PLCnext variables still never appear in the node tree, the cloud path is the one part of the system you can stop checking. The fault sits on the controller-to-gateway side, where the PLCnext data link discovers variables and exposes them for publication. This article separates what each status proves, locates that boundary, lists the checks worth running on your side, and gives the test that closes the case: a changed test value arriving at the hub.
Why does the gateway show Connected but no PLC variables? #
Because Connected describes only the gateway-to-hub link; it carries no information about the controller-to-gateway hop where PLC variables are discovered and published, so a green cloud status and an empty node tree can, and here do, exist at the same time.
That status is produced by the cloud connection the gateway maintains with the hub: transport up, credentials accepted, telemetry channel open. Variable discovery is a different subsystem entirely, a data link that talks to the controller, walks its variable tree and exposes the result as nodes you can select when adding metrics. Nothing in the cloud handshake requires the controller side to have succeeded, which is why the dashboard can be green while the tree you browse stays empty. The same one-hop logic sits behind a gateway that stays online while its PLC drops offline; Edge gateway online but PLC offline: diagnose the link walks that split hop by hop.
Where does the fault actually sit? #
Between the PLCnext Engineer variable export on the controller and the dslink-plcnext-api runtime on the gateway: every hop beyond that pair is demonstrably alive, and the one hop that should expose the variables is the one that shows nothing.
Each observed state carries part of that argument:
| Observed state | What it proves | What it does not prove |
|---|---|---|
| Cloud connection reads Connected | the gateway-to-hub link is up | that any PLC value was discovered or sent |
| dslink-plcnext-api enabled | the PLCnext data link module loaded | that it found the controller or exported variables |
| dslink-node-azure enabled | the cloud publisher module loaded | that values are flowing through it |
| Driver list shows Sparkplug, EthernetIp and Modbus | the other protocol links loaded | anything about the missing PLCnext source |
| Select-node tree stops at Sys, data and downstream | the browse tree itself exists | that the PLCnext branch under data was ever populated |
Read as one argument, the table leaves a single unverified hop. A healthy gateway shows the controller's data source as a browsable branch beside the protocol drivers, the same shape you get when bridging OPC UA PLC data to MQTT with an edge PC. Silence from the controller side while the master side looks healthy is a pattern other links show too: an S7-1500 connection download where the PLC side shows offline only fails the same way, at the controller end.
What does an enabled DSLink actually prove? #
Only that the module loaded. An enabled status flag says the gateway started the DSLink process; it says nothing about whether that process found the controller, exported its variable tree, or refreshed the values, so enabled cannot be read as working.
dslink-plcnext-api and dslink-node-azure being enabled tells you the gateway's module loader did its job; it is not a health report for either link. Status flags in edge software also routinely outlive the condition they describe, the same trap as an MQTT Engine online status that survives a dropped edge node, so read every flag here as a claim to be tested. The one observation you can trust outright is the negative one: the empty tree is direct evidence that discovery produced nothing.
Do LOCAL and HMI attributes make the variables show up? #
The evidence says no: three variables with LOCAL and HMI attributes exist and still no nodes appear under dslink-plcnext-api, so in this setup that attribute pair has not produced a discoverable tree and re-editing the attributes is not the fix.
Attributes already applied plus a tree that stays empty is a completed experiment, not a near miss. What discovery needs is whatever the gateway application's PLCnext data link documentation specifies: the variables must exist in a project that is downloaded to the controller and running, and the controller-side export settings for external clients must match what that data link expects, a requirement set by the gateway application rather than implied by the HMI attribute. A project sitting open in the engineering tool exports nothing; the controller runtime exposes only what it is actually running. The productive question is therefore not which attribute to add, but whether the running controller is exporting to this gateway at all, and that lives in the data link's configuration and log, covered next.
What can I check myself before contacting support? #
Five things, in this order: confirm the project is downloaded and running on the controller, re-check the data link's controller address and credentials, read the PLCnext DSLink's own log, compare controller firmware against what the gateway documents, and confirm the controller answers at its configured address.
- Confirm the project is downloaded and running. A variable that exists only in your engineering project has no runtime instance on the controller, so there is nothing for the gateway to discover.
- Re-check the data link configuration. The controller address, port and credentials the PLCnext data link uses are configured in the gateway application; a wrong address fails discovery quietly while the cloud link stays green.
- Read the dslink-plcnext-api log. Discovery failures, authentication failures and version complaints land there, not on the dashboard; it is the only place this link speaks for itself.
- Compare firmware against the gateway's requirements. Version mismatches between a controller and an edge application leave the transport up and the tree empty; the same version-gate class is documented where a runtime version requirement takes an edge gateway offline.
- Confirm the configured address answers. From a PC on the same network, verify the controller responds at the address the data link uses; if it does not answer, discovery cannot begin.
If all five check out and the tree still shows only Sys, data and downstream, stop there: the remaining machinery sits inside the gateway application, and nothing outside it will move discovery forward.
When do I escalate, and what do I send? #
Escalate as soon as those checks leave a green cloud status with an empty dslink-plcnext-api tree: the gateway application manages its own DSLink runtime, so the Contact Support button inside the Edge Gateway app is the documented channel, and your evidence list goes with it.
Describe the observed state exactly: cloud status Connected, dslink-plcnext-api and dslink-node-azure both enabled, the driver list showing Sparkplug, EthernetIp and Modbus, and the select-node tree stopping at Sys, data and downstream where the PLCnext branch should be. Add the outcome of the five checks, the versions on both sides, and the log lines you captured. One thing this evidence will not contain unless you add it is the pairing of gateway application version and controller firmware; capture both, because discovery behavior can hinge on that pair, and a report in this shape lets support reproduce the discovery state on the first attempt instead of asking for it in four rounds.
What test proves the fix end to end? #
A changed test value reaching the hub. Force a safe test variable by a known amount and watch the hub's incoming telemetry: at a 5 s publish interval the new value should arrive within about 10 s, two intervals; after 30 s, six intervals, the path is still broken.
The arithmetic, as a worked example: the first interval absorbs the lag between your write on the controller and the gateway's next publish cycle, and the second absorbs one missed cycle, so 2 × 5 s = 10 s is the expected arrival window; the stop at 30 s is 6 × 5 s, wide enough that three consecutive missed cycles cannot be transport jitter. If your publisher runs at a 10 s interval, the same two-interval rule gives 20 s expected and 60 s as the stop. Read the interval from the publisher configuration rather than assuming it, and pick a variable that cannot move anything, a spare integer or a simulated value, never a tag wired to an output.
The decision rule follows from that test. The case is closed only when the forced value arrives inside the window; Connected reappearing, both DSLinks enabled, or nodes becoming visible without a confirming value are progress, not proof. If the value arrives, record the working configuration as the reference for the next gateway. If it does not, the escalation now carries a sharper symptom, a populated tree with no end-to-end data, which points at the publish mapping rather than discovery and goes back to the same support channel with the new evidence attached.
Questions asked
Which artifacts should I collect before writing the support request?
Collect the artifacts before you write: the gateway application version, the controller model and firmware, the full driver list as shown, the exact node path you expected the variables under, and any log output the PLCnext data link produces. Include the results of the five checks: project running on the controller, data link address and credentials, log contents, firmware comparison, and the address answering on the network.
Is the Sparkplug, EthernetIp and Modbus driver list itself a fault?
No. Those three drivers are unrelated protocol links the gateway loads, and their presence is normal. The symptom is an absence, not a presence: the PLCnext data source that should appear beside them is missing, which makes the driver list useful evidence for locating the fault rather than a fault in itself.
Can I create the PLC variables by hand under the data node?
No. Metrics point into the tree the data link discovers; a node you create yourself under data holds a static value, not a live PLC variable, so it publishes nothing real. The fix is to make discovery complete, and the acceptance test is the forced-value check reaching the hub.
How do I set the timing thresholds for the end-to-end test?
Read the publish interval from the gateway's publisher configuration instead of assuming it. Whatever the interval is, expect the forced value within about two intervals and treat six intervals without an arrival as a failure. The article's worked example uses a 5 s interval, so rescale the windows if yours differs.