Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Need to be able to run Macros #26

Open
wb9tpg opened this issue Oct 11, 2020 · 6 comments
Open

[Feature Request] Need to be able to run Macros #26

wb9tpg opened this issue Oct 11, 2020 · 6 comments

Comments

@wb9tpg
Copy link

wb9tpg commented Oct 11, 2020

I have a number of Macros I use for a multiple station complicated job. It would be extremely helpful to be able to run macros directly from shop floor tablet.

@pedwards71
Copy link

I'd love to be able to run macros too. I would use it for tool changing, unless there's already a way to do that from this interface?

I run this interface on an iPad at the machine. It's very useful. Had a few bad things happen when using the main cncjs interface from a touch screen, because of accidentally touching the wrong controls - the exact reasons that this interface was created.

Thanks for the great work!

@MitchBradley
Copy link
Collaborator

You could just put the macro into a named file and run that. There is very little difference between a GCode file and a macro.

@MitchBradley
Copy link
Collaborator

I guess there is the variable substitution thing.

@MitchBradley
Copy link
Collaborator

Actually, now that look inside the CNCjs server code, I think that variables work the same way regardless of whether you are running a macro or a GCode file.

@MitchBradley
Copy link
Collaborator

The way I organize my jobs is to have a folder for each production job. Files in the folder are named like "0Setup.nc", "1Top.nc", "2Roundover.nc", etc. I just run the files in numerical order, doing whatever manual steps are necessary between steps.

@pedwards71
Copy link

Ok. So instead of having one nc file that does the whole job with tool change commands inserted, you have separate files for each different tool section and have a separate file for doing tool changes?

Sounds ok. I'll give it a try. Thanks for the tip!

BTW, I usually generate my nc files from FreeCAD. I like to generate one file with all the tool changes, which works best for simulation, but it wouldn't be hard to split it up to feed it to my machine, which is a Shapeoko 3 XXL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants