Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SourceTimestamp does not update correctly for CurrentTime on opcplc #403

Open
erhardeibl opened this issue Nov 29, 2024 · 2 comments
Open
Assignees

Comments

@erhardeibl
Copy link

erhardeibl commented Nov 29, 2024

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Subscribe to the node Root\Objects\Server\ServerStatus\CurrentTime (nodeID 2258) on opcplc.
According to the spec "The sourceTimestamp [...] should indicate the time of the last change of the value or statusCode. The sourceTimestamp should be generated as close as possible to the source of the value but the timestamp needs to be set always by the same physical clock."
But it does not update when the value changes. When you subscribe to the topic you will receive the same SourceTimestamp over and over again while the value changes as expected.

The first subscription is Kepserver, the second opcplc. Notice that Source Timestamp for opcplc is very different from all other timestamps:
image

Message diff in MQTT Explorer - SourceTimestamp is identical:
image

Expected/desired behavior

The Source Timestamp should update when the value updates as defined by the spec.

OS and Version?

Windows 11 Version 10.0.26100 Build 26100

Versions

NET 8.0.404
OpcPlc v2.12.24.0
OPC UA SDK 1.5.374.125 from 10/31/2024 17:37:56

@luiscantero
Copy link
Collaborator

@erhardeibl sees like a stack issue as the OPC PLC does not control this value. Martin is looking into it.

@mregen
Copy link
Contributor

mregen commented Dec 6, 2024

Its a bug in the OPC UA server library, will be fixed in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants