Jump to content

8AI/0 for M91-2-T38


Srle

Recommended Posts

I have a temperature measurement  (4 mA) -200 °C til (20 mA) 50 °C

The mesurement needs to show on the LCD Dispaly and to bee sent via SMS.

I used linearization Display values X=-200 and Y=50 for MI- value 3277 to 16383. 

I works only when X is grater then 0 (Zero). Any suggestions?

Thank you 

Link to comment
Share on other sites

  • MVP 2023

Don't use linearization display functionality.  You can't access the linearized value anywhere else.

If you're going to be embedding the temperature in an SMS message then you need to use the special function blocks in ladder to put the linearized value in an MI.  You can put this on the display, too.

On 12/21/2017 at 6:46 AM, Flex727 said:

Post your code.

+1

Joe T.

Link to comment
Share on other sites

  • 3 months later...
On 12/24/2017 at 1:40 AM, Joe Tauser said:

Don't use linearization display functionality.  You can't access the linearized value anywhere else.

If you're going to be embedding the temperature in an SMS message then you need to use the special function blocks in ladder to put the linearized value in an MI.  You can put this on the display, too.

+1

Joe T.

If the only requirement is to send the value in an SMS, the display variables are the preferred way, since you need to set one up regardless for the SMS. If your intention is to use the linearized value anywhere else, try placing your measured low value in SI 80, your measured high value in SI 81, your adjusted low value in SI 82 and adjusted high value in SI 83. Then place your measured value in SI 84 and call SB80. The linearized value will be placed in SI 85. Attached is an example piece of code (in a little different order, but works), which i use to measure pressure from 0 to 11Bar using 0-10V analog input.

PressureLinear.U9N

PressureLinear.PNG

Link to comment
Share on other sites

4 hours ago, Joe Tauser said:

You're supposed to call SB 80 last (in a separate net) after you've loaded SI 80 .. 84.  If you're variable isn't changing fast your code will work fine, it's just kind of backwards.

Joe T.

which is true, and this should be followed. In my case sb 80 is set every 3 seconds with a timer  (which is not shown in example) and just had to plonk it in there to complete the example. This works aswell, but you should follow the worded quide, and as Joe T. said, set the SB 80 AFTER you have set the variables in the SI's

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.

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