OPCUA communication slow

#1

Hi everyone!

I want to make a communication between my Node-RED server, which runs on my PC and a PFC100 WAGO PLC . After deploying and rebooting both systems, the communication works well but after a few minutes it's continuously getting slower and some of the active connections go inactive. I tried to delay the messages, but the way it worked its look terrible. Does anyone know the solution to this problem? Could someone help me solve this? Thank you!!

If you could watch the code , it would be clear , why i thinks its terrible.
opcua com flow.json (55.5 KB)

#2

How are the delay nodes configured ? As delays or as rate limiters ?
Try rate limit with 'drop immediate msgs'

#3

Why not use a listener and just let the data come through as it comes.

I don't know the internals of the nodes you're using but perhaps it's creating objects every 1s. Might be a memory leak?

Anyhow, check out the built in examples. Node-red menu button (top right) --> import --> examples --> iiot

#4

Thanks for your help , They are configured as delays. i understand , what rate limiters are , but i am not know, how should they solve my problem.

#5

I am not using the iiot opc ua library . I tried to use "subsribe" type nodes , but it is not working well. The reason why i need them , is that the plc writes the variables. So if i switch on the 50% and 100% motor parallel, the plc switch them off , so this is why i want to read they state. With subsribe it works sometimes , but sometimes not.