Autor Thema: Ultrasonic Tank Level  (Gelesen 2504 mal)

Offline srd

  • Full Member
  • ***
  • Beiträge: 120
Ultrasonic Tank Level
« am: Juli 09, 2021, 10:20:45 Vormittag »
We have a 4-20mA / 5m ultrasonic tank level fitted at 3.8m in a tank. What is the best way to scale this as in affect 3.8m will now be 100%. Cheers

Offline Konni66

  • Global Moderator
  • Full Member
  • *****
  • Beiträge: 268
  • Keine Panik!
    • Eaton Trainingscenter Bonn
Antw:Ultrasonic Tank Level
« Antwort #1 am: Juli 09, 2021, 13:29:06 Nachmittag »
Hello srd,

what analogue input is used? What easyE4?
The easyE4 can only read voltage (0-10 V)!

In your case you have to use an
1.) analogue input module, OR
2.) a 500 Ohms resistor (input to GND)
Remember the wire length!

The most easy way is to use the function block LS (value scaler).
You have to define the min. and max. values on input (X1, X2) and the min. and max. values on output Y1, Y2) of function block.

Mark the function block an press F1 to see the help file.

Maybe You have to twist Y1 and Y2 values, if the sensor is mounted at the top of the tank and it works like
4 mA = short distance (tank full) = ~820 inc. (values < 820 inc. = wiring broken, use the CP to create an error warning)
x mA = middle distance e.g. 3112 inc. = x m
20 mA = long distance (tank empty) = 4095 inc. = 5 m

Simply use the rule of three to calculate the X and Y parameters.

The entries in screenshot should work for your application.

Greetings,
Konni



 
« Letzte Änderung: Oktober 13, 2021, 09:25:30 Vormittag von Konni66 »
Die Programmierbeispiele sind zu Schulungszwecken gedacht. Trotz sorgfältiger Erstellung und Funktionsprüfung können Fehler nicht ausgeschlossen werden. Daher erfolgt die Verwendung der Programmteile in eigener Verantwortung.

Offline srd

  • Full Member
  • ***
  • Beiträge: 120
Antw:Ultrasonic Tank Level
« Antwort #2 am: Juli 13, 2021, 12:51:25 Nachmittag »
Cheers Konnie i will give it a try.