Seeing values of gcode settings
- Aciera
- Offline
- Administrator
Less
More
- Posts: 4001
- Thank you received: 1729
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.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5706
- Thank you received: 2084
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:
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.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 4001
- Thank you received: 1729
17 May 2023 11:59 #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:
;py,import linuxcnc
;py,import emccanon
;py,s=linuxcnc.stat()
;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