Get number of dpe

Find and share HowTos to various installations / configurations!
6 posts • Page 1 of 1
sblancha
Posts:64
Joined: Thu Feb 18, 2016 4:18 pm

Get number of dpe

Post by sblancha »

Hi,
Is there a way to get the overall number of dpe for a running project?
Cheers,
Sebastien

adaneau
Posts:310
Joined: Tue Feb 21, 2012 9:49 am

Re: Get number of dpe

Post by adaneau »

Hi,

Yes this is quite easy to achieve:

- Use any dpGetAll (description or alias) function and count the lenght of result . As any DPE is having a common, this makes the trick:

dyn_string ret, desc;
dpGetAllDescriptions(ret, desc);

DebugN(dynlen(ret));


- However, you may want only a list of DPE containing a value, then just go to sysmgm / Diagnostics / Event manager connections . Click on event table and go to 3rd tab, every project information relative to DPconfig from event are here (_original amount is amount of DPE having a value).


BR
Alexandre

sblancha
Posts:64
Joined: Thu Feb 18, 2016 4:18 pm

Re: Get number of dpe

Post by sblancha »

Ok thanks.

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

Re: Get number of dpe

Post by leoknipp »

You can also get the number of configs with the debug flag "-report configmanager".
The debug gflag can be used for every manager which holds configs during runtime (Data-Manager, Event-Manager, Drivers).

When using the panel for the Event Manager Connections you probably have to set an update interval in the panel to get the actual values.

Best Regards
Leopold Knipp
Senior Support Specialist

Ulrich Ahrens
Posts:6
Joined: Thu Jul 13, 2017 8:41 pm

Re: Get number of dpe

Post by Ulrich Ahrens »

Is it possible to use dpconnect (or query) to respond to the addition or removal of a data point to a particular type of data point? For example, to determine how many data points of a particular data point type exist?

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

Re: Get number of dpe

Post by leoknipp »

When using WinCC OA 3.16 you can use the new function sysConnect() to get the information when a datapoint is created or deleted.
To get the number of datapoints for a specific type you can use dpNames() with filters.

Best Regards
Leopold Knipp
Senior Support Specialist

6 posts • Page 1 of 1