dps Selection

Find and share HowTos to various installations / configurations!
7 posts • Page 1 of 1
AliBou
Posts:25
Joined: Wed Mar 28, 2018 3:57 pm

dps Selection

Post by AliBou »

im trying to select some Dps (selection based on connection type).
using dpNames() (it works but seems take a lot of time)
is there any other method to segregate dps from thier connections types

thanks

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

Re: dps Selection

Post by leoknipp »

Can you please describe what "connection type" means in detail.
The function dpNames() normally returns the requested information very fast as the information is saved in the memory of the WinCC OA process and there is no need to exchange messages to get the result for this function.

Best Regards
Leopold Knipp
Senior Support Specialist

AliBou
Posts:25
Joined: Wed Mar 28, 2018 3:57 pm

Re: dps Selection

Post by AliBou »

In order to display plc tags (S7Plus connection) in panel.
the way i chose is to loop on all Dps and check if the dp is concerned or not

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

Re: dps Selection

Post by leoknipp »

If you want to get a list of DPEs which have an active address for a specific driver you can
-- write an address pattern to _Driver.AD.HWMask
When using the pattern "*" you get all DP elements which have an active address.
-- read the result at _Driver.AD.DPMatch

Best Regards
Leopold Knipp
Senior Support Specialist

AliBou
Posts:25
Joined: Wed Mar 28, 2018 3:57 pm

Re: dps Selection

Post by AliBou »

Thank you for the response
It works with wildcard "*". but it display all actif tags.
how can i specify only relative tags per Driver

thank you in advance

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

Re: dps Selection

Post by leoknipp »

Instead of "*" you can also a specific pattern including wildcards and information for the address reference you want to search for.
Then only those dp elements are returned which match the given address pattern.

Best Regards
Leopold Knipp
Senior Support Specialist

AliBou
Posts:25
Joined: Wed Mar 28, 2018 3:57 pm

Re: dps Selection

Post by AliBou »

Thanks
Best regards

7 posts • Page 1 of 1