hexagon logo

Extracting T-values From Advanced Scan from within a loop.

Greetings to all. I am new to PC-DMIS. My company bought a CMM in March of 2021, Has Version 2020 R2. It is a Global 05.07.05

Our company makes spherical washers ranging in OD size from ≈1 inches to 3 inches.

Currently I can use a linear closed scan from the ID to OD and have ≈40-60 hits generated.

What I want to do after the scan is loop through the the number of hits and report the T-values from that scan.

Unfortunately, what I've come across during the loop is that ≈10 iterations in, the T-values don't match and are rising when creating the dimension.

If code will help let me know.

Additionally, are there any other sites/ pages to look at to get a better understand of how the functions are supposed to work.
Parents
  • I would try something like this :

    ASSIGN/V1=DOT(SCN1.HIT[1..SCN1.NUMHITS].XYZ-SCN1.HIT[1..SCN1.NUMHITS].TXYZ,SCN1.HIT[1..SCN1.NUMHITS].TIJK)
    ASSIGN/COUNTER=0
    V2 =LOOP/START,ID=YES,NUMBER=SCN1.NUMHITS,START=1,SKIP=,
    OFFSET:XAXIS=0,YAXIS=0,ZAXIS=0,ANGLE=0
    IF/(5*ROUND(V2/5))==V2
    ASSIGN/COUNTER=COUNTER+1
    ASSIGN/V3="SCN1.HIT["+V2+"]"
    PNT_SCN =GENERIC/POINT,DEPENDENT,RECT,$
    NOM/XYZ,V3.TX,V3.TY,V3.TZ,$
    MEAS/XYZ,V3.X,V3.Y,V3.Z,$
    NOM/IJK,V3.TI,V3.TJ,V3.TK,$
    MEAS/IJK,V3.I,V3.J,V3.K,$
    ASSIGN/TVAL[COUNTER]=V1[V2]
    END IF/
    LOOP/END
    SCN2 =FEAT/SET,CARTESIAN
    THEO/<0,0,0>,<0,0,1>
    ACTL/<0,0,0>,<0,0,1>
    CONSTR/SET,BASIC,PNT_SCN[1..COUNTER],,
    COMMENT/REPT,
    TVAL


    Then, you can also dimension SCN2, and use it with datapage, or just extract TVAL.
    I'm not at the cmm, if generic point doesn't calculate the T_value, then use an offset point from origin with the same assignments.

  • Thank you again for the advice. I'll give it a try...
Reply Children
No Data