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

Help request for Read tags performance #94

Open
DagUd opened this issue Jun 4, 2020 · 0 comments
Open

Help request for Read tags performance #94

DagUd opened this issue Jun 4, 2020 · 0 comments

Comments

@DagUd
Copy link

DagUd commented Jun 4, 2020

Hi, i'm new to Opc UA and I need a little help...
I'm testing h-opc libraries for read from a OPC UA server plc....

I'm able to connect to the plc, I can read the tags without problem...

I'm just facing the problem that when I read some tags with Read function, I must set a thread sleep (>100ms) between the reads or the OPC UA server stucks for a while (about 500ms) every program loop :

So for read the tags without stuck the server I must set sleeps between the read functions :

`Min_AngleLeft = client.Read(Of Single)("PLC.DataBlocksGlobal.VAngMinAct").Value
Threading.Thread.Sleep(PollWait)

Max_AngleLeft = client.Read(Of Single)("PLC.DataBlocksGlobal.VAngMaxAct").Value
Threading.Thread.Sleep(PollWait)

Min_AngleRight = client.Read(Of Single)("PLC.DataBlocksGlobal.PceLenMax").Value
Threading.Thread.Sleep(PollWait)

Max_AngleRight = client.Read(Of Single)("PLC.DataBlocksGlobal.PceLenMaxp").Value
Threading.Thread.Sleep(PollWait)
`

Is necessary to monitor the tags for avoid this problem ?

Thanks
DagUd

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

1 participant