I modified a GRBL post so it can interface with my laser cutting machine. This is a home built machine with a fairly low powered laser so I have some cases where I would like the cutting operation to repeat. The 2D Profile operation does not seem to allow a way to specify this and thus I turned to the post processor for help. I realize I can also just duplicate the profile operation many times in the setup and then post them as a group, just doesn't seem as elegant :).
I am comfortable messing with the CPS file and I have added two variables into the properties definitions:
I can find and use these variables in the CPS file, but unfortunately I seem to have not noticed that after calling the onSection() portion of the CPS code, there is no way to control the loop that generates the g-code with calls to onLinear(), onRapid(), etc. Basically at the CPS level there is no control over the full instance of the operation and thus it seems it can't be told to write it out more than once. Unless I am wrong and this is why I am asking if anyone may have experience with this and has an idea if this may be achievable.
Thanks!
Can't find what you're looking for? Ask the community or share your knowledge.