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

param_letters with no numbers after parameter do not work #32

Open
VisComKreiser opened this issue Sep 13, 2021 · 1 comment
Open

param_letters with no numbers after parameter do not work #32

VisComKreiser opened this issue Sep 13, 2021 · 1 comment

Comments

@VisComKreiser
Copy link

Hey,

i've got gcode lines like:

  • T1 R
  • M1013 R

and if there is no number after the "R", i get the exception GCodeWordStrError : word 'R' value invalid

I have added the classes:

class GCodeParkReturn(GCode):
    """M1013: park/return"""
    word_key = Word('M', 1013)
    word_letter = 'M'
    param_letters = set('R')

class GCodeSwitchExtruder(GCode):
    """T1: switch extruder"""
    word_key = Word('T', 1)
    word_letter = 'T'
    param_letters = set('R')

E.g. T1 R123 does work without an issue with the added "123" after the "R"
Is there an option to allow zero parameter values? Maybe I have just missed it.

I'm testing it using text2gcodes('T1 R')

Thanks.

@VisComKreiser
Copy link
Author

can it be that this is only possible in RepRap GCode?

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

No branches or pull requests

1 participant