Access to global variables with fb SysDataAccess_1 from plcnext base library

Hey there! I’m trying to get access to global variables with the SysDataAccess_1 function block from the plcnext base library (1.4) by using a string access path. I was able to get access to a local variable of a program by using the access path like „Arp.Plc.Eclr/MainInstance.xTest1“. Nevertheless, the same thing doesn’t seem to work for global variables e.g. with the access path „Arp.Plc.Eclr/xTest1“. Am I using the wrong access path or how is it possible to get access to global variables? Greets Stephan

I just noticed that the editor automatically converts the access path examples to an url even if I put it into code brackets. I used the access path from above without The http:// in front.

Hello Mr. Grober, at the current version it’s not possible to have a direct access to global variables. The mentioned function block „PBCL_SysDataAcces_1“ supports an access to local program instances. I will create a defect at our development project and we will take care of this issue in the next meeting. Best regards Lukas Christ