I was wondering if there was any Spin & Feedhold button int he ChiliPeppr enviroment? I know the FeedHold! button is on the interface, but what about the spindle? I’m essentially using the Spin pin as a output signal to trigger a solenoid to pneumatically dispense RTV. Right now if I use Feedhold, the RTV will continue dispensing. Need to figure out a way to pause/stop both. Any help is appreciated.
Well, perhaps the easiest thing to do is write a macro that attaches to the click event of the feedhold button so it sends M5. There’s a lot of example macros and so you could likely piece together the things you need.
Here’s a macro for you that attaches to feed hold button. Remember, each time you run it, it attaches a click event. If you run multiple times, you’ll get it sending M5 multiple times on each click, so beware. Save this as your startup macro to always have it run on load.
var btn = $(’.tinyg-feedhold’)
btn.click(function() {
chilipeppr.publish("/com-chilipeppr-widget-serialport/send", “M5\n”);
macro.status(“Sent spindle off M5 cmd”);
});
missing/deleted image from Google+