Help - Search - Members - Calendar
Full Version: SLC 500 ANALOG CONVERSION TO mm.
Forums.MrPLC.com > PLCs and Supporting Devices > Allen Bradley
fcflores1
Hey, Guys

I have an application where i will be using -10v to +10v (-32,768 to 32767) Input card. And i would like to convert my raw data to mm.

Thanks.......... thumbsupsmileyanim.gif

Chris Elston
QUOTE(fcflores1 @ Aug 17 2006, 10:51 AM) [snapback]38425[/snapback]
Hey, Guys

I have an application where i will be using -10v to +10v (-32,768 to 32767) Input card. And i would like to convert my raw data to mm.

Thanks.......... thumbsupsmileyanim.gif



Somehow you need to establish a voltage to mm linear relationship. The easiest way I do this, is connect to analog card. Move device 1 mm, and see what the voltage change is. Let's say it is 106. So it's safe to say 1 mm = 106. Now do the math from there.

If you want your integer value to be mm, then convert it. 1/106 is 0.009433 conversion factor.

Make a ladder rung COMPUTE (analog INPUT value * 0.009433) and put that into a real register, now that real register will be actual mm.


-
fcflores1
Is there any other way of doing it without putting human error in the logic. Can I scale the raw data then convert it from there?



Thanks............ thumbsupsmileyanim.gif

Ken Moore
QUOTE(fcflores1 @ Aug 17 2006, 11:23 AM) [snapback]38428[/snapback]
Is there any other way of doing it without putting human error in the logic. Can I scale the raw data then convert it from there?



Thanks............ thumbsupsmileyanim.gif



Maybe..............
Do you know the total distance of travel?
Since you're using a -10V to +10V card, are you looking for a +/- reading in mm units?

You might be able to use a SCP, it all depends.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.