![]() |
||
|
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
| ||
New Here? Please read this important info!!!
|
|
#1 |
|
Member
![]() Join Date: Oct 2005
Location: York, ME
Posts: 5
|
I have a 4-20ma input to a 1794-IE8 Flex I/O module. The Flex I/O is talking to a PLC5/40. What is the correct value to use when scaling the raw value. This circuit is measuring water flow in gal/min, and has a max value of 1000 gal/min.
|
|
|
|
#2 |
|
Member
![]() Join Date: Jul 2005
Location: Sydney
Posts: 366
|
I recently had to make some modifications to an existing PLC5 system to include some analogue values and unless I am very much mistaken, there is no scale instruction. You will probably have to use a compute instruction with good ol' y=mx+b to calculate the scaled value, with a bit of clipping added in just in case.
As an example, assume the 4-20mA input is configured to give 0-4000 counts, and let's assume the input is a pressure transmitter that outputs 12mA at normal atmospheric pressure, 4mA at -1bar and 20mA at +1bar (0 counts, 2000 counts and 4000 counts). This gives you at least two known points on a line that you can use to calculate the presssure given a number of analogue counts. So, we have the following, assuming pressure is on the y axis: m = y2 - y1 / x2 - x1 = 2 - 0 / 4000 - 0 = .0005 b = 0 (b is y axis crossing point, but 0 bar = 0 counts) x = measured input (let's say 3000 counts for first calc) so y = .0005 * 3000 + 0 = 1.5 bar, which is what you'd expect. Substituting 2000 = 1 bar, 0 = 0 bar. Hope that helps.... does anybody know a better way to do this? I had no time to reasearch anything better...
|
|
|
|
#3 |
|
Member
|
Like other 1794 analog modules, IE8 uses only most significant bits.
Look at this manual http://literature.rockwellautomation...m002_-en-p.pdf Page C-2 gives you unscaled values for all modes and page C-3 gives you example of scaling For 4-20mA: 4 ma= 0000 20mA= 7878 HEX 21mA= 7FFF HEX
Last edited by Contr_Conn; October 8th, 2005 at 07:52 AM. |
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Topics
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Modicon Analog input scaling.. | jimdi4 | LIVE PLC Questions And Answers | 3 | August 23rd, 2004 10:32 AM |
| analog input work on ab plc5 | yam785 | LIVE PLC Questions And Answers | 1 | July 9th, 2004 05:34 PM |
| PID output scaling PLC5 | russrmartin | LIVE PLC Questions And Answers | 2 | January 30th, 2004 04:45 PM |
| analog input scaling? | Fred Chwalek | LIVE PLC Questions And Answers | 2 | December 4th, 2003 05:16 AM |
| A/B Analog Input Scaling | WhatThe | LIVE PLC Questions And Answers | 18 | November 28th, 2003 06:24 PM |