No errors or warnings shown with Ctrl+Shift+J in Chrome. Clicking Widgets>Touch Plate appears to do nothing. The menu closes and the button is not shown as being selected.
Nope Im using the TinyG workspace. did you try just using the Gcode that the touch plate wizard spits out.
G21 G91 (Use mm and rel coords or incremental mode)
G38.2 Z-20 F50 (Starts the probing routine down 20mm @ 50 mm/sec)
G28.3 Z1.75 (Sets the Z offset to 1.75mm ie the thickness of the touch off plate)
G91 G0 Z2 (Backs you off 2mm in incremental mode)
G90 (sets you back to absolute mode)
How did you get on making a macro. Im working on the Super Touch Plate widget now so could help to make some changes it to make it work better with GRBL if needed. I dont have a GRBL to test it against but was wondering if the issue is associated with the GRBLs support of the G38.2 command and what the JSON server returns… the touch plate wizard is looking for the JSON message to be retunred after a G38.2 is sent.
Your Super Touch Plate widget can watch all incoming serial port messages just like any other widget can monitor incoming serial port messages. What you do is subscribe to the incoming serial port messages by looking at the pubsub dialog box in the serial port widget for help.
If you subscribe by using the Javascript in your code or in a macro:
chilipeppr.subscribe("/com-chilipeppr-widget-serialport/recvline", this, callback);
var callback = function(data) {
console.log(“data:”, data);
var json = $.parseJSON(data.dataline);
// look for your feedback data here
};
The problem with the Touch plate widget not doing anything still seems to persist. Also the button for the text message (that appears in the other older GRBL workspace) and the menu on the right of the GRBL Workspace area where the widgets button is located is also blank!
Ok, the problem is that the old JSFiddle version of the Touch Plate widget is still in the code. I’m not sure that ever got ported to Github. JSFiddle keeps getting updated and some URL’s get broken along the way.
This is the method I see in JPadie’s code that tries to load Jarrett’s widget, so two other contributors code here. You could go try to port that JSFiddle to Github, which is akin to just moving files from JSFiddle to Github, then do a pull request to JPadie on Github.
thanks - unfortunately none of that makes sense to me, as I just started with ChiliPeppr a day ago. still trying to understand how to edit and modify things, which is not easy for someone who’s not a coder!
Are you aware of workspaces that have solved this issue already, or do you think there’s a chance that this workspace could be fixed for all?
Well, you edit code via Github so you use all the standard open source techniques like pull requests. If you are trying to edit the jpadie workspace, then you could make changes to this repo: https://github.com/jpadie/workspace-grbl1