fix a connection between pyvcp and ngc
i built my panel with pyVCP, within there´s a "touchprobe" button. now i want to make a fix connection between that butto an the g-code for touchprobe, so everytime i push the button, my mill should execute the touchprobe.ngc. could someone give me help?
greetz
Please Log in or Create an account to join the conversation.
linuxcnc.org/docs/2.5/html/gcode/m-code....d_sec_m100_to_m199_a
axis-remote --help
linuxcnc.org/docs/2.5/html/gui/halui.html
also
linuxcnc.org/docs/2.5/html/config/ini_co..._sub_halui_section_a
should get you there
regards
Please Log in or Create an account to join the conversation.
See this thread for more info on how to do that.
John
Please Log in or Create an account to join the conversation.
You would learn a lot doing it my way, but you probably just want to use it with minimum input
regards
Please Log in or Create an account to join the conversation.
John
Please Log in or Create an account to join the conversation.
Let us know when you are happy with it and have posted it permanently, need a link to point beginners to.
Certainly fills a hole. It's very difficult to know where to suggest someone starts, if they have no prior experience with other controllers or at least some general computer programming knowledge.
No point studying the many Fanuc type programming books and web pages, because as soon as you leave the first few G codes you are into numbered blocks and all sorts that Linuxcnc does not use.
regards
Please Log in or Create an account to join the conversation.
John
Please Log in or Create an account to join the conversation.
didn´t understand much. somehow it does not work.
maybe a better explanation could help you to help me.
i build an pyvcp radiobutton with 2 choices. i can choose I, for incremetal movements, or A for absolutely movements. also i have three spinboxes namend x y and z. so if on the radiobutton i is chosen and in my x spinbox i write the value 5, i want my x axis to move 5 mm in x direction.
is this possible to do that in any way?
greetz
Please Log in or Create an account to join the conversation.
linuxcnc.org/docs/html/man/man1/halui.1.html
John
Please Log in or Create an account to join the conversation.
i build an pyvcp radiobutton with 2 choices. i can choose I, for incremetal movements, or A for absolutely movements. also i have three spinboxes namend x y and z. so if on the radiobutton i is chosen and in my x spinbox i write the value 5, i want my x axis to move 5 mm in x direction.
It can be done. But it will take a bit of fiddling.
MDI_COMMAND statements in the INI file create HAL pins and define a G-code line to run when the HAL pin goes high.
Because what you want to do takes more than one line of G-code, the MDI_COMMAND needs to call a subroutine.
See JT's example for how to do that part.
You then need the G-code that is called to read the PyVCP control values. The means that the values need to be connected to G-code analogue and digital inputs in HAL, and then the G-code inside the called subroutine needs to read them in to variables.
There is an example of how to do all this here: www.bodgesoc.org/lathe/lathe.html
Please Log in or Create an account to join the conversation.