Skip to content
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AndreasHeine
Comment options

@AndreasHeine
Comment options

Answer selected by NoHeinz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants