_address config with parameters

Find and share HowTos to various installations / configurations!
6 posts • Page 1 of 1
iain
Posts:33
Joined: Fri May 19, 2017 7:08 pm

_address config with parameters

Post by iain »

I'm trying to configure a couple of hundred datapoints that will all connect to OPC UA and be of the form

Password_000.Read._address -> item ID "ns=2;s=Channel1.Device.Global.LogonDB.Password_x.Password_000.DATA"

Is there a way to add a parameter variable to a PowerConfig text line? It seems that that's what I really want, to be able to use a fixed OPC UA client configuration panel with item ID = "ns=2;s=Channel1.Device.Global.LogonDB.Password_x.Password_%03d.DATA" with the number being tag number. If that's possible I'm not finding it in the documentation.

(I am totally unfamiliar with drivers and haven't worked with PowerConfig, so please forgive what I've overlooked.)

Is this possible, or do I need to look at creating datapoints using Excel? If I do, is it possible to configure the periphery address through Excel?

jstein
Posts:8
Joined: Fri Nov 19, 2010 1:48 pm

Re: _address config with parameters

Post by jstein »

Hi,
I would suggest to configure your addresses in Excel, that's the way most people do. What you can do is create one DP in para, export this one, then modify and duplicate this one using Excel.
The whole new list can be imported again. For more details please have a look in the online help for exporting and importing DPs.

br,
Jochen

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: _address config with parameters

Post by Gertjan van Schijndel »

In a powerconfig the master datapoint is replaced with the instance datapoint.

So if your datapoint type is 'Password' and configure 'ns=2;s=Channel1.Device.Global.LogonDB.Password_x._mp_Password.DATA' as address reference it should become:
'ns=2;s=Channel1.Device.Global.LogonDB.Password_x.Password_000.DATA' for datapoint 'Password_000'
'ns=2;s=Channel1.Device.Global.LogonDB.Password_x.Password_001.DATA' for datapoint 'Password_001', etc.

iain
Posts:33
Joined: Fri May 19, 2017 7:08 pm

Re: _address config with parameters

Post by iain »

Thanks both. I will read up on using Excel.

As for the second option: that didn't work for me. Any idea what I might have been doing wrong?

I created a new DP type, Password of type string (no structure), added a PowerConfig periphery address and set the DP type as before

Item=ns=2;s=Channel1.Device.Global.LogonDB.Password_x.Password.DATA

image 1

Created 100 datapoints 0-99 of the form Password_%03d

image 2

And the resultant DPs all had the same Item string as the PowerConfig; no replacements.

image 3

Did I miss something?

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: _address config with parameters

Post by Gertjan van Schijndel »

Try it with this as address reference: 'ns=2;s=Channel1.Device.Global.LogonDB.Password_x._mp_Password.DATA'

iain
Posts:33
Joined: Fri May 19, 2017 7:08 pm

Re: _address config with parameters

Post by iain »

Oh, great, that gets it. I should have noticed that DP in image 2 is _mp_Password, not Password.

Thanks!

6 posts • Page 1 of 1