Will this work (math in alignment) ??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Will this work (math in alignment) ??

    PCD 2020 R1 SP5...

    I have never tried to use math in an alignment before. It works on offline, trihedron is facing where I want it.

    Will this work ONLINE when I get the real parts in a few weeks? Or should I not do this?


    Code:
    ALI_NPC_POS1=ALIGNMENT/START,RECALL:STARTUP,LIST=YES
    ALIGNMENT/LEVEL,YPLUS,PLN_N_POS1
    ALIGNMENT/ROTATE_CIRCLE,ZPLUS,TO,CYL_P_POS1,AND,CYL_C,ABOUT, YPLUS
    ALIGNMENT/TRANS,XAXIS,CYL_P_POS1
    ALIGNMENT/TRANS,ZAXIS,CYL_P_POS1
    ALIGNMENT/TRANS,YAXIS,PLN_N_POS1
    ALIGNMENT/ROTATE_OFFSET,RAD2DEG(ABS(LIN_NP.I)),ABOUT,YPLUS
    ALIGNMENT/END
    SF7107(PCD), SF454(PCD), 152614(Quindos), 9159(Quindos), 7107(Quindos), B&S Manual, M&M Gear Checker

  • #2
    It should work. We have done this a couple of times with tube programs. We take our "ABC" Alignment and offset within it for specific dimensions. Then after we recall normal ABC align.

    Comment


    • #3
      I use "ALIGNMENT/ROTATE_OFFSET, RAD2DEG(ATAN(OPP/ADJ)) ,ABOUT, ZPLUS" where actual values are used for OPP/ADJ. It works well except if you mirror the program the rotation will not mirror having the formula inserted.

      Comment


      • #4
        I've done it using a variable and referencing the variable in the alignment. It worked like a charm!

        Code:
         ASSIGN/V1=(RAD2DEG(ATAN(LOC1.X.DEV/CYL1.Y)))*-1
        A5 =ALIGNMENT/START,RECALL:A3,LIST=YES
        ALIGNMENT/ROTATE_OFFSET,V1,ABOUT,ZPLUS
        ALIGNMENT/END

        Comment


        • #5
          Thanks everyone!
          SF7107(PCD), SF454(PCD), 152614(Quindos), 9159(Quindos), 7107(Quindos), B&S Manual, M&M Gear Checker

          Comment


          • ThePudds
            ThePudds commented
            Editing a comment
            No worries friend.

        Related Topics

        Collapse

        Working...
        X