Jump to content

Decimal points or fractions in the linearization function block

Recommended Posts

  • MVP 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

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. 

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...