Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: paulxyz on March 27, 2018, 07:51:41 PM
-
Is there an easy way to drip feed mach 4 ?
either serial port ,TCP port, or file (externally appended to)
-
Hi,
what do you mean? Drip feeding data or code or what...saline solution?
Craig
-
Drip feed was a way to get around the small expensive memory limitations of CNC controllers in the past. Memory capabilities of Mach 4 are huge. Are you doing something that is even bigger or just trying to be compatible with an existing drip feed system?
-
Hi
Need to control mach4 from an external program, and drip feeding seemed the easiest way of doing it.
Unless there is a way of connecting the MDI input to a TCP port instead of a keyboard
-
Hi,
OK I understand now.
I believe that Mach/Lua is capable of supporting a TCP socket which could in turn feed textual Gcode
instructions from a remote file or server. The textual Gcode could be acted on:
mc.mcCntlGcodeExecute(inst,"[Gcode Textual Line]"), note I would not use the ExecuteWait() variant of the API,
you wish this to run as if it were a regular Gcode job.
I personally have no experience of setting up a Lua socket but there is a thread on the forum currently about such matters.
I think also that there is a example in the Mach4/Lua Examples folder.
Craig