Hello Guest it is April 29, 2024, 12:01:34 PM

Author Topic: live feed  (Read 603 times)

0 Members and 1 Guest are viewing this topic.

live feed
« on: May 24, 2022, 06:54:23 AM »
Dear sirs
I need to use mach 4 to drive motors that respond to sensors in real time.
Kindly let me know if the mach4 API allows for live feed from a gcode script that is generated by other software in real time
regards
Ivan
Re: live feed
« Reply #1 on: May 25, 2022, 02:09:34 AM »
Is this as part of a CNC application or are you just seeking to control some motors in speed and/or position from a computer?  If the latter I would think that a CNC controller is not a suitable starting point.
Re: live feed
« Reply #2 on: May 26, 2022, 07:52:53 PM »
Hi,
Mach4, like Mach3 that preceeds it run on Windows platforms, and Windows is not nor is ever likely to be realtime.

Windows uses the interrupt system VERY extensively for its own purposes and therefore any application, Mach4 say, cannot be realtime because
Windows has priority. Mach4 is a buffered control solution. With a well sorted and powerful PC you might get the buffering time down to 20-30 milliseconds,
but still there is a delay.

When you say you want realtime performance....what do you mean?. Could your control strategy accommodate delays of this magnitude?

You might be advised to investigate LinuxCNC. The current Linux distro that is used is Debian with Realtime Pre-empt Kernel. Any reasonable PC should be able
to manage 5usec jitter....would that be fast enough?

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: live feed
« Reply #3 on: May 27, 2022, 02:26:09 AM »
Or you could even look at GRBL.  This is open-source, interprets g-codes and turns them into pulse streams to drive steppers.  Runs on an Arduino, doesn't have all the stuff that makes Mach (3/4) into an application.  FREE.