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.
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.
Children
No Data