Variable Part

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

  • Variable Part

    For identical parts with varying items - this case hole size and height...

    After your STARTUP and LOADPROBE somewhere in the beginning of your program -

    RESTART =LABEL/
    C1 =COMMENT/INPUT,Which part is being measured?
    ,1= Part with 3" hole, 1" height in Z axis
    ,2= Part with 2" hole, 5" height in Z axis
    IF/C1.INPUT<>1 AND C1.INPUT<>2
    COMMENT/OPER, Input not valid !
    GOTO/RESTART
    END_IF/
    IF/C1.INPUT==1
    ASSIGN/V1 = 3
    ASSIGN/V2 = 1
    END_IF/
    IF/C1.INPUT==2
    ASSIGN/V1 = 2
    ASSIGN/V2 = 5
    END_IF/
    CIR1 =AUTO/CIRCLE, SHOWALLPARAMS=NO, SHOWHITS=NO
    THEO/1,1,0.95,0,0,1,V1
    ACTL/1,1,0.95,0,0,1,3
    TARG/1,1,0.95,0,0,1,V1
    PLN1 =FEAT/PLANE,RECT
    THEO/4,1.5,V2,0,0,1
    ACTL/4,1.5,1,0,0,1
    MEAS/PLANE,3
    HIT/BASIC,......
    HIT/BASIC,......
    HIT/BASIC,......
    DIM LOC1= LOCATION OF CIR1 UNITS=IN , $
    GRAPH=OFF TEXT=OFF MULT=1.00 OUTPUT=BOTH
    AX NOMINAL +TOL -TOL MEAS DEV
    D V1 0.0000 0.0000 3.0000 0.0000 ----#----
    END OF DIMENSION LOC1
    DIM LOC2= LOCATION OF PLN1 UNITS=IN , $
    GRAPH=OFF TEXT=OFF MULT=1.00 OUTPUT=BOTH
    AX NOMINAL +TOL -TOL MEAS DEV
    Z V2 0.0000 0.0000 1.0000 0.0000 ----#----
    END OF DIMENSION LOC2

    PC-DMIS CAD++ 3.7 from 4.2 MR1

Related Topics

Collapse

Working...
X