Connecting a table to a datapoint list

Find and share HowTos to various installations / configurations!
2 posts • Page 1 of 1
mhargreaves
Posts:84
Joined: Thu Nov 11, 2010 12:31 pm

Connecting a table to a datapoint list

Post by mhargreaves »

Are there any examples of how to use a table that is 'connected' to list datapoints of a specified datapoint type, where columns show values from selected dpes and rows are added/deleted as datapoints are deleted?

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

Re: Connecting a table to a datapoint list

Post by leoknipp »

To fill a table with a list of dp elements you can use dpQueryConnectSingle/dpQueryConnectAll and the table functions.
dpQueryConnectSingle has the advantage that you get only those dp elements which have been changed. The disadvantage is that you get no information if a datapoint is deleted.

When using WinCC OA 3.16 you can get the information if a datapoint is deleted by using the new sysConnect() function.

In case of dpQueryConnectAll always the complete result array is filled, even if only one dp element has changed. If the list is very long that may cause performance issues.

Best Regards
Leopold Knipp
Senior Support Specialist

2 posts • Page 1 of 1