- Posts: 37
- Thank you received: 0
Pathpilot Subroutine - Prompt user for input?
- TheBigLebowski
- Topic Author
- Offline
- Junior Member
-
Less
More
7 years 3 months ago #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
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.
7 years 3 months ago #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
JT
Please Log in to join the conversation.
- TheBigLebowski
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 37
- Thank you received: 0
7 years 3 months ago #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.
That would of course depend upon whether or not the subroutines support user input.
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
7 years 3 months ago #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 to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
7 years 3 months ago #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
forum.linuxcnc.org/20-g-code/33642-custom-m-code-python?start=0
Please Log in to join the conversation.
- TheBigLebowski
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 37
- Thank you received: 0
7 years 3 months ago #139568
by TheBigLebowski
Replied by TheBigLebowski on topic Pathpilot Subroutine - Prompt user for input?
Thats exactly what I am looking for,
Thanks.
Thanks.
Please Log in to join the conversation.
Time to create page: 0.080 seconds
