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
dps Selection
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: dps Selection
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
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
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
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
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
-- 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
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
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
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
Then only those dp elements are returned which match the given address pattern.
Best Regards
Leopold Knipp
Senior Support Specialist