Closed wdevauld closed 10 years ago
I would put in a textbox and bind (http://api.jquery.com/keypress/) enter to it. I believe this matches closely to how Mach operates so it would be the most intuitive. In the callback, check the value, make sure it is sane, then feed it to the controller.
how are you testing these changes? Are you doing it at the space? -W
On Mon, Mar 24, 2014 at 9:56 PM, dbynoe notifications@github.com wrote:
I have added the basic z jog code. Right now it only does 10 units at a time. Whats a good way to implement a text box where I can type in an amount to jog for larger moves?
Reply to this email directly or view it on GitHubhttps://github.com/Protospace/LasaurApp/issues/1#issuecomment-38528679 .
Admittedly I just added it and haven't tested it, I basically just copied the x jog, and slowed the feed speed (the Z on that machine is way under-geared), it needs testing.
The jog code is fairly straight forward, it just passes gcode to the grbl interpreter, (sorry I am not sure if you know gcode at all, so I'll include an an explanation)
ie. gcode = 'G91\nG0Z10F100\nG90\n'; (switch to relative coordinates, make an uncoordinated move +10 on the Z axis at 100 feed speed, switch to absolute coordinates)
If you wouldn't mind setting up the text box and variable, like gcode = 'G91\nG0Zvariable goes hereF100\nG90\n'; I don't know JS or html well enough to implement that. Sanity checks wouldn't hurt but the machine has limit switches now..
I would still keep two buttons for step up and down in small increments for final focusing.
The only other thing we could add since we have limit switches is a dropdown box for material thickness and then make an absolute move to a specific position, but that's a nice to have feature rather than requirement.
Implemented by David
I have added the basic z jog code. Right now it only does 10 units at a time. Whats a good way to implement a text box where I can type in an amount to jog for larger moves?