Hello Guest it is April 27, 2024, 11:13:51 AM

Author Topic: Just starting out  (Read 1626 times)

0 Members and 1 Guest are viewing this topic.

Just starting out
« on: January 27, 2023, 04:58:22 PM »
I am trying to build a medium size 5-axis CNC router with a closed loop system running Mach4, and a gantry weight between 130-150 lbs. I need to know what kind of board can run the 5 axes and a slave axis, what closed loop steppers, or servos, and the accompanying drivers, possible power supply, computer, wiring harnesses or connectors, any inputs like proximity sensors, Modbus, or any necessary incidentals I am forgetting. I've tried to do as much research as I can on my own and have some ideas but from what I have seen online there is some information that I just can't seem to find out and hopefully, this will answer some questions.
Re: Just starting out
« Reply #1 on: January 27, 2023, 05:42:17 PM »
Hi,

Quote
I am trying to build a medium size 5-axis CNC router with a closed loop system running Mach4,

Would you explain a little more about what you mean?.

Mach4 is not a feedback CNC control software, it is a Gcode interpreter and trajectory planner. It outputs numeric data that describes the controlled point (of the machine)
in 1 millisecond time slices to a buffered external motion control board like a Hicon or ESS. Mach4 cannot receive position feedback and use that to alter its output. This is because
a Windows PC cannot (practically) be a realtime device, ergo the output of the PC must be buffered. A buffer will have somewhere in the region of 50ms to 250ms buffer delay.
This buffering delay totally screws with Mach4 being a realtime feedback control solution.

As such Mach4 is an 'open loop' controller, it tells a machine where to go and expects the machine to do it. If the machine cannot keep up Mach has no way to know that nor
can it do anything about it. The machine itself may recognize that its missing steps and signal a fault whereon Mach4 would Estop.

I use Mach4 and an Ethernet SmoothStepper (ESS). My machine has Delta servos. The servos are closed loop. That is to say Mach4/ESS/BoB signal to the servo drive where the servo is to go and the
drive takes it there. If the servo cannot go there, maybe because of excess load, or because the path laid out for it is just too fast, it will recognize that and issue a 'Following Error Fault'
and that will in turn stop Mach4.  Closed loop steppers do very much the same thing. Is this what you mean by 'closed loop'?.

There are two motion control boards that are closed loop, the Hicon and CSMIO/A. They accept encoder input from a servo or maybe linear scale and adjust the controllers analogue
output (+-10V) to the servo amplifier and thereby control the servo. This means that the motion control board  closes the loop rather than the servo drive. Such schemes are really only
used on old school analogue servos and are rapidly disappearing. Additionally both of theses board are expensive and the Hicon requires extra activation to allow this mode of operation and
brings the cost to $1200USD. Is this what you mean by 'closed loop'?

There is a third possibility for closed loop control called 'load sensing' where the position of an axis is sensed by a linear scale and a servo/servo drive combination 'close the loop
on the load sensed position'. This requires some higher end hardware but is worth considering if you want the 'latest and greatest'. Is this what you mean by 'closed loop'?

So as you can see there are several interpretations of what 'closed loop' means and have a very major bearing on the hardware, the cost of that hardware and the complexity of the solution.
What is it you want to achieve?

As I have said I use Mach4 and an ESS which are both open loop, but with closed loop servos. When the servos are tuned properly and the acceleration and velocity parameters
correctly programmed within Mach4 the machine performs perfectly with 1um resolution without ever getting out of step for hours/days/months at a time. I've not had a
'Following Error' fault in many months and I use my machine daily for work, and often for hours at a time. So while Mach4 and the ESS maybe open loop the closed loop servos
still bring the resolution, accuracy and reliability 'to the party'.

Craig

« Last Edit: January 27, 2023, 05:44:32 PM by joeaverage »
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Just starting out
« Reply #2 on: January 27, 2023, 05:53:25 PM »
Hi,
just as a matter of interest I have attached some pics of my machine, it's all my own design and build, and if the truth be known I'm quite proud of it.

I have just finished fitting a 750W Delta servo to the fourth axis, and now it works much better and faster than the stepper driven earlier attempt.
Note this is just a rotary fourth axis....but yesterday I bought another Atlanta Drives worm drive for a fifth axis, so the rotary fourth axis will become
a trunnion table over the next few months or so.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Just starting out
« Reply #3 on: January 27, 2023, 09:04:57 PM »
Thanks for the input it helped a lot, the closed loop I was thinking of was the automatic stop if anything was under too much load, etc., most of the information I have gathered comes from the Youtube channel ThisOldTony, I believe he also used Mach4 and a SmoothStepper for one of his builds but that was for an open loop router, but he used an EtherCat system for his closed loop conversion. My father and I are just trying to make this CNC as a project though a little much for beginners, it is a router style that we just see using closed-loop steppers or servos as the best option. We're just trying to figure out the motion control for the most part, all of the mechanical components are fabricated by him. If there is anything you think I am missing or have any advice for the motion control like what kind of servos and drivers (we were looking at DMM) you would recommend that would be grateful, any advice is useful.

Thanks again,
Devin
Re: Just starting out
« Reply #4 on: January 28, 2023, 12:39:11 AM »
Hi,
OK, that explains quite a bit about what you are after. I understand why you think closed loop servos or steppers would be advantageous
but the truth is that a well-designed and well spec'ed open loop system will be every bit as good.

Prior to my new mill (18-24 months old) I used an own design mini-mill for eight years. It had open loop Vexta steppers matched to low lash planetary gearboxes
and C5 ballscrews. Once I got it set up and tuned it NEVER missed a step except when I did something stupid.

All steppers lose torque the faster they go, that's just plain physics and there is no way around it. Thus, any given stepper may have lots
of torque at low speed but at 1000 rpm its very inclined to miss a step due to the decreased torque. If you limited the stepper speed to
500rpm it would  probably never miss a step. So by choosing 1) the right steppers and 2) the right limiting accelerations and speeds a
stepper driven machine will be as good as any closed loop machine...and a damn sight cheaper!!!

The manufacturers of closed loop steppers will tell you that their products 'never miss a step, go faster, more power, more this that and the other thing', nearly
all BS. A closed loop stepper loses torque the faster it goes....just like an open loop stepper, closing the loop changes not one jot the physics of how steppers work.
If a closed loop stepper is running fast and now only has marginally enough torque to power the load, if it misses a step then the stepper drive will insert an extra step
to catch up....but guess what, that step is just as likely to be missed as any other. If it misses too many steps then it will recognize that its lagging behind and will fault out.
The bottom line is that closed loop steppers can get overloaded and start missing steps FOR EXACTLY THE SAME REASONS as an open loop stepper. A closed loop stepper
will valiantly try to catch up and may even succeed, but ultimately its being asked to go too fast against to much load than its capable of. Neither does closing the loop make
a stepper faster or more powerful.

The two advantages that closed loop steppers do have is that they can reliably and accurately do microsteps where open loop steppers fail, and also that they will fault
out if they lag to far behind rather than carry on making an out-of-tolerance part. Quite frankly the advantages offered by closed loop steppers are too slim to justify
the expense. Well-chosen open loop steppers and drives will be every bit as good. As to what constitutes the 'right' stepper is all about inductance. If you want to know
more I will post if you wish.

If you want genuine closed loop performance then you want AC servos. The main advantages of servos is they have a flat torque curve all the way out to 3000rpm, and
also they have three to four times their rated torque as a short term overload. This overload feature means that they seem to perform much better than the specs would suggest.
In short they kick arse and humble any stepper ever made...shame they cost as much as they do.

I use Delta servos, a Taiwanese brand made in China. DMM are a Canadian brand made in China. Both brands are good quality, support, documentation and most importantly
free set-up and tuning software at fair prices. There are cheaper Chinese brands and they are attractive because of price. By-and-large they are good quality and performance but
questionable support and worse documentation and no set-up software. If you've never used servos before don't go there, servos take quite a bit to set up and tune, you
don't want to start with one of these Chinese things with s******t documentation.

I use Delta B2 series servos, they have a 160,000 count per rev encoder, and are considered the entry level for Delta. There are even better servos, the A2 and B3 series
particularly....but even my B2's are absolutely fantastic. The servo pictured in the fourth axis above is:

https://www.fasttobuy.com/flange-80mm-239nm-ac-motor-driver-kits-with-3m-cable-220v-075kw-cnc-servo-motor-for-cnc-router_p28084.html

Its about a fortnight old!

The truth is that you can make a perfectly good machine with either steppers or servos if you choose well. I would defer that decision until you look at various other
components and the rigidity, or lack thereof, of the machine you want to build, and they will in turn direct your thinking about the axis motors.

What sort of accuracy do you want to achieve......and most importantly what materials do you want to cut?. If you want to cut wood and plastics, maybe a little
bit of aluminum, very VERY slowly then you'll need a machine of rigidity R. If you want to do a good job in aluminum without taking all bloody day then you'll need a machine
of rigidity 5R. If you want to cut steel the you'll need a machine of rigidity 20R at the absolute minimum. Cutting steel is very VERY demanding and most hobby machines
suck at it.

For accuracy you need to choose between rolled C7 ballscrews (cheap) or C5's (or even C3's) at ten or more times the price.

You also need to decide on round rails or square. Round rails are OK for wood but nowhere for metals, even only aluminum, for that you need square rails.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Just starting out
« Reply #5 on: January 28, 2023, 04:31:19 PM »
Thanks for all the input it helps tremendously, going to start doing more research on motion control using steppers, at this point servos are out of our price range, we got a quote from DMM and it comes out to about $2400 for X, 2 Y's, and Z servos. Hopefully, when we work on the next machine we can upgrade to servos. If we have any more questions I'll be sure to post here and maybe get some feedback again.

Thanks again,
Devin
Re: Just starting out
« Reply #6 on: January 28, 2023, 04:59:53 PM »
Hi,
yes servos, at least good ones are still expensive, even if they are cheaper now than they have ever been. The 750W Delta I linked to
cost $438USD and another $150USD Fedex to New Zealand for a total of $588USD. The shipping hurts but then again I got them
2 days , 19hours and 40 minutes after Fedex picked up the box in HongKong....so its hard to complain about that service. I don't know how
they do it but this shipment should have had GST added to it, that is a NZ tax, but I think the dear old Chinaman must have lied about the value
of the parcel because customs did not bother charging me. I was fully expecting to have to pay another $150NZD on arrival. I just hope no one
from NZ customs sees this post!

The thing about servos/steppers are that they are bolt on units. You might design and build a machine with cheap steppers to meet your
budget but a couple of years later swap them out for servos, a very worthy upgrade.

What is often difficult to near impossible is to 'stiffen up' a wobbly machine. You need to build the most rigid machine you can from the outset
as usually there is no upgrade path for that.

I would reserve your budget for the best ballscrews and linear rails you can get and make the most rigid frame you can. If you choose and
build well you'll have the foundation of a machine that you quietly upgrade over ten or more years.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Just starting out
« Reply #7 on: January 28, 2023, 05:45:01 PM »
When the frame is done being fabricated I'll try to post some pictures if I can, thanks for the advice so far, much appreciated.

Devin
Re: Just starting out
« Reply #8 on: January 28, 2023, 06:24:57 PM »
Hi,
I had determined that I wanted C5 ballscrews or better when I designed and built my mill, but there is no way I can afford genuine
ground C5's....so I bought second hand. The problem with second hand is that you can't always get exactly what you want, so you have to make
your machine fit to what you can get.

I'd have to recommend getting the ballscrews and linear rails BEFORE designing and building the frame, otherwise you'll find that you have to pay
a big premium to get parts to fit your machine, when if you'd made your machine 50mm smaller (or bigger) you could have gotten such and such ballscrews for
1/4 the price.

I have made many purchases from this company:

https://www.ebay.com/str/industrialpartsshop?_trkparms=folent%3Aindustrialpartsshop%7Cfolenttp%3A1&_trksid=p3542580.m47492.l74602

For the same money you would pay for new C7's you might find second hand or new old stock C5's or C3's.

I have three THK 32mm diameter, 5mm pitch, 650mm long, double nut (BNFN) C5's that I got from this company, and cost $1000USD including shipping to New Zealand.
They look like new old stock to me. I don't think they'd ever been used. I could be mistaken about that, but whatever they are in perfect condition for my machine.
I would expect to pay $2000 each new, and that's just the ballscrew, and does not count the BK25 support bearings which would easily be another $500 a pair.
I would say I got $7500USD worth of products for $1000USD, and that is quite a saving and allowed me to build a much better machine than I could otherwise
have afforded. Funnily enough I didn't have to pay GST on those either!

I got new old stock 20mm THK linear rails (648mm) and HSR cars from the same company for $700USD including shipping, and that's for three sets, ie six rails
and 12 cars. A big saving on new, not quite as dramatic as the ballscrews, but certainly made it possible to build a nice machine for the money I had. I didn't pay
GST on those either!

You may detect that I take some delight in avoiding the 15% GST that is occasioned on all products entering New Zealand, and shame to say it, it's true.
Mostly however I do pay. For instance, now if you buy off Ebay the 15% GST is automatically collected and forwarded to the NZ government by Ebay.
Most other products where the supplier does not lie about the true value of the products then customs comes after me for the GST. My favored means of getting
stuff from the US is to use a freight service offered by NZPost. I effectively have an address in Portland Oregon, and have a US supplier send it there, no trouble.
US post is good within the US just crap outside the US. Then NZPost handle the international shipping which includes me paying the required GST. So its not so much
that I don't pay GST but I look for a discount where I can get it ;)

To reiterate I would get the ballscrews and linear rails BEFORE building the machine. If you are patient and troll through EBay you'll pick up some bargains that will
mean a much better machine than the cost would suggest.

Craig
« Last Edit: January 28, 2023, 06:29:41 PM by joeaverage »
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Just starting out
« Reply #9 on: January 28, 2023, 06:42:45 PM »
Hi,
just as a case in point I earlier posted a pic of a new servo reducer I bought off Ebay. The reducer cost $180USD and the shipping within the US was $36USD.
It is being shipped to my NZPost address in Portland Oregon and the reducer, about 10kg, is coming from North Salt Lake Utah. I paid Ebay at 10:00 am Friday
morning (NZ time) and its already in Portland at 1:00pm Saturday (NZ time). It hasn't hit the NZPost depot yet, and probably won't until Monday (US time),
but still pretty damn good.

Craig
« Last Edit: January 28, 2023, 06:55:31 PM by joeaverage »
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'