I am not a ladder guy so I can't answer how to transfer numbers from the ladder to a variable. Is there a reason why you can't count the holes that you are doing by using the variables? I write a lot of macros and just have a variable counter every time that a hole has been completed. This will continue to count until it has reached the number of holes set to be machined, then end.
#134=#134+1
IF[#134LT12]GOTO45
…
There are so many ways to do this with just NC programming. By the looks of it you want to do 12 holes equally spaced 30deg apart. I would take it a few steps further and just have a variable that specifies how many holes you want to do and let the program calculate and figure out the spacing and when to stop. You can also set it up to start on any hole that you want and it will finish the proper amount of holes.
Stevo


LinkBack URL
About LinkBacks




