- Posts: 4819
- Thank you received: 0
Seeing values of gcode settings
3 years 5 months ago #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:
Code:
;py,emccanon.MESSAGE(str(s.settings[2])),emccanon.MESSAGE(str(s.settings[3]))
Please Log in to join the conversation.
3 years 5 months ago #271531
by phillc54
Replied by phillc54 on topic Seeing values of gcode settings
MESSAGE is nice...
It even takes f strings:
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.
3 years 5 months ago #271533
by Aciera
Replied by Aciera on topic Seeing values of gcode settings
Cool, so after initializing with:
we can display the current values with:
Code:
;py,import linuxcnc
;py,import emccanon
;py,s=linuxcnc.stat()
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
