-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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: random function for gcode macro language #4001
Comments
LOL - I just had the same thought - I've not tested it yet, but I did this :- #555 = #555 + 1 ;This is a permanent variable (saved between power cycles) - add one, so our prime doesn't over-write the last prime I'm assuming Y#556 will tell my printer to move the Y axis to the value of the variable #556 - and I'm assuming my FFF gocde supports both permanent variables and the MOD function... |
I've just added this and will submit a pull request soon. It will add a macro function |
AWESOME!! My gcode idea using permanent variables did not work out... the variables turned out not to be permanent - I guess they simply never supported that when they wrote the gcode for my Anycubic... |
I'd love to have a simple no-frills implementation of rnd() for the gcode macro language, returning a random float in range 0-1. Or rnd(max) if you prefer.
I'd like to randomize the position of the purge line a bit to avoid scarring the PEI too much on the same spot. Having such a function would allow me to choose a different spot and/or direction (from left to right or vice-versa) without any additional feature.
Is this a new feature request?
Yes
The text was updated successfully, but these errors were encountered: