Seeing values of gcode settings

More
3 years 5 months ago #271530 by Aciera
looks like we can also pass more than one command in a single line:
Code:
;py,emccanon.MESSAGE(str(s.settings[2])),emccanon.MESSAGE(str(s.settings[3]))

Please Log in to join the conversation.

More
3 years 5 months ago #271531 by phillc54
MESSAGE is nice...

It even takes f strings:
Code:
;py,emccanon.MESSAGE(f"G64 P{str(s.settings[3])}  Q{str(s.settings[4])}")

Please Log in to join the conversation.

More
3 years 5 months ago #271533 by Aciera
Cool, so after initializing with:
Code:
;py,import linuxcnc ;py,import emccanon ;py,s=linuxcnc.stat()
we can display the current values with:
Code:
;py,s.poll(),emccanon.MESSAGE(f"G64 P{str(s.settings[3])}  Q{str(s.settings[4])}")

Please Log in to join the conversation.

Time to create page: 1.568 seconds
Powered by Kunena Forum