DL_ReadNode / DL_ReadNodeValue in CoDeSys using FUP language.

Hi, I'm trying to get information from the data layer using the DL_ReadNode or DL_ReadNodeValue fuction blocks. But I am not getting this.

The aim is to get the information via CoDeSys and the FUP language. I am very grateful for tips.

I tried a few things, but never got data at the value port. 

T.Hanks

Best reply by CodeShepherd

Comparing your code to mine I see that your variable "plcruntimenodevalue" is a reference to something with probably a "16#0" in it. The error shown is an access violation could be triggered by a zero pointer access. In my code the type is simply "DL_NodeValue".

View original
image.png
14.21KB
image.png
12.69KB
7 replies