I want to send from NodeRED running on the same PLC that will recieve the values.
I have changed the list identifier to 3 and the names of the tags in the NVL export before importing it again.
Recieving is no problem, however I don’t get the sending to function properly. The ID-number in the netvar-sender block i NR must correspond to what is seen in the NVL reciever struct in Codesys if I have understood this correct, according to the tutorial the ID number should be 2970419.
But this variable is 0 when I look it up in Codesys.
Device.Application.NetVar_Application_GVL.NetVarManager_UDP_MainTask_0.dwIdentity
When I try to inject the netvar-send I get this error
Maybe try to run netstat -tulpn to see if another service is using port 1400 ?
And also docker ps -a, maybe you have a somehow a remaining old Node-red container using the same port ?
During development, I have found that when changing ports in NR and Codesys, it is often necessary to reboot the PFC to fully close the old ports and open the new ones. It might start working after a reboot.