Pathpilot Subroutine - Prompt user for input?

More
15 Jul 2019 23:53 - 16 Jul 2019 00:10 #139515 by TheBigLebowski
Is it possible to have a subroutine ask for user input?

I would like to create a looping subroutine for boring hole that ends when the hole is on size.

The subroutine would work something like this.

>Call sub from main program

>>Prompt user to enter the starting / rough diameter of the hole. [ ]

>>while statement (while current diameter < finish diameter)

>>>Gcode to bore hole, and move head out of position when done

>>>Prompt user to measure hole and enter new size [ ]

>>End While
>End Sub
Last edit: 16 Jul 2019 00:10 by TheBigLebowski.

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

More
16 Jul 2019 00:12 #139521 by BigJohnT
That might be easier to do with QtPyVCP using the python interface.

JT
The following user(s) said Thank You: tivoi

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

More
16 Jul 2019 00:43 #139524 by TheBigLebowski
That wouldn't be ideal for what I am looking for. I would like to do it with a subroutine so that the block is milled 100% complete with one NC program. I had a similar routine that was for Fadal Controls that I used. In my experience it reduced the likelihood of error compared to a Conversational setup.

That would of course depend upon whether or not the subroutines support user input.

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

More
16 Jul 2019 15:20 #139565 by Todd Zuercher
Yes I believe that it is possible. Andy had helped me set up something like that once. I can't remember all of the details, but I think it may have involved G-code remapping. It was all documented on the forum here, I'll try to dig up a link.

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

More
16 Jul 2019 15:25 #139566 by Todd Zuercher
Here is a link to the thread. I believe it should be just what you're looking for.
forum.linuxcnc.org/20-g-code/33642-custom-m-code-python?start=0
The following user(s) said Thank You: TheBigLebowski

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

More
16 Jul 2019 15:51 #139568 by TheBigLebowski
Thats exactly what I am looking for,
Thanks.

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

Time to create page: 0.116 seconds
Powered by Kunena Forum