Seeing values of gcode settings

More
17 May 2023 11:33 #271530 by Aciera
Replied by Aciera on topic Seeing values of gcode settings
looks like we can also pass more than one command in a single line:
;py,emccanon.MESSAGE(str(s.settings[2])),emccanon.MESSAGE(str(s.settings[3]))

Please Log in or Create an account to join the conversation.

More
17 May 2023 11:41 #271531 by phillc54
Replied by phillc54 on topic Seeing values of gcode settings
MESSAGE is nice...

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

Please Log in or Create an account to join the conversation.

More
17 May 2023 11:59 #271533 by Aciera
Replied by Aciera on topic Seeing values of gcode settings
Cool, so after initializing with:
;py,import linuxcnc 
;py,import emccanon 
;py,s=linuxcnc.stat()
we can display the current values with:
;py,s.poll(),emccanon.MESSAGE(f"G64 P{str(s.settings[3])}  Q{str(s.settings[4])}")

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum