Do While Loop

More
04 Sep 2011 14:07 - 04 Sep 2011 14:09 #12957 by BigJohnT
Do While Loop was created by BigJohnT
This subroutine demonstrates a do while decrementing loop. I use this type of loop for things like turning the OD on my lathe. Other uses could be using a profile to mill a pocket.

The neat part is the check to see if the decrement would put the last pass lower than the end value. If it does the if statement goes to the end value instead of just subtracting the decrement value.

John

File Attachment:

File Name: decrement.ngc
File Size:1 KB
Attachments:
Last edit: 04 Sep 2011 14:09 by BigJohnT.
The following user(s) said Thank You: 3D-Master

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

More
08 Feb 2020 15:29 #156765 by 3D-Master
Replied by 3D-Master on topic Do While Loop
Thanks,

i tried to do something like that for Linuxcnc. At work we have Heidenhain and i tried to translate it to ISO but it didnt work so i found yours, which also didnt fully work for me but i changed it.

Make sure to make it compatible to your specific machine if you want to use it!
Attachments:

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

Time to create page: 0.083 seconds
Powered by Kunena Forum