# Celcius to Fareheit conversion

## Recommended Posts

Hello,

I'm using a M90-R1 PLC.

A section of my application is used to convert degrees Celciust o Fareheit. The formula is Tf = (9/5)*Tc+32.

Is the M90 can handle numbers with decimals? For the 9/5, since the result is 1,8 i used an integer number 2 for the calculation... It give a approximate conversion...

How can i improve it?

##### Share on other sites

• MVP 2023

An old trick for PLCs that only have integers is to use a "virtual decimal". Multiply the celcius value by 18 and add 320. Your fahrenheit value will have a virtual tenths place which you can work with and display by setting the numeric format to xx.x. Otherwise, you can divide the answer by 10 and get rid of it.

I checked this out on my slide rule. It works great!

Feel free to try it out on yours. Don't forget to add your exponents or you won't get the right answer. Or you could program the Jazz to do it.

Joe T.

##### Share on other sites

Thank You mr Tauser!

I will try it tomorrow!

## 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.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

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

×
×