hexagon logo

Rotating B inside a loop command

Question
I have a cylinder with 6 holes on the side, I program 1 hole and create a loop to do the other 5. My cmm head (Renishaw PH10M) starts at A90B-90. My cylinder is in the Z axis direction, I am working on some code to set the B rotation with a variable but no success can use some help if anyone knows of a way to solve this. Your help is greatly appreciated.
Thank you,
Bob
Parents
  • Thanks for the help really appreciate it, nice code can we do a additional eddeting on the code and ad a say +30 on the ASSIGN/VANG=(97.5+30) Im new to advanced programming and I know that we need to reverse angles to negative side after 180 deg. So if we use this inside a loop command it would send B to the next logical angle, what do you think?
    Appreciate your help, thanks.



    Um, please read my entire 1st reply more closely. The code I posted is to demonstrate that it does not work.

    See the red? If you have red code in your program, PC-DMIS is telling you that the line of code will not function.

    As far as I know, and of course I could be wrong, what you are asking for is impossible.

    Sorry.

    I recommend programming each of the six holes individually, and between them programming in move points and probe tip changes.

    Looping is a way of saving time so you don't have to program the same thing over again many times.

    If this were 66 holes, the programming time savings of looping would be worth it - but you can do 6.

    You do have the needed probe angles already calibrated, right?

    - Josh
Reply
  • Thanks for the help really appreciate it, nice code can we do a additional eddeting on the code and ad a say +30 on the ASSIGN/VANG=(97.5+30) Im new to advanced programming and I know that we need to reverse angles to negative side after 180 deg. So if we use this inside a loop command it would send B to the next logical angle, what do you think?
    Appreciate your help, thanks.



    Um, please read my entire 1st reply more closely. The code I posted is to demonstrate that it does not work.

    See the red? If you have red code in your program, PC-DMIS is telling you that the line of code will not function.

    As far as I know, and of course I could be wrong, what you are asking for is impossible.

    Sorry.

    I recommend programming each of the six holes individually, and between them programming in move points and probe tip changes.

    Looping is a way of saving time so you don't have to program the same thing over again many times.

    If this were 66 holes, the programming time savings of looping would be worth it - but you can do 6.

    You do have the needed probe angles already calibrated, right?

    - Josh
Children
No Data