Enter Numbered Parameter during pouse

More
27 Apr 2017 12:32 #92195 by tommy
Is there a way to prompt operator to enter parameter #5410? The idea is to let operator enter tool diameter during (manual) tool change when machine waits operator to change tool.
Tool change is done by subroutine g-code.

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

More
27 Apr 2017 14:02 #92209 by Todd Zuercher
The answer is it can be done. How comfortable are you with programing your own little popup window?
There is no ready made way to do it.
Here is one way:
forum.linuxcnc.org/38-general-linuxcnc-q...-a-variable?start=10
In this example a custom Mcode (M131) opens a TCL pop up window where the user can input a value.
That value is given to the hal pin "motion.analog-in-00", then in your Gcode you can use M66 E0 L0 to set that value to #5399, you can then use that in your g-code to set the value to #5410.
You could also do it with python, possibly reading/writing the parameter value directly. (I've never done it myself and the above example is the first thing I found in a search. tested and works.)

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

More
28 Apr 2017 12:36 #92259 by andypugh
I have a strong suspicion that #5410 is read-only, or at least that setting it in G-cod won't affect the system's opinion of tool diameter.

In G-code you would use G10 L1, G10 L10 or G10 L11 to set the tool diameter.
In python code you can do it through the tool_offset command:
linuxcnc.org/docs/2.7/html/config/python-interface.html

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

Time to create page: 0.096 seconds
Powered by Kunena Forum