easy-forum

Deutsch - Software => Galileo => Thema gestartet von: srd am Oktober 16, 2020, 11:01:38 Vormittag

Titel: Scaling Issue
Beitrag von: srd am Oktober 16, 2020, 11:01:38 Vormittag
using a 4-20ma / 6m transducer to show tank level how do a do the scaling to show meters with a decimal point. Scaling would be 819 = 0.0m, 4095 =6.0m

My apologies i was after info to put it on an xv102 easy screen
Titel: Antw:Scaling Issue
Beitrag von: Konni66 am Oktober 16, 2020, 11:14:44 Vormittag
Hello srd,

here's the possible solution.

Greetz,
Konni
Titel: Antw:Scaling Issue
Beitrag von: srd am Oktober 16, 2020, 11:39:21 Vormittag
My apologies i was after doing it on an xv102 easy hmi screen
Titel: Antw:Scaling Issue
Beitrag von: Konni66 am Oktober 16, 2020, 13:09:31 Nachmittag
Okay, so we need a Galileo solution.

You have to add a value conversion to the value display object.
I call the conversion group "Measures" and added a conversion called "TankLevelConversion".

The converion type is MMI=PLC*a/b+c

The calculation (Incs =  value of the AD-Converter):

(4095 Incs - 819 Incs) / 600 cm = 5,46 Incs/cm (factor)
Because we can't use floating point values for calculation I multiplied PLC Incs and factor with 1000 to get an exact result within the following integer division.

819 Incs / 5,46 Incs/cm = 150 cm (the level offset because of 4 mA)

So I have to subtract 150 cm off the result.

MMI= (TankLevel  * 1000 / 5460) + (-150) [cm] -> Decimal point = 2 -> [m]
Titel: Antw:Scaling Issue
Beitrag von: srd am Oktober 23, 2020, 10:24:04 Vormittag
Cheers for showing me that i will give it a try. Much appriciated.