Convenient way of not upsetting current modals. As you can include the modals you need in a jog command without needing to change them globally
I've updated the original post on the other thread and deleted the spurious files from my posts above. Thanks to all for your assistance. Getting started with Javascript Macros in CONTROL / Library of Macros created by the community
Thanks for the Share, in theme of this thread, could you include some eye candy, screenshots etc - scroll up for some examples of how its usually posted
surely this is already sorted by using the OpenBuilds postprocessor? docs:software:fusion360 [OpenBuilds Documentation]
Looks like the only overlap in functionality is adding a pause when the spindle turns on. I don't think any of my other features are possible from inside a postprocessor.
Oh, that's great to hear! I spent sometime investigating if it was possible, and determined that there was just not enough information passed down from F360. I will give the Open Builds version a try.
GitHub - OpenBuilds/OpenBuilds-Fusion360-Postprocessor: Post Processor for Fusion 360 for use with OpenBuilds Machines running Grbl 1.1
Is there any way to display images in macro dialogs? The probing wizard uses something similar the following... Code: <img src="./img/xyzprobe/y.png" alt="probe-y" height="45" id="img-probe-y"> (I think the image resource is compiled into the executable??) If I try and change that to an image on my computer I get an error "Not allowed to load local resource". So, is there any (reasonable) way to display images or custom icons in a user macro? This sort of thing: Thanks
Unless something has changed recently, you'll have to use an image to html converter. It adds a bunch of code to the macro unfortunately. I ultimately used the included font icons library to convey what I wanted. There's many ways to manipulate icons (rotate, stack, etc: Font Awesome Examples) Not sure if you can do the same.
@David the swarfer - I looked at your cps code. It has a much more elegant solution. The secret sauce was the onParameter callback. I was unaware of it, which led me to conclude it cannot be done. It only took a few lines of code to add this in my own postprocess script. @Peter Van Der Walt - I am adding separate posts for each of my macro scripts.
ok. thank you!! so how do I go about pulling up the macro program onto open build control. or software
Please use Tech support for Javascript Macros in CONTROL for SUPPORT - don't use this library thread - we want to keep it clean. As for how to install it - simple, CONTROL > Macros Tab
No, that Macro is finding external features on a part. All the OpenBuilds probe features are covered by the built in wizard already: docs:xyzprobe:software-control [OpenBuilds Documentation]
Good evening. I was just checking to see if anyone else as tested the tool offset macro in with X32. I can use it one time it will work great. On the next time after I swap tools when I go zero on z, it is about 1/4 above the surface. I have tested it with a solid block so I have a known z zero every time. It is possible it is something with my set up. I did need to modify the firmware to auto squaring Y. I do my initial probe with XYZ from open builds then my tool height setter is a different probe if that make any difference. My issue is I'm trying to cut a wavy flag and during tool changes I have nothing to reference from. Any suggestions would be great. Thank you
Hi, The macro should work for that sort of thing... Are you setting your first tool as a 'Reference Tool' using the tool setter *after* you've set XYZ zero using the Openbuilds probe? Take me through your exact workflow and I'll see if I can help.
Normally, home machine set g28 and g30 locations. Use xyz probe to set z for height only, I like to use the center of the wood as center of project. I will run first cut. Run Macro to set reference height, then change tool out. set new height. that one usually works fine. for the subsequent tool changes, I have tried to reset reference height and do just a tool change. neither seem to work. when I go to zero again after set second tool change. it is about .25" above work piece. I have done on solid uncut wood to see where it is returning to zero after tool change. Hope that helps to explain it. I can try and video if needed. Thank you for the response.
It shouldn't be necessary to set the reference tool a second time, but equally, it shouldn't hurt anything, either. When you say 'go to zero', what exactly do you mean, and how do you do it? (which buttons or commands do you use - just trying to understand! ) A video of the process might help - I'm puzzled as to what might be happening.
I will work on a video. Go to zero is push the "gotozero" drop down and select the work Coord one, (G0 Z5, G0 X0 Y0, G0 Z0) option. when I use the XYZ it will touch the work surface at home. When I use the macro, it does not. I did try a cut anyway and it was above the work surface. Currently I use a work around with set up blocks and probe to reset zero after bit change. I did set up a macro to define g28 and g30. Ill send that too just in case it is the problem.
Thanks - btw defining G28 & G30 should be a once only operation - the positions are stored through power cycles, etc. so don't need resetting every time (unless you want to move them).
I would like to thank you for your time. I just tried to make a video of the problem and it worked every time. I just did it four times in a row. The only thing I did change was I deleted to macro and had to reinstall it. Open builds would no longer run it and it disappeared from the GUI.
Hello everyone. Thank you @Misterg for this superb sharing! For me who am not developer it is a great tool to resume work on an existing part. I have questions about the configuration because I did not understand well: - How to configure the job of the probe if I want to measure from the outside or otherwise a measurement from the inside? - Is it possible to measure several heights around the periphery and the center of a piece that is curved? - What difference is there between the marked drawing "default UI:" and the one that is marked "alternative UI (simpleUI =" false ")". - Does this macro work with Control only (not Interface, right)? - I have to connect the 3D probe in serial or parallel mode if I want to keep XYZ Probe+ connected? - ok ok ok sorry ... I stop the questions, that's all for today Thank you so much!
Hi - Do you mean this macro? Getting started with Javascript Macros in CONTROL / Library of Macros created by the community My macro only measures from the outside. Peter Van Der Walt already wrote a macro for measuring from the inside: Getting started with Javascript Macros in CONTROL / Library of Macros created by the community It starts to get complicated if you try and cover all the options from one macro. No, not using my macro or any other one I have seen for Control. You could look at BCNC gcode sender (alternative to Control) that has Z probing and digitising built in. bCNC One adds the setting for probe retract distance and Z travel speed It uses javascript, so I think it will only work in Control. I *think* that a 'Normally Closed' (NC) 3D probe could be connected in parallel with the signal and ground for the XYZ Probe (which I think inverts the probe signal), but please get someone from OpenBuilds to verify that it won't cause damage (@Peter Van Der Walt ?). Otherwise, keep them separate. (I have a small interface circuit on my home built machine that allows a combination of NC and NO probes.) Thank you for your kind words.
NC probe in parallel with an NO probe like ours will show the NO probe as "closed" all the time Best to have both as NO probes. If you can't avoid it, make them pluggable, and remember to change $6 depending on which you have plugged in