-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Parametric variables #401
Comments
It would be great to create a separate topic where additional buttons with a text G-code file will be reset. Nicholas. |
Thank you very much for your quick answer. For the moment I will make an excel VBA who can change the code to draw the border with a parametric variable an with the choise to make a circle, a rectangle or a square all around. Thank you for your super program and good luck for all the tasks in your roadmap !! |
Hi,
I would like to create some custom buttons on LaserGrbl like a square around my picture (I found the program - Thanks Vankes) but I would like to make a program which will draw a square around my picture but with a space all around.
To do this I programmed my button like this and it's work, I draw a square around my picture 5mm larger on each side :
...
G0 X([left]-5) Y([bottom]-5) F500
M3 S250
G1 X([left]-5) Y([top]+5)
G1 X([right]+5) Y([top]+5)
G1 X([right]+5) Y[bottom]-5)
G1 X([left]-5) Y([bottom]-5)
M5
G0 X0 Y0 F3000
...
But now, I dont want to change all the "5" on my code one by one, I would like to use a local parametric variable.
I read on some topics that the locals variables are writing like #1 to #33 on Gcode language so I try to write this in my code :
...
#1=5
G0 X([left]-#1) Y([bottom]-#1) F500
M3 S250
G1 X([left]-#1) Y([top]+#1)
G1 X([right]+#1) Y([top]+#1)
G1 X([right]+#1) Y[bottom]-#1)
G1 X([left]-#1) Y([bottom]-#1)
M5
G0 X0 Y0 F3000
...
Unfortunately, this code it's not working, I think we don't have the access to write some locals variables.
Would someone have a solution to my problem?
Have a good Day
RJ
The text was updated successfully, but these errors were encountered: