Calculate OPC values and using units with "user scale" in mappview

Hello again,

i want to show a OPC value my visualisation.

In order to be able to show the unit it is necessary to connect the unit in OPC editor. Further on the widget by choosing the “unit” item at the properties when the “value” property is connected. So far so good and this i know to handle.

Now i have e.g. a value on the opc which is 10000 which is representing 10000W or 10KW.
I want to have a value of 10.0 KW in the widget. Which properties i have to change?
Next step i have a OPC Value which is a analog input value (Range from -.32767 to + 32767). This is representing e.g. -10 to +10V. How can i give here all the steps and scales in order to get 10V shown in the widget by having 32767 in the opc Variable.

Hope you can give me some advices to help me

I think you speak about OPCUA, right? maybe unit system with formula is way to go? B&R Online Help

2 Likes

Hello Jaroslav,
yes, this is what im looking for

Thank you

1 Like

i further situation now which i don´t understand.

i creat a new unittranslation (formula).
i connected it with the widged and did the setting at “unit” and choose my formula.
what i get is “xx” in the widget in arsim.

what i want to have: the pv Variable is an analog Input at 0 bis 20mA which is 0 to 32767 in the pv Variable. i want to have 0 to 20mA in the widget.
what i have configurated:

  1. put a unit Group (mA) to the PV Variable inside OPCUAMap.
  2. create a Unittranslation with m: 0,00061. Input Unit and Output Unit is mA.
    (if i put no input unit its the same behaviour. I wonder if there is a Unit just 1 with no unittext and a unittranslation 1:1)
  3. Widget: put the pv at Value by choosing the pv (not the pv.node) in the dialog
  4. Widget: unit: choose mA unit and my formula. put metric system and “inherit…”
    it´s a numeric output widget.
    So what´s wrong1?

What to check?

  • Is ‘XX’ present in all values in mappView? If so, then the OPC UA information model configuration is very likely incorrect.
  • Did you bind your OPC UA tag as a node? I think node binding is required for unit functionality, not value binding.
  • If the problem is related to unit configuration and calculation, you can likely see an error in the logger. Do you have any errors logged?

Hallo Jaroslav,
it seems a little cracy.
After i startet as new after a shutdown and a new build the calculation seems correct and “xx” vanished and the expected behaviour is now there.
Thank you for help

A miracle? :slight_smile:
No, no, turning it off and on again, or doing a “Build All” and transfer, is the first thing any of us tries when we run into “a strange” issue :wink:
I’m glad it’s working now.

Good morning.
now it seems ok.

1 Like