WebVisu icon indicating copy to clipboard operation
WebVisu copied to clipboard

conversion factor for variables doesn't work

Open triessner opened this issue 4 years ago • 3 comments

I use the function conversion factor (Umrechnungsfaktor in german) in the visu (see picture below).

Screenshot_20210129_183647

In the java version and in the visu inside of codesys, it works. But in the javascript visu, the factor is always 1 (no conversion is done at all), independent whether there is a conversion factor or not.

triessner avatar Jan 29 '21 17:01 triessner

i don't think this is supported right now and i don't know what is does ... could you enlight me ?

Ekristoffe avatar Feb 11 '21 07:02 Ekristoffe

This factor is multiplied with the value of the variable and the result is displayed in the visu. In my example, I habe a value of a storage in percent, and in the visu I want to show the value in kWh. The conversion factor between precent and kWh in this case is 8,38 (1% equates to 8,38 kWh). Of course I can declare a new variable in the global variables list, calculate the energy value in the programme and use this variable in the visu. But it is more "quick and dirty" to use the factor.

triessner avatar Feb 11 '21 19:02 triessner

This has to included in the interfaces within #22

tnentwig avatar Feb 16 '21 17:02 tnentwig