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
  • What kind of head do you have that can have an A angle of -90???

    And to answer an earlier question of what if the probe angle goes beyond 180, you can have:

    IF\VANG>180
    ASSIGN\VANG= 360-VANG
    END_IF
    IF\VANG<-180
    ASSIGN\VANG= 360+VANG
    END_IF
    


    Insert this code right after you are incrementing VANG, before the end of the loop, and this way, it will correctly index the probe when going beyond +180 or -180.
Reply
  • What kind of head do you have that can have an A angle of -90???

    And to answer an earlier question of what if the probe angle goes beyond 180, you can have:

    IF\VANG>180
    ASSIGN\VANG= 360-VANG
    END_IF
    IF\VANG<-180
    ASSIGN\VANG= 360+VANG
    END_IF
    


    Insert this code right after you are incrementing VANG, before the end of the loop, and this way, it will correctly index the probe when going beyond +180 or -180.
Children
No Data