-
Notifications
You must be signed in to change notification settings - Fork 227
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
GRANT 0.2 ETH(or BTC equivalent) - Writing to plc takes long #208
Comments
Unfortunately, the OPC Foundation doesn't have any support services available, in fact. But in this case, the problem is 100% on the server side - you cannot perform the write any faster from the client, if you need to write all those changes. |
@jouniaro thank you for reply. The team writing software for PLC is pointing that it's probably an issue on our side ( the client who is writing to plc ). Is there a way to check out some PLC settings, e.g. with write speed or something ? How can we determine where is the problem ? Maybe it depends on plc configuration ? |
You can use Wireshark to analyse the traffic and see how long it takes for the server to respond to your request. See https://www.prosysopc.com/blog/opc-ua-wireshark/ for details, for example. |
@jouniaro but I have measured it already inside my java app, by reading time right before and after writing the values. The PLC team still points to the java lib being the problem. Is measuring time by opc-ua-wireshark any better than my current approach with measuring time with java ? |
Well, the Wireshark leaves your client side out of the question completely, so you can point out exactly how long it takes for the server to process the request. |
@jouniaro ohh thanks so much for pointing that out. I thought that maybe the problem is that I am sending those values in batch as list using the session.Write() method. |
Yes, I understood that you are making one Write call with several WriteValues in it. Then there is not much to optimise on your side. |
@friko16 what PLC or server are you connecting to? |
Hello guys, I need help, we got stuck in our project because of this.
I am offering some Ethereum tip.
My issue is that writing to plc takes too long time, around 2-3 seconds.
When writing less values, like 2-3, then it takes shorter around 50ms, so it's seems it's linear dependent on the number of values.
It blocks us.
pseudo-code ( giving you idea how I am doing it ):
The text was updated successfully, but these errors were encountered: