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

GCode default command #4

Open
bobc opened this issue Dec 30, 2011 · 1 comment
Open

GCode default command #4

bobc opened this issue Dec 30, 2011 · 1 comment

Comments

@bobc
Copy link
Collaborator

bobc commented Dec 30, 2011

If a command line contains a valid word such as "X100" but no other G or M code, the GCode parser should implement the current modal command, e.g. G1. I think this used to work, but may have got broken somewhere.

Generally 3d printer software does not generate such commands, but it is more common in CNC/CAM files.

From "The NIST RS274NGC Interpreter - Version 3"

3.3.7 Commands and Machine Modes
In RS274/NGC, many commands cause a machining center to change from one mode to another,
and the mode stays active until some other command changes it implicitly or explicitly. Such
commands are called “modal”. For example, if coolant is turned on, it stays on until it is explicitly
turned off. The G codes for motion are also modal. If a G1 (straight move) command is given on
one line, for example, it will be executed again on the next line if one or more axis words is
available on the line, unless an explicit command is given on that next line using the axis words or
cancelling motion.

@casainho
Copy link
Collaborator

I think it that is implemented it will not make a problem with current 3D Printer software -- which is important.

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

No branches or pull requests

2 participants