hexagon logo

Problem Rotation

i have this code:

STARTUP    =ALIGNMENT/START,RECALL:,LIST=YES
            ALIGNMENT/END
            MODE/DCC
            FORMAT/TEXT,OPTIONS, ,HEADINGS,SYMBOLS, ;NOM,TOL,MEAS,DEV,OUTTOL, , 
            LOADPROBE/1MM
            ASSIGN/AUX=2
            IF/AUX==1
            ASSIGN/AUX=100
            END_IF/
            IF/AUX==2
            TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
            ASSIGN/AUX=200
            END_IF/
            IF/AUX==3
            ASSIGN/AUX=300
            END_IF/
            IF/AUX==4
            TIP/T1A45B0, SHANKIJK=0, 0.707, 0.707, ANGLE=0
            ASSIGN/AUX=400
            END_IF/
C1         =COMMENT/YESNO,NO,AUX


Result:
AUX = 200 OK
TIP = T1A45B0 WHY??
________
N02 VAPORIZER
Parents
  • Sorry for not catching this. The only way to reliably skip probe rotations is labels. That solution is not elegant. A better solution would be:

    If/Aux==10
    Assign/Probeangle="T1A90B0"
    End If
    If/Aux==20
    Assign/Probeangle="T1A0B0"
    End If

    Loadprobe/Yourprobehere
    Tip Probeangle, ShankIJK etc etc etc.......

    This way, you only have one Tip angle line, with the angle assigned through a variable. It avoids having to skip any probe rotations, and the problems that come along with it.
Reply
  • Sorry for not catching this. The only way to reliably skip probe rotations is labels. That solution is not elegant. A better solution would be:

    If/Aux==10
    Assign/Probeangle="T1A90B0"
    End If
    If/Aux==20
    Assign/Probeangle="T1A0B0"
    End If

    Loadprobe/Yourprobehere
    Tip Probeangle, ShankIJK etc etc etc.......

    This way, you only have one Tip angle line, with the angle assigned through a variable. It avoids having to skip any probe rotations, and the problems that come along with it.
Children
No Data