Anyone know where to find in depth technical details of DRO scales?

ScrapMetal

Active User
Registered
Joined
Apr 6, 2011
Messages
2,082
What I am looking for is the method in which the reader heads return position information to the main unit. I assume that different brands use different (maybe proprietary?) protocols but I need a place to start.

About the only information I've been able to find so far is that one "standard" is to use a double sine wave where the signals are 90 degrees out of phase with each other. That's great and all but I still haven't read any where just how that is used to relay position. Phase change? Amplitude? Frequency? I don't know.

What I have in mind with this is to see if I can use a micro-controller (that I've been learning/experimenting with) to create an inexpensive DRO system for a lathe that is fully functional and has "professional" quality accuracy. Basically the next level up (or a couple of levels :biggrin:) from using the iGaging stuff. If I can make a unit that can be used with a number of different manufacturer's scales it would just be that much better.

Now, I could just hook up the scales I have to the oscilloscope, and I will, but that could prove to be a bit tedious and only give me limited information for one brand. If I can speed up the information gathering it will be a "good thing". :)

All tips and info will be much appreciated.

Thanks,

-Ron
 
I think it depends largely on the style of scale. Glass scales use (or used to, been a while) 3 LED's if I remember right, and phototransistors to "see" the engraved scale as it moves. Some read magnetic patterns similar to swiping a credit card or playing an audio tape. The tape contains digital information in a steady on and off pattern. Capacitive scales do a constant measurement of capacitance and sense changes in position by differential comparison.

Then to steppers and servos have rotary encoders which have their own signal count method.
 
Making your own DRO readout is fairly simple, especially with a micro-controller. There are multiple ways to do this, and just as many different types of scales. It would be difficult to make one system to handle them all, but the controller is not usually the expensive part, as they are fairly simple to make even with analog components.

As with most types of industrial sensors, DRO use some form of digital or analog sensor, or encoder, to extrapolate a position value. The simplest of these is the quadrature incremental encoder. This is one of the cheapest and easiest sensors to find. It can be found in multiple styles, the most common being rotary, but easy enough to make linear. These work by shining an LED through a glass disc, which has lines printed on it radially. As the led shines through it, it is systematically blocked, and un-blocked. A sensor picks this up on the other side of the disc. This creates a square wave. The longer each plateau, the slower the object is moving. Each rise and fall is commonly referred to as a "count". Taking the raw value of the counts and applying a scaling factor, will return a position. Then it is just a matter of determining direction.

This is where the Quadrature part of the name is used. There are two sensors in the encoder, offset by 90 degrees, as you found. This allows the sensors to be blocked and lit at slightly different times. A micro controller reads which one changes first, and is thereby able to determine if the count values should be subtracted, or added to the current count.

The major drawback to this style of encoder is that it does not have an inherent way to determine its position on its own. Because all of the lines are equal, and all the controller does is count pulses, if the controller is powered down without saving this data, or the machine moved without controller power, the position is no longer accurate. Therefore this type of encoder is called a non-absolute, or relative encoder. Some controllers use a small battery to backup the controller data, but will not power the encoder itself.

There are multiple types of "absolute" encoders, really too many to go into detail here, but another common one in DRO scales is the Gray code encoder. Again found in both rotary and linear styles, these use a very similar technology to the plain incremental encoder. However these has more than two sensors. Usually 4-8. Each sensor reads a "track" printed on the scale. Each of these tracks is very simply interpolated as a binary bit, and reading all of these together, gives a position. The longer and more accurate the scale is, the more sensors and more tracks it will have. (Wikipedia has an excellent article describing how Gray code works)

The main advantage should be fairly obvious, the position in read accurately on power up, and no counting is required. The machine can be moved while powered down, and the position will still be accurate.

There are literally hundred different ways to measure position. If you want something REALLY fancy, and a really good technical term, look up the "magneto-restrictive linear displacement transducer". (There is a mouthful!) Amazing technology that sends electric pulses down a wire which has a magnet near the line. The magnet literally "restricts" and partially reflects the pulse, which the controller reads, and can, through the onboard timer, determine how far away the magnet is from the reference point. As the magnet moves, the pulses get shorter or longer, depending on which way the magnet is moving relative to the sensor. But you will NOT see this kind of technology, unless you are working on a half million dollar machine.

Wow, I know way too much about encoders....

Sorry to ramble,

-Cody
 
I think it depends largely on the style of scale. Glass scales use (or used to, been a while) 3 LED's if I remember right, and phototransistors to "see" the engraved scale as it moves. Some read magnetic patterns similar to swiping a credit card or playing an audio tape. The tape contains digital information in a steady on and off pattern. Capacitive scales do a constant measurement of capacitance and sense changes in position by differential comparison.

Then to steppers and servos have rotary encoders which have their own signal count method.

My description of what I a looking for is lacking (As usual. Hey! It's hard work being the village idiot!) While it does help to understand how the data is collected in order to use that information I need information about the signal output of the reader heads. I was considering using the old Sargon scales/readers that came with my mill (they are or were glass) but they aren't in salvageable condition. Thanks Tony.


Making your own DRO readout is fairly simple, especially with a micro-controller. There are multiple ways to do this, and just as many different types of scales. It would be difficult to make one system to handle them all, but the controller is not usually the expensive part, as they are fairly simple to make even with analog components.

As with most types of industrial sensors, DRO use some form of digital or analog sensor, or encoder, to extrapolate a position value. The simplest of these is the quadrature incremental encoder. This is one of the cheapest and easiest sensors to find. It can be found in multiple styles, the most common being rotary, but easy enough to make linear. These work by shining an LED through a glass disc, which has lines printed on it radially. As the led shines through it, it is systematically blocked, and un-blocked. A sensor picks this up on the other side of the disc. This creates a square wave. The longer each plateau, the slower the object is moving. Each rise and fall is commonly referred to as a "count". Taking the raw value of the counts and applying a scaling factor, will return a position. Then it is just a matter of determining direction.

This is where the Quadrature part of the name is used. There are two sensors in the encoder, offset by 90 degrees, as you found. This allows the sensors to be blocked and lit at slightly different times. A micro controller reads which one changes first, and is thereby able to determine if the count values should be subtracted, or added to the current count.

The major drawback to this style of encoder is that it does not have an inherent way to determine its position on its own. Because all of the lines are equal, and all the controller does is count pulses, if the controller is powered down without saving this data, or the machine moved without controller power, the position is no longer accurate. Therefore this type of encoder is called a non-absolute, or relative encoder. Some controllers use a small battery to backup the controller data, but will not power the encoder itself.

There are multiple types of "absolute" encoders, really too many to go into detail here, but another common one in DRO scales is the Gray code encoder. Again found in both rotary and linear styles, these use a very similar technology to the plain incremental encoder. However these has more than two sensors. Usually 4-8. Each sensor reads a "track" printed on the scale. Each of these tracks is very simply interpolated as a binary bit, and reading all of these together, gives a position. The longer and more accurate the scale is, the more sensors and more tracks it will have. (Wikipedia has an excellent article describing how Gray code works)

The main advantage should be fairly obvious, the position in read accurately on power up, and no counting is required. The machine can be moved while powered down, and the position will still be accurate.

There are literally hundred different ways to measure position. If you want something REALLY fancy, and a really good technical term, look up the "magneto-restrictive linear displacement transducer". (There is a mouthful!) Amazing technology that sends electric pulses down a wire which has a magnet near the line. The magnet literally "restricts" and partially reflects the pulse, which the controller reads, and can, through the onboard timer, determine how far away the magnet is from the reference point. As the magnet moves, the pulses get shorter or longer, depending on which way the magnet is moving relative to the sensor. But you will NOT see this kind of technology, unless you are working on a half million dollar machine.

Wow, I know way too much about encoders....

Sorry to ramble,

-Cody

At this point I haven't gone completely mad with the idea of making my own scales/encoders (Don Quixote comes to mind) Thanks much for the "ramble". It reinforces my thoughts that I just need to get a couple different brands of encoders/scales and hook them up to the O-scope and start taking readings.


Oryou could take the easy out if you have the scales by just getting one of these. http://www.ebay.com/itm/261217206389?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1438.l2649

Yeah, it's hard to justify the time and effort when you can buy a complete unit cheaper than my parts will probably cost. :eek: There's no fun in that though! (I can probably trace this "build" desire to growing up in the "Heathkit" days.) What I have in mind is coming up with an "open source" DRO that could easily be reconfigured/programmed to work with just about any old scales a person might have lying around. I'm also going to "cost it out" and see if I can't come in at least a bit cheaper than the one you posted.

Thanks,

-Ron
 
Still not sure why I wrote half a thesis on encoders... But anywho, I think the point hat I was trying to make is that you are most likely to be dealing with digital signals.

But the o-scope might not be the easiest way to figure this out. If you can, carefully take the scale apart, and look at its sensing mechanism. Most just have a cover that is fastened by a few screws. If you can actually see the scale, and it matches one of the ones that I have described, then you are good to go!

There is always the possibility, though rare and probably found on more advanced and expensive scales, that the scale itself has circuitry which does the counting and transmits data via a communication protocol. I dealt with one that used CANbus communication between the scale and the readout.

Im going to stop myself before I write the second or third page of this thesis.

Let us know what you find!


-Cody
 
Ron

Check out " open sorce DRO " It is a project using a PC for a dro. Shumatech also uses it for his kit and has some info on his sight. There is a open sorce dro group on yahoo I bleave.


Marty
 
I doubt that many read heads produce a digital output as it would be easier to do all the hard processing in the main unit but I've been wrong before (after and in-between :eek:). I will definitely take a look at it though.

Marty, I'll be looking that up. That may be very useful.

Thanks guys,

-Ron
 

Yes, I've seen Yuri's project and it is interesting. My problem with that approach is two (or three :biggrin:) fold.

I appreciate being able to use the processing power of the smart phone/iPad/android device BUT in order to use them they would need to be in close proximity to my lathe or mill both of which tend to fling oil, coolant, and hot metal in every conceivable direction. While "tough" by carry standards they still aren't designed for this kind of exposure.

Speaking of exposure, they are also all "touch screens". As this is pretty much a hands-on activity I know my hands get full of oil and grunge/metal filings/etc. A single afternoon of use in my shop would see the screens and probably the cases covered in muck and oil or scratched beyond use (I need things clear, my eyes aren't as good as they used to be :eek:). Not a good thing.

I can go on but I think you get the general idea of how I feel about it. This is just my opinion though and shouldn't be seen as a criticism of what Yuri has been working on.

Thanks,

-Ron
 
Back
Top