Hello Guest it is April 19, 2024, 11:07:51 AM

Author Topic: Mach 3 USB version  (Read 2262 times)

0 Members and 1 Guest are viewing this topic.

Re: Mach 3 USB version
« Reply #10 on: July 29, 2022, 06:23:49 PM »
"In this regard Ethernet connected motion controllers are much better, for instance the UC300 which is also made by CNCDrive." I'll go back to their website and take a look. Didn't notice it before.
Re: Mach 3 USB version
« Reply #11 on: July 29, 2022, 06:28:34 PM »
Hi,

Quote
Still curious to know: Do all breakout boards use a parallel port input so that you either have to have a parallel ported PC or a UC100?

Most breakout boards conform to the old parallel port pin numbering and plugs. Its not that they have to, but rather that the history of Mach, being rooted in the parallel port,
when new products came onto the market they to conformed so they would meet wide scale applicability.It's a bit like Henry Ford, having decided on a wheel at each corner for
his new car, that now every car manufacturer does the same thing!!LOL

Another example is the Ethernet SmoothStepper (ESS) by Warp9. The ESS have three parallel port equivalents, but rather than DB25 connectors they have IDC headers, but still
numbered like a DB25. The PoKeys 57CNC however has IDC headers, numbered in standard IDC manner, with no similarity to a parallel port.\

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach 3 USB version
« Reply #12 on: July 30, 2022, 02:23:39 AM »
Your local time is 5 hours behind uk.

I have one uc100 on about a 1 metre cable to the mill the other about 2 metres to the lathe.  Lathe has vfd drive, mill uses a kbe dc drive.  No problems with noise.
« Last Edit: July 30, 2022, 02:25:38 AM by JohnHaine »
Re: Mach 3 USB version
« Reply #13 on: July 30, 2022, 10:51:42 AM »
"No problems with noise." Thanks for sharing that. I was hesitant after the post about cable length.
Re: Mach 3 USB version
« Reply #14 on: July 30, 2022, 12:22:10 PM »
Well that was my experience anyway.  If you do get noise problems the first thing is to use high quality USB cables with decent shields, and often you can improve things by wrapping a couple of turns of the able through a ferrite ring.  But as I said, I've not had any problems and I haven't taken any special precautions.
Re: Mach 3 USB version
« Reply #15 on: July 31, 2022, 01:46:14 AM »
Cable not able through ring...
Re: Mach 3 USB version
« Reply #16 on: July 31, 2022, 02:44:05 AM »
Hi,
the issue is that USB is not an galvanacly isolated connection. Thus any voltage disturbance that occurs at one end upsets the comms at the other end.
Ethernet is transformer coupled at both ends, ie its galvanacly isolated, and has much greater immunity to noise. Physics.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach 3 USB version
« Reply #17 on: July 31, 2022, 10:18:38 AM »
So, Craig, are suggesting that an ethernet cable could be used? Obviously, it can plug into the computer, but what about at the breakout board?
Re: Mach 3 USB version
« Reply #18 on: July 31, 2022, 04:58:26 PM »
Hi,

Quote
So, Craig, are suggesting that an ethernet cable could be used? Obviously, it can plug into the computer, but what about at the breakout board?

No, I think there is some confusion about what a breakout board and a motion controller is.

A breakout board has no 'processing power', but rather just buffers signals and offers screw terminations for wires , and maybe a relay or two, and sometimes a PWM to analogue
converter for the spindle.

A motion controller on the other hand  accepts numerical trajectory data from Mach/PC and converts that numeric data into stream of pulses. In many cases the output
of the motion controller goes into a breakout board, or more than one, and then to the machine. Other motion controllers require no breakout board.
The motion controller can be connected to the PC by either a USB cable or Ethernet, with Ethernet cables having a noise advantage. Such a motion controller will require
a micro-controller and/or an FPGA to process numerical data to accurately timed pulse streams

The confusion has resulted from the way Mach was originally developed, namely the parallel port. In a parallel port PC there are two distinct software chunks running, the one
most familiar is the Mach program itself and its GUI, a Windows application. Machs task is to interpret Gcode and generate the numeric trajectory data, also called P(osition)V(elocity) over
T(ime), PVT data. The second chunk is Machs pulse Engine which is code that lives in the kernel alongside Windows. Its this software that converts the PVT data to pulse streams
and communicates that to the outside world via the printer port. So according to the definition above Machs Pulse Engine IS the motion controller.

The issue is that Machs Pulse Engine has to co-exist with Windows is very subject to stalling and jitter because of the shared processing. With an external motion controller like the UC100,
the UC300 or an Ethernet SmoothStepper that conflict does not occur because the processing of trajectory data is handled NOT by the PC but the motion controller. The hardware used
for the motion controller does just one job, and does it well. As a result the pulse streams coming from a good external motion controller are much faster, smoother and more accurately timed
without the stalling and jitter that occurs with Machs Pulse Engine. It also means that Mach, the Windows application is no longer tied to running on a 32 bit machine that was mandatory for
Machs Pulse Engine, so you can use laptops, 64 bit and Windows 10 etc, none of which were possible with Machs Pulse Engine.

In short a good external motion controller is a major step up in performance and capability over Machs parallel port. The choices we have alluded to are a (genuine)UC100, a UC300, or
an Ethernet SmoothStepper, but there are other worthy choices also like a PoKeys 57CNC, as CSMIO or a Hicon. The later two are very good but quite expensive, starting at $600USD.

If you are considering a motion controller a good purchase will result in you using that board for many years and the suggestion is consider the current requirements but also what you might like to do
in the years to come. For instance a UC100 has the equivalent of 'one parallel port' or 17 inputs and outputs. That's enough for a basic machine, but if you ever need more IO you're screwed,
whereas the UC300 has 85 inputs and outputs, or the Ethernet SmoothStepper (ESS) has 51 inputs and outputs, so either would be of use in later years. The UC100 operates up to 100kHz,
a good step up from the parallel port, but the UC300 operates up to 400kHz and the ESS up to 4MHz! Thus if you ever upgrade to servos you'll want at least the speed of the UC300
but better the speed of the ESS to take advantage of the resolution and speed that servos offer.

About eight years ago I bought an ESS (cost at that time $180USD) and Mach4 ($200USD) and have been using them ever since, and both have proven to be the best value investments in CNC
I've ever made. Machines, spindles, tools, vices, breakout boards, steppers, servos are all subject to change over the years but Mach4/ESS has the backbone right from the start.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach 3 USB version
« Reply #19 on: July 31, 2022, 06:15:17 PM »
Your explanation is wasted on me because you're way smarter than I am! All I know is that the two machines I built before, both had parallel cables coming from old PCs. Those cables went to breakout boards. The CNC drivers were connected to the breakout boards. The steppers were connected to the drivers. The software was Mach3. I no longer have a PC with a parallel port. This time I'll need to use something like the suggested UC100 so that a b/o board designed to accept a parallel port cable could be connected. I assumed you were suggesting that I ditch the USB to DB25 adapter and use an ethernet cable. I was wondering how that would hook up.