-
Notifications
You must be signed in to change notification settings - Fork 13
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
M is both an argument and a command #5
Comments
Turns out an |
Isn't M not always a command? G01 Y30 M8 then doesn't it basically mean: M8 |
Ah, originally I thought M could be an argument to a T command. E.g.: T01 M06 But turns out that's just preparing to change to tool 1 then calling M06 to actually swap tools. So it's two instructions put on the same line. I think we used a machine-specific G code for changing tools when I did a unit on CNC and other machining processes, which may explain why I didn't pick this up. |
I currently have a command like |
There are several letters which can be both commands and arguments, depending on the context. It might be necessary to refactor the parser to take into account things like newline characters and what the last command was.
Here's an exerpt from an automatically generated program my roommate gave me.
But when you put it through the parser, the
M190
and otherM
commands get parsed as arguments instead of commands.The text was updated successfully, but these errors were encountered: