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.
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:
put a unit Group (mA) to the PV Variable inside OPCUAMap.
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)
Widget: put the pv at Value by choosing the pv (not the pv.node) in the dialog
Widget: unit: choose mA unit and my formula. put metric system and “inherit…”
it´s a numeric output widget.
So what´s wrong1?
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?
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
I’m glad it’s working now.