PREHIT/0.05
            RETRACT/0.05
$$ NO,>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
     ,SEARCH FOR A SURFACE
            ASSIGN/V4=0
            ASSIGN/V2=.32
            ASSIGN/XOLD=0
            ASSIGN/V1=0.01
            ASSIGN/V3=0.001
SRCH01     =LABEL/
PNT7B1     =FEAT/POINT,CARTESIAN
            THEO/<2.739,3.395,V2>,<1,0,0>
            ACTL/<2.7395,3.399,0.2218>,<1,0,0>
            MEAS/POINT,1
            HIT/BASIC,NORMAL,<2.739,3.395,V2>,<1,0,0>,<2.7395,3.399,0.2218>,USE THEO=YES
            ENDMEAS/
            ASSIGN/V4=V4+1
            IF/XOLD < PNT7B1.X
            ASSIGN/XOLD=PNT7B1.X
            ASSIGN/V5= PNT7B1.Z
            END_IF/
            IF/XOLD < PNT7B1.X + V3
            ASSIGN/V2=V2 - V1
            GOTO/SRCH01
            END_IF/
            ASSIGN/V2=V5 + V1
            ASSIGN/XOLD=XOLD-.001
            IF/V1 == .01
            ASSIGN/V1=0.003
            ASSIGN/V3=0.00015
            GOTO/SRCH01
            END_IF/
            IF/V1 == .003
            ASSIGN/V1=0.001
            ASSIGN/V3=0.000085
            GOTO/SRCH01
            END_IF/
$$ NO,END OF SEARCH FOR A SURFACE
     ,>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
CIR7       =FEAT/CONTACT/CIRCLE,CARTESIAN,OUT,MIN_CIRCSC
            THEO/<2.599,3.395,V5>,<0,0,1>,0.28,0,0,0
            ACTL/<2.607,3.4239,0.2281>,<0,0,1>,0.2691,0,0,0
            TARG/<2.599,3.395,V5>,<0,0,1>
            ANGLE VEC=<1,0,0>
            DIRECTION=CCW
            SHOW FEATURE PARAMETERS=NO
            SHOW CONTACT PARAMETERS=YES
              NUMHITS=8,DEPTH=0,PITCH=0
              SAMPLE HITS=0,SPACER=0
              AVOIDANCE MOVE=NO,DISTANCE=0.1
              FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
            SHOW HITS=YES
              HIT/BASIC,<2.739,3.395,V5>,<1,0,0>,<2.7395,3.399,0.225>
              HIT/BASIC,<2.698,3.494,V5>,<0.7071068,0.7071068,0>,<2.7114,3.5087,0.2247>
              HIT/BASIC,<2.599,3.535,V5>,<0,1,0>,<2.6011,3.5583,0.2243>
              HIT/BASIC,<2.5,3.494,V5>,<-0.7071068,0.7071068,0>,<2.4968,3.5003,0.2246>
              HIT/BASIC,<2.459,3.395,V5>,<-1,0,0>,<2.4753,3.3979,0.2247>
              HIT/BASIC,<2.5,3.296,V5>,<-0.7071068,-0.7071068,0>,<2.5241,3.3178,0.2254>
              HIT/BASIC,<2.599,3.255,V5>,<0,-1,0>,<2.5981,3.29,0.226>
              HIT/BASIC,<2.698,3.296,V5>,<0.7071068,-0.7071068,0>,<2.6807,3.311,0.2266>

The code above is to measure the highest point on a Z-axis on CMM program. how can i change it to measure a Y-axis

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.