Short answer, yes although there is a better way. Machinekit can accept gcode from a socket if setup to do so, but what you are asking for with a tablet interface is actually already implemented via Machineface. Injecting gcode is generally reserved for 'dumb' implementations. With Machinekit you have access to a couple layers below the simple TTY if you want it, so things are generally setup a little differently and it works better in the end.
On Monday, February 26, 2018 at 1:29:29 PM UTC-5, Chris Albertson wrote: > Is there an easy way to get MK to read g-code lines one at a time from a > serial port? That means to read a code, then execute it right aways that > wait for another g-code. > > The reason I ask is I was thinking the best way to make a hand help > pendent or controller is to have the controller send g-code. It I won't > to jog and axis or do just about anything it can be sent over an 2 wire > connection. > > The controller I want to make will have a physical rotary encoder with 100 > division and some push buttons and an LCD screen. But I can envision doing > this also on an Android tablet. The jog wheel and DRO are on screen. > g-code seems the natural method of interface. > > Marlin, the software that runs on most 3D printers does this. It reads > g-code from a USB port, building a hand held controller for Marlin is > simple, just send g-codes. I'd like to do the same with MK. And use the > same hand controller for both > > > -- > > Chris Albertson > Redondo Beach, California > -- 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 [email protected]. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
