Here’s another example of how to optimize your workflow using JavaScript macros in OpenBuilds Control.
The probing cycles built into OpenBuilds Control certainly make life easier when setting up jobs. Unfortunately, for those of us with bigger machines, probing stock at the far end of the machine is difficult when your computer isn’t close.
JavaScript macros can be initiated via a keyboard shortcut. We can use this feature to launch the probing wizard by calling the appropriate JavaScript function and setting the focus on the Confirm Probe Position button.
To bring up the XYZ Zero probing wizard, create a new macro using the following JavaScript code. Be sure to assign a keyboard shortcut to it.
openProbeDialog();
$(document).ready(function() {
setTimeout(function() { document.getElementById('confirmNewProbeBtn').focus(); },100);
});

Depending on what probe you have, when you press your keyboard shortcut either the “Automatic” or “XYZ Zero” probing wizard will launch and set focus to the “Confirm Probe Position” button. Pressing Enter twice will start the probing routine.
You can also press the tab key to get to other probing routines if needed. But that is a slow process and we are trying to make life easier, so here is a list of the other probing wizard functions you can call.
X Zero Wizard:
openProbeXDialog();
$(document).ready(function() {
setTimeout(function() { document.getElementById('confirmNewProbeBtn').focus(); },100);
});
Y Zero Wizard:
openProbeYDialog();
$(document).ready(function() {
setTimeout(function() { document.getElementById('confirmNewProbeBtn').focus(); },100);
});
Z Zero Wizard:
openProbeZDialog();
$(document).ready(function() {
setTimeout(function() { document.getElementById('confirmNewProbeBtn').focus(); },100);
});
If you have any questions, post them in the comments section below.
If you are new to OpenBuilds CONTROL, be sure to check out my OpenBuilds CONTROL tutorial.
OpenBuilds Products I Use (affiliate):
OpenBuilds CONTROL
Workbee 1510 (similar to Lead 1010 or Lead 1515)
BlackBox Motion Controller
BlackBox X32 Motion Controller
Interface CNC Touch Controller
Router11
XYZ Touch Probe Plus