Jhav Posted February 9, 2023 Report Share Posted February 9, 2023 I am trying to show gallons per minute using the linearization function. the flow meter i am using has a measuring range of 0.26-16 GPM, is there a way to enter 0.26 of a gallon in the Y1 portion of the linearization function block? Link to comment Share on other sites More sharing options...
MVP 2023 kratmel Posted February 9, 2023 MVP 2023 Report Share Posted February 9, 2023 The linearization block does not work with floating point numbers. Therefore, it is probably advisable to multiply the desired number by 10, 100 or 1000, converting it into a integer number and carry out linearization for the integer number. Then convert the obtained result into a number with a comma. Some "how to" advice in the topics below. Link to comment Share on other sites More sharing options...
Jhav Posted February 9, 2023 Author Report Share Posted February 9, 2023 Thank you. I will look through the examples. Link to comment Share on other sites More sharing options...
Fernando Castro Posted February 10, 2023 Report Share Posted February 10, 2023 17 hours ago, Jhav said: I am trying to show gallons per minute using the linearization function. the flow meter i am using has a measuring range of 0.26-16 GPM, is there a way to enter 0.26 of a gallon in the Y1 portion of the linearization function block? PLC basics... PLCS don't like decimals (floating numbers) well it's more like floating numbers require more memory to handle and even that there are functions to properly work with them, most of the time it's just way mor easier to shift some zeroes and work with 26 to 1600 instead of 0.26 to 16.00 and just place the decimal point in the hundreds place on the HMI where a human will be reading the number. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now