- Posts: 3
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
It was just some example code that shows how to read the G-code parameters.ericholmberg wrote: The code you linked to is for remapping various G-Codes which does help to some extent
No, that was not my suggestion, I was just using that code as an example of parameter access from Python.but from what I understand, it would mean that I would have to override a few G-Codes to get the information that I'm looking fo
Please Log in or Create an account to join the conversation.
The stdglue.py, self.params, and other topics on the remap.html page refer to the embedded Python interpreter, so that still doesn't provide a data path back to the Python GUI code.No, that was not my suggestion, I was just using that code as an example of parameter access from Python.
Out of curiosity, I gave this a try and it worked for name parameters but not ordinal parameters. Taking a look at the parameter code in src/emc/rs274ngc/pyparamclass.cc, it turns out that named parameters are referred to by string and numbered parameters are referred to using their ordinal. So the named parameter self.params["_x"] is referred to as self.params[5420] or self.params[5212] for the WCS example.I believe that the same approach would work with "self.params["5121"]
Please Log in or Create an account to join the conversation.
ericholmberg wrote:
The stdglue.py, self.params, and other topics on the remap.html page refer to the embedded Python interpreter, so that still doesn't provide a data path back to the Python GUI code.
I would have thought that the GUI just needs to import the right libraries to make it work.
Please Log in or Create an account to join the conversation.