Problems with missing _Ui_xy Datapoints

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
4 posts • Page 1 of 1
urban.doerig
Posts:2
Joined: Fri Aug 22, 2014 12:13 pm

Problems with missing _Ui_xy Datapoints

Post by urban.doerig »

It would be nice if a missing _Ui_xy datapoint would be created as soon as he is needed.
when a customer tries to start a UI with a number which is not in database for example _Ui_21 for starting a UI -num 21.
Our costumer have problems with the errormessage shown and they don't know not how to create this datapoint.

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

Re: Problems with missing _Ui_xy Datapoints

Post by leoknipp »

Hello,

the problem is already known, right now there is no solution for it included in the WinCC OA system.
To avoid the problem you can create the required datapoints before handing over the plant to your customer. When creating a new _Ui datapoint please ensure that an _archive-config is defined and configured for the Element "UserName". Otherwise the login statistics panel will not work correctly.

Best Regards
Leopold Knipp
Senior Support Specialist

RudiKreiner
Posts:198
Joined: Mon May 16, 2011 2:10 pm

Re: Problems with missing _Ui_xy Datapoints

Post by RudiKreiner »

We also use more UIs than are configured by default when setting up a new database and have an initialize script that creates the required datapoints, but have never considered that we should also add the archive config. I guess we should do that then.
When I look at the archive configs of the default datapoints I am surprised to see that they are active but have no configuration at all.
It looks to me like the archive data is then written to the archive 00:Administration, at least I can see the entries there.
I assume that this is the default archive class that is used if nothing else gets configured.

RudiKreiner
Posts:198
Joined: Mon May 16, 2011 2:10 pm

Re: Problems with missing _Ui_xy Datapoints

Post by RudiKreiner »

If it is of help to anyone, here is the code we run in an initialization control script for generating and configuring the required datapoints.
The UI range that is set here from 11 to 20 kann be adapted as required, of course.

Code: Select all

main()
{
  // create datapoints for these UIs that get used by the touch panels
  create_dps       ("_Ui_%d",            "_Ui",        11, 20);
  add_admin_archive("_Ui_%d.UserName",                 11, 20);
  create_dps       ("_CtrlDebug_UI_%d",  "_CtrlDebug", 11, 20);
}

// Create a datapoint named 'dpname' of type 'dptype'
create_dp(string dpname, string dptype)
{
  if (!dpExists(dpname))
  {
    dpCreate(dpname, dptype);
  }
}

// Create datapoints named 'dp_mask' of type 'dptype' numbered from 'min' to 'max'
// where 'dp_mask' should contain a c type format string (%d) for the dp numbering.
create_dps(string dp_mask, string dptype, unsigned min, unsigned max)
{
  for (unsigned i=min; i

4 posts • Page 1 of 1