Machsupport Forum

Third party software and hardware support forums. => CS-Lab => Topic started by: Chaz on January 08, 2016, 06:43:46 AM

Title: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Chaz on January 08, 2016, 06:43:46 AM
Hi,

Sorry if the subject is confusing.

I assume that his is a similar setup to having a motor driving something mechanical and then using a '3rd party' measurement system to feedback to the IP-A. Linear scales is a good example of this.

In my case I have a DC motor, that takes -10 to +10V input. All good, IP-A, sorted. The DC motor then has Tach feedback to its own Drive.

Then, on the ballscrew pulley (not the motor), is a suitable encoder (5V TTL) that can give the IP-A unit feedback.

The pulleys are not the same size, therefore the ratio is not the same as the motor speed. The ratio is however fixed. The Encoder does 2000 PPR measurement.

Is it possible for the IP-A unit to be used in this situation? If so, how? Where do I configure the calibration or do I mess with the steps per mm count to make the maths work?

Many thanks.
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: mikecole on January 09, 2016, 12:30:53 AM
Chaz,

The config you describe should work fine. I have a similar config in that servo amps receive only tach feedback from servos. On my config encoders are on the servo motor shafts however I see no reason why your config should not work. Just compute the steps/inch or steps/mm correctly according to the location of your encoders. Since you have 2000L encoders they provide 4 edges per pulse or 8k/rev edges. If encoders are on ball screws directly you simply divide 8k/pitch to arrive at the correct scaling. On my machine I have .2"/rev pitch so I would calculate 8k/.2" to get the correct scale. The scale is entered In Mach under Config-->Motor Tuning.

In theory it may be more accurate to have encoders directly on ball screws if, like my machine, screws are driven by belts. It would seem that belts stretching could affect the accuracy of my machine. If however the encoder is fixed to the screw then belts could not affect accuracy. Does this make sense?

Good Luck!
Mike


Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Chaz on January 09, 2016, 04:21:09 AM
Chaz,

The config you describe should work fine. I have a similar config in that servo amps receive only tach feedback from servos. On my config encoders are on the servo motor shafts however I see no reason why your config should not work. Just compute the steps/inch or steps/mm correctly according to the location of your encoders. Since you have 2000L encoders they provide 4 edges per pulse or 8k/rev edges. If encoders are on ball screws directly you simply divide 8k/pitch to arrive at the correct scaling. On my machine I have .2"/rev pitch so I would calculate 8k/.2" to get the correct scale. The scale is entered In Mach under Config-->Motor Tuning.

In theory it may be more accurate to have encoders directly on ball screws if, like my machine, screws are driven by belts. It would seem that belts stretching could affect the accuracy of my machine. If however the encoder is fixed to the screw then belts could not affect accuracy. Does this make sense?

Good Luck!
Mike




Hi, yes, perfectly. I thought about it last night again, it must work. And as its on the drive shaft, as you say, more accurate. It doesnt care what the motor does, it cares where the leadscrew 'is'.

Thanks, will confirm later today hopefully once I get this running.
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Chaz on January 10, 2016, 07:19:47 AM
So, this is working although we had issues on using Enc Channel 0. I checked wiring, I checked everything. X kept coming up with an error although it would move, the CSMIO Plugin highlights a problem. Ill upload a vid. After numerous attempts to fix, mechanical and electrical, I moved it to Enc Channel 3, problem gone. Any ideas? This is whilst the Y Axis, wired exactly the same way, works without issue. Just upload a vid of this to utoob, will link when done.
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Chaz on January 10, 2016, 07:34:07 AM
Vid is not very clear, hoping that its utoob busy processing. If you watch the X values, they increment up and down but flash 255 in red too. What does this mean?

https://www.youtube.com/watch?v=h4sDZypSXXM
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Chaz on January 12, 2016, 03:48:01 PM
So have a response from CS Labs. The red numbers are a count of errors. Suggested that I check shielding etc.
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Hood on January 17, 2016, 05:47:55 AM
Good to know what the red means :)

Regarding using scales or encoders mounted remotely from the motors, you will only have issues if there is backlash between motor and encoder/scale, in that case you may have tuning issues.

The most accurate location for a scale is on the axis itself as it will be the true position.
On the shaft of the ballscrew you will still be on the wrong side of backlash, if there is any in the ballnut, so it will not really be any more accurate than having the encoder on the motor.
Hood
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Chaz on January 17, 2016, 06:29:54 AM
Thanks. Started to do the retrofit properly yesterday. As of last night managed to get everything working. Had a few small issues, mostly own mistakes.

This is a really interesting machine, it was built in the 90s for we think Datron to buy the rights too. Granite base, really small, air bearing spindle etc.

Need to do a bit more wiring and see if we can reuse the very expensive Euchner MPG that comes from the stuff we have removed.

Some pics here, the wiring is not final, will be tidied when it goes into the case.

https://www.flickr.com/photos/79889472@N06/albums/72157663462959562

(https://c2.staticflickr.com/2/1459/24057866179_8db380d959_b.jpg)

(https://c2.staticflickr.com/2/1659/24057869799_5682590445_b.jpg)

(https://c2.staticflickr.com/2/1517/23798873423_fd8f6f31ff_b.jpg)
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Chaz on January 17, 2016, 06:31:16 AM
This is the machine itself.

http://www.mycncuk.com/threads/9377-Any-experience-or-software-for-Control-Techniques-FNC4-Wha-do-I-replace-it-with
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Hood on January 17, 2016, 01:17:26 PM
Nice looking mill, are the slides air bearing as well or are there profile rails in there somewhere?
Hood
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Chaz on January 17, 2016, 02:15:03 PM
Linear Rails all around. Very interesting machine. Cant wait to see it doing some milling. Im likely away this coming week, else it would have been this weekend most likely.
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Hood on January 17, 2016, 02:21:53 PM
Make sure you post a wee vid on youtube :)
Hood
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Chaz on January 17, 2016, 03:11:39 PM
Make sure you post a wee vid on youtube :)
Hood

Will do. Im now researching air linear rails .... didnt know stuff like this existed. Any idea of costs?
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Hood on January 17, 2016, 04:42:58 PM
I don't think air  linear rails really exist as such, well there are machines with them but they are custom made machines.
It is just with yours being made of granite I thought possibly it had them as I have seen (online somewhere) a lathe that was made of granite and used air bearing slides.
Hood
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Chaz on January 18, 2016, 03:20:43 PM
I don't think air  linear rails really exist as such, well there are machines with them but they are custom made machines.
It is just with yours being made of granite I thought possibly it had them as I have seen (online somewhere) a lathe that was made of granite and used air bearing slides.
Hood

They do it seems, check this (and similar). I phoned around today, got some pricing ..... all I can say is ouch but when someone mentioned repeatability of microns ....

http://www.oavco.com/ etc

https://www.youtube.com/watch?v=rRZUxV90nGQ
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Hood on January 18, 2016, 05:15:29 PM
Take it you have ordered a load of them then :D

Hood
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Chaz on January 18, 2016, 05:45:37 PM
Take it you have ordered a load of them then :D

Hood

Ye, 10 of each.

This kit is 10s of thousands .....

Im still going to research this and see what can be done.
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Hood on January 18, 2016, 05:47:51 PM
This was the lathe I mentioned earlier
https://www.youtube.com/watch?v=sFrVdoOhu1Q

Hood
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Chaz on January 18, 2016, 05:56:06 PM
This was the lathe I mentioned earlier
https://www.youtube.com/watch?v=sFrVdoOhu1Q

Hood

Thanks. Ive watched it a few times (spotted yesterday). Really awesome stuff. His other vids are worth a watch too.
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Hood on January 18, 2016, 06:46:30 PM
Yes, clever guy.
Hood
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: mikecole on January 19, 2016, 12:56:26 AM
Chaz,

Your mill looks like a real gem. Didn't recognize the original control, is it a Fanuc? Also, who manufactured the mill? Again, looks like a gem of a machine. Looking forward to seeing the results of your retrofit! The link to the air bearing lathe is fascinating. Thanks for sharing that.

Mike
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Chaz on January 19, 2016, 03:53:39 AM
Chaz,

Your mill looks like a real gem. Didn't recognize the original control, is it a Fanuc? Also, who manufactured the mill? Again, looks like a gem of a machine. Looking forward to seeing the results of your retrofit! The link to the air bearing lathe is fascinating. Thanks for sharing that.

Mike


Hi, its not my mill, doing it for someone. It has (had) something called Control Techniques FNC4. Looks like a MS Dos based PC solution bringing all the neccessary cables / information back to a multitude of interface boards. Not sure if I can cross link to the my cnc forum images, but this is it.

(http://www.mycncuk.com/attachment.php?attachmentid=17043&d=1451726807)
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Chaz on January 24, 2016, 03:03:34 PM
So, retrofit mostly done. Space is tight, especially since we added the mpg module and took up more space.

(https://c2.staticflickr.com/2/1714/24462957012_d8f63c2e63_b.jpg)

(https://c2.staticflickr.com/2/1600/23944455483_52b077e52e_b.jpg)

(https://c2.staticflickr.com/2/1485/24462969592_b7fc553c9b_b.jpg)

Z height finish is flawless. Not that impressed with finish but the cutting strategy was crapped and rushed. Not a bad little machine.

Just uploading a vid ....
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Chaz on January 24, 2016, 03:55:37 PM
https://www.youtube.com/watch?v=qY_ADgW3st8
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: mikecole on January 25, 2016, 08:37:53 PM
Nice job on the retrofit install, looks neat and tidy despite cramped quarters. Results look good!

Mike
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Hood on January 29, 2016, 05:24:38 PM
Looks good, though not sure if it is just the camera moving about or maybe a bit of tuning needed, axis seem to be overshooting a wee bit.
Hood
Title: Re: IP-A and Linear Scales / Encoder not directly on motor - how?
Post by: Chaz on January 30, 2016, 06:03:56 AM
Looks good, though not sure if it is just the camera moving about or maybe a bit of tuning needed, axis seem to be overshooting a wee bit.
Hood

Indeed. We have done some more work last night to complete teh wiring. Occasionally get PID errors, perhaps 2000 / 2500 mm/min is too much for this little machine. Really struggling to get the PID turning spot on but its working fairly well. I think the owner would probably want something that could cut quicker. Also having a bit of an issue on the X travel, not sure from what.