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?
Get datapoint value with peripheral address
- ange.ogawin
- Posts:18
- Joined: Thu Mar 14, 2019 10:51 am
Get datapoint value with peripheral address
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Get datapoint value with peripheral address
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
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