advertisement
from the it seems im a newbie again department...
RSLOGIX 500, 5000 and the SCL SCP commands
PLCs and related questions. topic
Posted by Kordain on 14 March, 2006 - 10:15 pm
Hi all,

After years of programming SLCs i've been pitted against a CompactLogix and a 1769-IF8 analog input card. Ive been playing with configuring the inputs from the card and have come to the conclusion that you can either have it presenting percentage values or engineering/raw values showing the milliamp input values or raw values which arent much use to me either way. Percentage would be good if it were a tank level analog but its a flow meter and I need to scale it to some meaning full range in m/sec.

And so my question. if you do set to use engineering units scaling on the card configuration is there anywhere you can put your own engineering units in to it?
Or
If you can't what do you use (instead of the SCL & SCP commands that were so damn helpfull in the SLC) to convert the analog value to some meaning full engineering value

Im sure it must be me thats being dumb and not the incapable software but any comments either way are gratefully appreciated.

With thanks,
Mike


Posted by VPP on 17 March, 2006 - 1:16 am
SCP and SCL functions can be easily translated to a mathematical formula, so you can have your one unit of measure.


Posted by Steve Myres on 17 March, 2006 - 12:35 pm
I, too, remember being surprised that the "Engineering Unit" option on 1769 I/O didn't mean process engineering units but the actual electrical input parameter to the card. Before I figured out what they'd done, I thought "Boy this is cool, we can just configure the engineering unit conversion right into the input module". The option the way they have it is useless. If I have to convert from raw input to engineering units (real ones) I can just as easily do it from 0-32,767 as from 0-10.00.

--
Steve Myres, PE
Automation Solutions
(480) 813-1145



Posted by Curt Wuollet on 18 March, 2006 - 11:04 am
It's not very hard to use math functions to duplicate the function of scale and scale with parameters. It's basic slope and offset stuff. It often helps to plot what you want to do. Doing the math with RLL is rather inelegant compared to any other programming language but it should be possible to do it once, perhaps as a subroutine and reuse it. My offhand explanation would probably confuse more than illuminate, but the process is exactly the same as would be used to calibrate an analog sensor with a 4-20 ma. output. You can probably find good examples of that if you google 4-20 ma transmitter. You are mapping one range to another.

Regards
cww


Posted by Michael Batchelor on 16 April, 2006 - 7:02 pm
Mike,
Try looking these over. They were written for SLC users, and are not specifically aimed at converting the function to the CLX platform. But
they will give you a lot of insight into what's actually happen. Particularly the sections about using the SLCs *WITHOUT* the SCP instruction. You can extrapolate from them to do what you want on the CLX.

http://www.ind-info.com/training/y=mx+b_part1.pdf
http://www.ind-info.com/training/y=mx+b_part2.pdf

Michael Batchelor
www.ind-info.com
Guerrilla Maintenance Training (tm)
for Allen Bradley PLC5, SLC500, and CLX
training@ind-info.com

Industrial Informatics, Inc.
1013 Bankton Cir., Suite C
Hanahan, SC 29406

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2014 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.


Fortune
Computers will not be perfected until they can compute how much more
than the estimate the job will cost.
Advertise here
advertisements
164-page eBook free download - EtherCAT Applications Guide
Servo, stepping motor control, analog & web HMI in one system!
Control.com is the largest Automation community on the web. Learn how to advertise here now...
View free setup and multi-vendor EtherCAT demo videos online
Servo, steppers, analog, digital & web HMI - Fully Integrated!
our advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive