Sending gcode to Machinekit from remote source

90 views
Skip to first unread message

Michael Labuda

unread,
Jun 17, 2020, 12:33:07 AM6/17/20
to Machinekit
Greetings fellow Machinekit users,

I am wondering if Machinekit has any method of remotely receiving gcode commands from another application, similar to MDI mode except code is not typed directly at the UI. I am not concerned about security or latency and the gcode instructions I intend to send over are very simple, just G00/G01 and an occasional M code. I have found some unresolved posts asking a similar question however they are all several years old. Has such a capability been added on since then? Could someone point me in the best direction in which to implement such an option? I am open to developing a solution myself is necessary. Any advice would be greatly appreciated.

Thanks,
Michael

Chris Albertson

unread,
Jun 17, 2020, 1:04:56 AM6/17/20
to Michael Labuda, Machinekit
My first thought is that way can't you open a named UNIX pipe and read g-code from it just as you read from a disk file.  Then the process that writes to the pipe can get the g-code any way it likes from any remote location.   See the man page for "mkfifo" if you've not used named pipes before.   It should work with no modifications to MK.


--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/0a67eaea-755a-4cb1-87c9-d82789169d06o%40googlegroups.com.


--

Chris Albertson
Redondo Beach, California

John Morris

unread,
Jun 17, 2020, 3:51:32 AM6/17/20
to Machinekit
Check out the Machinetalk wrapper. It has this functionality built in for remote UIs.

John

________________________________________
From: machi...@googlegroups.com <machi...@googlegroups.com> on behalf of Michael Labuda <michael....@gmail.com>
Sent: Tuesday, June 16, 2020 11:33 PM
To: Machinekit
Subject: [Machinekit] Sending gcode to Machinekit from remote source
--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+...@googlegroups.com<mailto:machinekit+...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/0a67eaea-755a-4cb1-87c9-d82789169d06o%40googlegroups.com<https://groups.google.com/d/msgid/machinekit/0a67eaea-755a-4cb1-87c9-d82789169d06o%40googlegroups.com?utm_medium=email&utm_source=footer>.

Michael Labuda

unread,
Jun 17, 2020, 8:41:29 AM6/17/20
to Machinekit
I have never used named pipes. I will look into that possibility. Thanks

Len Shelton

unread,
Jun 17, 2020, 9:32:10 AM6/17/20
to Machinekit
Did Machinekit drop emcrsh?
Reply all
Reply to author
Forward
0 new messages