11/17/2020 11:30 AM | |
Joined: 5/27/2020 Last visit: 8/2/2024 Posts: 5 Rating: (0) |
Hello guys,i am newbie in logo programming so any help from you will be very helpful. I want to create a project similar to this.I have a tank which shape is cone at the bottom and cylinder above the cone.The main idea is that i want to measure pressure and with some calculations convert to Kg and show it to logo screen. To achieve this i have a pressure sensor which is 4-20mA ( -50 mbar to 1000 mbar ) I have the logo 12/24 rce and the analog extension which has two analog inputs. My tank dimensions are these: Height of cylinder : 2,05 m Diameter of cylinder : 2,00 m Height of cone : 0,975 m Diameter of the cone at the bottom : 0,285 m The pressure sensor is installed at the bottom of the cone. First of all i would like some help to make the scale for the pressure sensor in the program.(which blocks to use and the parameterization of the gain and offset to achieve this) The scenario of the program will be the following.There are two cases.Case 1 measure pressure in the region of the cone and with the appropriate calculations this value will be converted to Kg and showed to logo screen. Case 2 measure pressure in the region of the cylinder and with the appropriate calculations this value will be converted to Kg and showed to logo screen. To sum up i want to be sure that the value of the Kg will be precise in the Case 1 and Case 2. Any help or program,if its possible, will be very helpful.Thank you! ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 11/17/2020 13:46:18New subject after splitting |
|
11/18/2020 1:19 PM | |
Joined: 2/22/2008 Last visit: 8/6/2024 Posts: 2698 Rating: (207) |
Here is a possible version to calculate the volume of your tank. If the density is like cold water, then Liter = kg. Check the values for different heights. Use google to find the formulas for cone and cylinder volume. The main problem in the Logo controller the number range -32768 ... +32767, when you have to calculate with several arithmetic blocks to avoid overflows. You have to setup your analog input number and ip address. Regards, Scorp AttachmentTank2.zip (275 Downloads) |
Follow us on