-
Notifications
You must be signed in to change notification settings - Fork 39
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
M117 string parameter #18
Comments
Hi @dickshaydle To clarify, I believe you've tried something like (but not exactly): >>> import pygcode
>>> class LCDisplayGCode(pygcode.GCode):
... word_key = pygcode.Word('M', 117)
>>> from pygcode import text2gcodes
>>> text2gcodes('M117 blah blah')
[...]
GCodeWordStrError: word 'B' value invalid Which makes sense... because the I'm sorry to say that there isn't an easy fix for this, there's an assumption built into For example, the pygcode/src/pygcode/dialects/linuxcnc.py Lines 134 to 139 in 5577d65
However, pygcode/src/pygcode/dialects/linuxcnc.py Line 24 in 5577d65
pygcode/src/pygcode/dialects/linuxcnc.py Lines 120 to 125 in 5577d65
As your example has indicated, this is not only wrong, it's a fundamental limit of the library as it stands. I would love to fix this, but I'm very short on time of late... is there any urgency on your side to get this running? |
Hi @fragmuffin, This is not time critical for me. I would also want to add something to the project and just wanted to ask what the current status is, to not reinvent the wheel. So as it seems to me, it would be reasonable to first implement the dialects and afterwards change the word class or add a new 'line' class or so. |
I guess the project's status is, stale... it's not exactly active; as it hasn't had a change or a release in many months, but I'd be happy to accept pull requests.
Dialects will need to be implemented in a few stages, I'll tag you in a comment in #9 |
Hi there,
i just discovered pygcode and this seems to be a really useful project.
But i have some problems using it with marlin. It doesn't this seem to be easily possible to add a command with arbitrary string parameters. This is needed for commands like M117 which is used to display text on an LCD display.
I tried the workaround from #9 but it only takes "Words"/ one letter Arguments.
Did i miss something?
The text was updated successfully, but these errors were encountered: