I can’t get that to work. It only triggers the auto home command so I’ve broken it up into 3 buttons for now.
Does anyone have any suggestions on a way to probe that can be triggered with a single onclick?
I’ve only got the comments in the full app. The tinyweb code has no comments.
I’ll try the macro route later today.
That might be the simplest if the macro definition sticks.
I think my first post didn’t show the code I was using properly and was actually trying to render the button. I’ve edited it to be a preformatted text.
Sorry for any confusion!
I am looking to setup a Probe command on CNCJS to set my Z Zero using a 10mm Touch Plate. Would this be the correct Gcode?
G28 Z ; Home Z
G38.2 Z-10 F100 ; Probe downward until the block is touched
G92 Z10 ; Set Z to the probe block thickness
G0 Z5 ; Raise Z 5 mm above the workpiece