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
  • T_value is the projection of the vector between theo and measured hit along the theo vector.
    If the scan has theo values, then just :
    ASSIGN/V1=DOT(SCN1.HIT[1..SCN1.NUMHITS].XYZ-SCN1.HIT[1..SCN1.NUMHITS].TXYZ,SCN1.HIT[1..SCN1.NUMHITS].TIJK)
    Then loop on SCN1.NUMHITS :

    V2 =LOOP/START,ID=YES,NUMBER=SCN1.NUMHITS,START=1,SKIP=,
    OFFSET:XAXIS=0,YAXIS=0,ZAXIS=0,ANGLE=0
    COMMENT,RPT(...)
    V1[V2]
    LOOP/END
Reply
  • T_value is the projection of the vector between theo and measured hit along the theo vector.
    If the scan has theo values, then just :
    ASSIGN/V1=DOT(SCN1.HIT[1..SCN1.NUMHITS].XYZ-SCN1.HIT[1..SCN1.NUMHITS].TXYZ,SCN1.HIT[1..SCN1.NUMHITS].TIJK)
    Then loop on SCN1.NUMHITS :

    V2 =LOOP/START,ID=YES,NUMBER=SCN1.NUMHITS,START=1,SKIP=,
    OFFSET:XAXIS=0,YAXIS=0,ZAXIS=0,ANGLE=0
    COMMENT,RPT(...)
    V1[V2]
    LOOP/END
Children