4-20 ma math

John Morris

Lifetime Supporting Member
Join Date
Sep 2015
Location
San Antonio
Posts
688
Good morning to all

It's on to phase 100 of the learning process.

Using FTV 8.1, Rs Logix Micro developer and 1400 micro processors.

We are installing a conductivity meter that out puts 4-20. I need to learn how to write out the math equation to convert the 4-20 and display on the HMI, data log it, and turn on an alarm after the high set point is reached.

Can any one point me to a link of some sample programming?

Thank you all for your valuable time and attention.
 
Just be careful to check the full range of the analog input you are using.

For instance, the 1762-IF4 set up for curent has a FULL range of 0-21mA resulting in counts from 0 to 32767. The following Counts/mA relationships are what you will see with that card:
Code:
32767   21 mA
31206   20 mA
6241    4 mA
0       0 mA

So for the SCP instruction you parameters would be
In Min: 6241
In Max: 31206
Scaled Min: Conductivity @ 4 mA
Scaled Max: Conductivity @ 20 mA
 

Similar Topics

I have an expression in a structured text routine of a Logix controller that looks more or less like the following: ResultInteger := Integer1 *...
Replies
13
Views
379
This application has a motor with encoder feedback that drives a linear actuator that moves in/out, and is at roughly 45 degs from horiz. As the...
Replies
19
Views
1,361
Hi all. First time programming a machine of this type. A center driven unwind feeding to a center driven rewind. No dancers or load cells, just...
Replies
37
Views
4,878
Hello, Been a while since I posted , Still sucking air been a interesting 3.5 years the dreaded health with old age scenario. Back at it and had a...
Replies
11
Views
2,057
Hello: Some time ago I wrote some basic code for a GuardLogix, in which I needed to add and subtract tags of LINT data type. When tried to use the...
Replies
13
Views
3,737
Back
Top Bottom