hexagon logo

Looping Parts on a Grid

Hi guys this is my first post so i apologize if this has been posted before.
I have parts that are arranged on a 4x3 grid or a 5x5 grid(the parts are the same, the matrix is different), and I would like to loop the program to measure the whole gride at a time. Is this possible? Most of the posts I've read here so far make it seem as though parts can only be arranged in one direction to loop with offsets.Any help would be appreciated! Thanks!
Parents
  • I have tried to get our vertical mills to use this format. It works, we just don't know how to get it to show the correct quantity of parts in our verification software before running it on the machine. 1.pdf I highlighted the looping and at the beginning I set all the variables with null values to be sure they did not have stray numbers attached. You'd have to replace the format with what works in PC-Dmis. Scroll down until you see the first G52, that's where the loop for the step and repeat starts. This was just a test program, not very long. As far as I can remember the end results are #141 and #142 which is the new location. This always steps in the x direction until it gets to the maximum number of parts in x, then it steps to the next row in y and starts the x at the beginning again. So if you want it to step in the y direction first you'd have to change it a little. #140 is the counter and the others calculate to step over and up or down when needed. The rest of the code is from a G-code post processor. I had to reset the G52X0Y0 after because if I did not, it would run over and over again in the same position. There's one in front of the loop also. I also had to make the second side tape act different from one machine to the other since one flipped across the y axis and the other flipped across the the x,y axis (at 45 degrees). this one just flips across the y axis. 1.pdfChecked and confirmed, this does work.
Reply
  • I have tried to get our vertical mills to use this format. It works, we just don't know how to get it to show the correct quantity of parts in our verification software before running it on the machine. 1.pdf I highlighted the looping and at the beginning I set all the variables with null values to be sure they did not have stray numbers attached. You'd have to replace the format with what works in PC-Dmis. Scroll down until you see the first G52, that's where the loop for the step and repeat starts. This was just a test program, not very long. As far as I can remember the end results are #141 and #142 which is the new location. This always steps in the x direction until it gets to the maximum number of parts in x, then it steps to the next row in y and starts the x at the beginning again. So if you want it to step in the y direction first you'd have to change it a little. #140 is the counter and the others calculate to step over and up or down when needed. The rest of the code is from a G-code post processor. I had to reset the G52X0Y0 after because if I did not, it would run over and over again in the same position. There's one in front of the loop also. I also had to make the second side tape act different from one machine to the other since one flipped across the y axis and the other flipped across the the x,y axis (at 45 degrees). this one just flips across the y axis. 1.pdfChecked and confirmed, this does work.
Children
No Data