Pathpilot Subroutine - Prompt user for input?

More
7 years 3 months ago #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

Please Log in to join the conversation.

More
7 years 3 months ago #139521 by BigJohnT
That might be easier to do with QtPyVCP using the python interface.

JT

Please Log in to join the conversation.

More
7 years 3 months ago #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 to join the conversation.

More
7 years 3 months ago #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 to join the conversation.

More
7 years 3 months ago #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

Please Log in to join the conversation.

More
7 years 3 months ago #139568 by TheBigLebowski
Thats exactly what I am looking for,
Thanks.

Please Log in to join the conversation.

Time to create page: 0.080 seconds
Powered by Kunena Forum