- Posts: 3410
- Thank you received: 0
Do While Loop
15 years 1 month ago #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
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
Attachment decrement.ngc not found
Please Log in to join the conversation.
6 years 8 months ago #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!
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!
Please Log in to join the conversation.
Time to create page: 0.073 seconds
