Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
8 posts • Page 1 of 1
8 posts
• Page 1 of 1
Natty
Posts:34
Joined: Mon May 23, 2016 2:08 pm
A DP related to UI
Postby Natty »
Hello everyone,
I am trying to find an internal datapoint which indicates whether my user interface is on. To put things back in their context, I would like to set up a redundant system and to be able to watch whether WinCC OA is launched on my 2 server.
NB : I'm still beginning to get used to WinCC OA, so don't be too harsh on me if I asked something incredibly trivial
The internal dyn_int datapoint named _Connections.Ui.ManNums contains the manager numbers of all running UI managers. To see that datapoint in PARA you need to set the "Internal Datapoints" checkbox though, then look in the type named _Connections.
There are related datapoint for other manager types like drivers, controls, etc. there as well.
There is also an interesting datapoint type named _Ui containing a datapoint for each UI manager, with some interesting information in it, like which user is logged on, and which display the UI is running on.
Unfortunately, it is not as simple as that !
Yes, basically you should look at the _Ui and the _Connections datapoint but there are some warnings.
In a redu system you'll have 2 datapoints called _Connections and _Connections_2. Unfortunately, when you turn of one of the redu servers, then its datapoint wont be cleared. That is : the _Connections_2 datapoint will stil have its old data when you power of the entire server. The formula is more complex.
* When your script runs on server 1
* when the _Connection to server 2 is gone
* Then you should not look at _Connections_2 (and vice versa)
Also, when you start a Gedi. then the _Connections datapoint will be filled, but the _Ui datapoint (element username) is not cleared. You may think that someone is still logged in
with the CTRL-function reduActive() you can get the information which of the servers is active at the moment.
If the redundant servers have a connection is written to the dp-elements
_ReduManager.PeerAlive.Link0
_ReduManager_2.PeerAlive.Link0
If the value is 1 the servers are connected.
To get the correct information you have to check first to which of the servers the UI is connected. This information you can get with the CTRL-function isConnOpen().
Best Regards
Leopold Knipp
Senior Support Specialist
It works perfectly with these datapoints, thanks a lot.
I'm now looking for datapoints indicating whether a manager has fallen down. I've been watching the "_ManagerConnections" and "_Managers" leaf but I got a bit confused with all the different variables.
Do you have an explanation about this matter?
if you want to know which managers are currently connected to the event-manager you can read the elements for the datapoint _Connections(_2).
An explanation for the structure of the datapoint type _Connections can be found in the WinCC OA help --> Reference tables --> Internal data point types.
Best Regards
Leopold Knipp
Senior Support Specialist