Do While Loop
- BigJohnT
- Topic Author
- Offline
- Administrator
Less
More
- Posts: 7106
- Thank you received: 1177
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
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
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.
- 3D-Master
- Offline
- Elite Member
Less
More
- Posts: 235
- Thank you received: 5
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!
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 or Create an account to join the conversation.
Time to create page: 0.050 seconds