I’m using the tinyweb pendant for cnc.js and I’ve modified it to move the buttons around and add new buttons. I access it via my phone.
The z-probe command set as per the desciption for the Tiny Touch Plate is:
G28 Z
G92 Z0.5
G0 Z5 F480
This is an example of a button that would trigger the Z-Probe
<div class="col-xs-2">
<button
type="button"
class="btn btn-default"
title="G92 Z0"
onclick="cnc.controller.command('gcode', 'G28 Z')">
Z Probe
</button>
</div>
To do all 3 in one go I tried variations on this:
<div class="col-xs-2">
<button
type="button"
class="btn btn-default"
title="G92 Z0"
onclick="cnc.controller.command('gcode', 'G28 Z|G92 Z0.47|G0 Z5 F480')">
Z Probe
</button>
</div>
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?