OPC UA Publishing Is Fast but Values Still Lag? Check Sampling
- PLC Play Ground
- 0
- Posted on
A fast subscription publishing interval does not guarantee equally fast source sampling. Inspect the actual revised sampling interval and underlying device update rate before increasing client requests.
OPC UA service model; server and device capabilities determine actual timing.
What is happening?
Monitored items have sampling behavior, while subscriptions deliver notifications on a publishing schedule. Servers can revise requested settings to supported values. The source itself may update more slowly than either requested interval.
Check these five things
-
Record requested and revised monitored-item settings.
-
Check subscription publishing interval separately.
-
Identify the source device update rate.
-
Compare source and server timestamps where meaningful.
-
Test the complete path with a known changing value.
Worked example
A teaching client requests publishing every 50 ms, but its monitored item is sampled every 500 ms and the device refreshes every second. More frequent publishing cannot manufacture new source measurements. The slowest relevant stage remains part of the observed delay.
Quick diagnostic reference
| Stage | Inspect |
|---|---|
| Device | Source update |
| Monitored item | Revised sampling |
| Subscription | Publishing |
| Client | Display processing |
The mistake to avoid
Requesting the fastest possible rate everywhere can increase load without improving useful information. Choose rates from the measurement and application requirement.
How to verify the fix
Verify update age and load under representative activity. Save the revised settings returned by the server rather than documenting only what the client requested.
Field-work boundary: These are educational diagnostic guides. Use the exact equipment manuals and approved site procedures. Electrical testing and machinery changes belong to qualified, authorized personnel; control hazardous energy and validate affected functions before release.
Technical reference
OPC Foundation: MonitoredItem services. The examples and diagnostic tables above are original teaching material; they do not replace the product manual.
