Pathpilot Subroutine - Prompt user for input?

More
15 Jul 2019 23:53 - 16 Jul 2019 00:10 #139515 by TheBigLebowski
Pathpilot Subroutine - Prompt user for input? was created 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
Replied by BigJohnT on topic Pathpilot Subroutine - Prompt user for input?
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
Replied by TheBigLebowski on topic Pathpilot Subroutine - Prompt user for input?
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
Replied by Todd Zuercher on topic Pathpilot Subroutine - Prompt user for input?
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
Replied by Todd Zuercher on topic Pathpilot Subroutine - Prompt user for input?
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
Replied by TheBigLebowski on topic Pathpilot Subroutine - Prompt user for input?
Thats exactly what I am looking for,
Thanks.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum