Allen bradley PLC Analog Input

minaykha

Member
Join Date
Apr 2009
Location
singapore
Posts
96
Hi All,

I got one program from my customer.Pls check the attachment picture.

The formula is used to convert 4-20 mA to flow rate (Liter per minutes.)

I can see the calculation result on HMI as a flow rate.

I think, something wrong with the formula because the reading on the HMI is not actual flow rate.I can see the actual flow on flow meter.

Can anyone suggest me which formula should i use to get the actual flow rate reading?

Thank in advanced.

flow rate calculation.jpg
 
I can't really see your calculations, but they look mostly wrong. Why are you trying to normalize with 65534? And if you do, you should make the formula explicitly calculate in floats by making all of your constants xxxxx.0 (65534.0).

Why can nobody look up scaling? This is simple, basic, low-level math. Why must it be such a mystery and be re-invented (incorrectly) 4 million times a day?

/shrug.

If you are going to normalize, then operate all in floats. Divide your raw input value by the maximum to get a range of 0 to 1, then multiply that by your maximum engineering units.
 

Similar Topics

Hello, I am new here. I am trying to find good places to sell some surplus items that I have that isnt through ebay. Does anyone have any sources...
Replies
5
Views
316
Hi good day Everyone, I have a cimplicity v10 project with 7 to 8k tags communicating with AB PLC through OPC and Rslinx classic. I have this...
Replies
3
Views
208
I am using Allen Bradley PLC 1756-L81E and EIP module 1756-EN2TR for Ethernet/IP communication. My communication works fine but in Get-Attribute...
Replies
2
Views
184
I have a network with 4 PLCs PLC1 is controllogix and PLCs 2-4 are compactlogix and they all need to communicate. The current way I have this...
Replies
8
Views
254
Hi Everyone, I am currently trying to communicate ControlLogix PLCs via EtherNet/IP with Delta V DCS. There is a VIM2 card configured for...
Replies
1
Views
243
Back
Top Bottom