Get datapoint value with peripheral address

Find and share HowTos to various installations / configurations!
2 posts • Page 1 of 1
ange.ogawin
Posts:18
Joined: Thu Mar 14, 2019 10:51 am

Get datapoint value with peripheral address

Post by ange.ogawin »

Hi,
I'm attempting to retrieve a datapoint value knowing it's peripheral address in CTRL.
I know the function :dpGet(string dpName, <type> &var).
But in my case, i'm not able to know the datapoint name, but only the peripheral address.

Is it possible to do that?

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Get datapoint value with peripheral address

Post by leoknipp »

If you want to know which DP elements use a specific address you can use the element _Driver<num>.AD.*
When writing an address or an address pattern to AD.HWMask in AD.DPMatch the dp elements are listed which have an address which fits the pattern.

Best Regards
Leopold Knipp
Senior Support Specialist

2 posts • Page 1 of 1