WinCC OA .Net (C#) Integration "Enterprise Service Bus"...


C# prototype library for WinCC OA communication. For testing i created C# clients with gauges and a chart. Those clients are connected to WinCC OA datapoints (dpConnect, dpQueryConnect, dpGet, dpSet, ...) For testing purposes i started some clients to see how it works with many clients and change rates of about 100 values/second...

 

https://www.youtube.com/watch?v=ZH4H7rkDjnw

Example:

           
           if ( oa.Open() )
           {
                oa.StartListener();

                // --------------------------------------------------------------------------------------------
                // dpQueryConnect
                Console.WriteLine("=== dpQueryConnect ===");
                var c2 = oa.dpConnectQuery(
                    (object sender, MessageResult m) =>
                    {
                        for (int i = 1; i < m.Count; i++)
                        {
                              Console.WriteLine("Callback[" + i + "]" + m[i][0] + " " + m[i][1] + " " + m[i][2]);
                        }
                    },
                    "SELECT '_original.._value', '_original.._stime' FROM '*.**'",
                    false
                );
                Console.WriteLine("press key to disconnect"); Console.ReadKey();
                c2.Disconnect();
            }
Last update:
2015-02-28 18:16
Author:
Andreas Vogler
Revision:
1.0
Average rating:0 (0 Votes)

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.