Node-Red has been a really powerful tool for me and I can only imagine how much harder some of my tasks would be without it. I use the NVL function to exchange data between my Node-Red flows and my CODESYS application.
That being said, I have noticed the same issue in multiple projects and I think I have something misconfigured: There is a noticeable lag from a VAR in CODESYS changing until it updates to Node-Red. The debug window will be empty. Other times this doesn’t happen and the debug window floods with updates.
Data coming from Node-Red into CODESYS is perfect.
This has happened to me on project with both PFC200 and CC100.
On the CODESYS side I have the NVL list set up to pack variables and CyclicTransmission Interval 50ms, in its own task that also runs at a 50ms cyclic interval.
PFC200 and CC100 both have 1 processor, so tasks like runtime (high priority) or nodered (low priority) have to be call one by one. If you set runtime tasks with high priority and also low timing the system scheduler will prioritize runtime, so nodered can be even choked.