-
Beta Was this translation helpful? Give feedback.
Answered by
NoHeinz
Nov 16, 2021
Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
NoHeinz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The siemens opc ua server doesn't accept write requests with SourceTimestamp in the Value:DataValue section, I had to change the way it builds the datavalue of the write request in the python package itself in common/ua-utils.py in the value_to_datavalue function:
just by deleting the parameter of SourceTimestamp when instantiating the DataValue for write requests I was successfully writing to the PLC's OPC server. I wish there was a better way to do this but it works for now and I dont believe this messes anything else up since the packet already has a timestamp in the header.