audi0615 - 2020-06-22


Suppose i have 5 same codesys devices. all devices have same applications, same variable delcaration...

From device 1, i would like to access variables in device 3 with IEC code.

Is there a simple way to access remote variables such as "device3.GVL.xTest"?

Another problem is, there could be more than 5 devices, all of the remote device configurations are done by my customer who does not use Codesys Development System. for this reason, i need to configure remote connections dynamically with IEC code.

for example,

//add connection
somelibrary. addConnection ('', 'Device3');

// now i can access to remote vairables.

Any ideas would be appreciated.