I just recently wrote this program. I am new to programming so this is possibly a dumb question.
1. For some reason the DCC alignment is being executed twice. Almost like it loops it.
2. I can't mark my manual alignment unless i do it manually by hitting F3 on each sphere.
Code posted below. Any help would be appreciated.
STARTUP =ALIGNMENT/START,RECALL:USE_PART_SETUP,LIST=YES
ALIGNMENT/END
MODE/MANUAL
FORMAT/TEXT,OPTIONS, ,HEADINGS,SYMBOLS, ;NOM,TOL,MEAS,DEV,OUTTOL, ,
LOADPROBE/SLOT 0
TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
INPOP =COMMENT/INPUT,YES,FULL SCREEN=NO,
' 1ST PC.,INP.,PPAP,TROUBLE SHOOT,OTHER:'
INPMACH =COMMENT/INPUT,YES,FULL SCREEN=NO,
' MACHINE NUMBER:'
WORKPLANE/ZPLUS
INPCAV =COMMENT/INPUT,YES,FULL SCREEN=NO,
' CAVITY NUMBER:'
INPSER =COMMENT/INPUT,YES,FULL SCREEN=NO,
' SERIAL NUMBER:'
INPMACHOP =COMMENT/INPUT,YES,FULL SCREEN=NO,
' MACHINE OPERATOR:'
INPCMMOP =COMMENT/INPUT,YES,FULL SCREEN=NO,
' CMM OPERATOR:'
INPCOMOP =COMMENT/INPUT,YES,FULL SCREEN=NO,
' "COMMENT"-15 CHARACTER MAX.:'
TRACEFIELD/DISPLAY=NO,REPORT=NO,DISPLAY MESSAGE=INPOP ; INPOP : INPOP.INPUT
TRACEFIELD/DISPLAY=NO,REPORT=NO,DISPLAY MESSAGE=INPMACH ; INPMACH : INPMACH.INPUT
TRACEFIELD/DISPLAY=NO,REPORT=NO,DISPLAY MESSAGE=INPCAV ; INPCAV : INPCAV.INPUT
TRACEFIELD/DISPLAY=NO,REPORT=NO,DISPLAY MESSAGE=INPSER ; INPSER : INPSER.INPUT
TRACEFIELD/DISPLAY=NO,REPORT=NO,DISPLAY MESSAGE=INPMACHOP ; INPMACHOP : INPMACHOP.INPUT
TRACEFIELD/DISPLAY=NO,REPORT=NO,DISPLAY MESSAGE=INPCMMOP ; INPCMMOP : INPCMMOP.INPUT
TRACEFIELD/DISPLAY=NO,REPORT=NO,DISPLAY MESSAGE=INPCOMOP ; INPCOMOP : INPCOMOP.INPUT
COMMENT/OPER,NO,FULL SCREEN=YES,AUTO-CONTINUE=NO,
CMM fixture location...
COMMENT/OPER,NO,FULL SCREEN=YES,AUTO-CONTINUE=NO,
Zoomed fixture placement location.
COMMENT/OPER,NO,FULL SCREEN=YES,AUTO-CONTINUE=NO,
Take 5 hits in the shere identified below.
MAN_SPH1 =FEAT/CONTACT/SPHERE/DEFAULT,CARTESIAN,OUT,LEAST_SQR
THEO/<-354.07,-522.451,-101.6>,<0,0,1>,19.05
ACTL/<26.532,390.459,-837.999>,<0,0,1>,19.062
TARG/<-354.07,-522.451,-101.6>,<0,0,1>
START ANGLE 1=0,END ANG 1=360
START ANGLE 2=0,END ANG 2=90
ANGLE VEC=<1,0,0>
SHOW FEATURE PARAMETERS=YES
SURFACE=THICKNESS_NONE,0
MEASURE MODE=NOMINALS
RMEAS=NONE,NONE,NONE
AUTO WRIST=NO
GRAPHICAL ANALYSIS=NO
FEATURE LOCATOR=NO,NO,""
SHOW CONTACT PARAMETERS=YES
NUMHITS=5,NUMROWS=2
SAMPLE HITS=0
AVOIDANCE MOVE=BOTH,DISTANCE=10
SHOW HITS=NO
COMMENT/OPER,NO,FULL SCREEN=YES,AUTO-CONTINUE=NO,
Take 5 hits on the sphere identified below
MAN_SPH2 =FEAT/CONTACT/SPHERE/DEFAULT,CARTESIAN,OUT,LEAST_SQR
THEO/<-354.07,925.349,-101.6>,<0,0,1>,19.05
ACTL/<34.863,1838.149,-837.71>,<0,0,1>,19.052
TARG/<-354.07,925.349,-101.6>,<0,0,1>
START ANGLE 1=0,END ANG 1=360
START ANGLE 2=0,END ANG 2=90
ANGLE VEC=<1,0,0>
SHOW FEATURE PARAMETERS=YES
SURFACE=THICKNESS_NONE,0
MEASURE MODE=NOMINALS
RMEAS=NONE,NONE,NONE
AUTO WRIST=NO
GRAPHICAL ANALYSIS=NO
FEATURE LOCATOR=NO,NO,""
SHOW CONTACT PARAMETERS=YES
NUMHITS=5,NUMROWS=2
SAMPLE HITS=0
AVOIDANCE MOVE=BOTH,DISTANCE=10
SHOW HITS=NO
COMMENT/OPER,NO,FULL SCREEN=YES,AUTO-CONTINUE=NO,
Take 5 hits on the sphere identified below
MAN_SPH3 =FEAT/CONTACT/SPHERE/DEFAULT,CARTESIAN,OUT,LEAST_SQR
THEO/<179.33,201.449,-101.6>,<0,0,1>,19.05
ACTL/<563.99,1111.236,-838.422>,<0,0,1>,19.074
TARG/<179.33,201.449,-101.6>,<0,0,1>
START ANGLE 1=0,END ANG 1=360
START ANGLE 2=0,END ANG 2=90
ANGLE VEC=<1,0,0>
SHOW FEATURE PARAMETERS=YES
SURFACE=THICKNESS_NONE,0
MEASURE MODE=NOMINALS
RMEAS=NONE,NONE,NONE
AUTO WRIST=NO
GRAPHICAL ANALYSIS=NO
FEATURE LOCATOR=NO,NO,""
SHOW CONTACT PARAMETERS=YES
NUMHITS=5,NUMROWS=2
SAMPLE HITS=0
AVOIDANCE MOVE=BOTH,DISTANCE=10
SHOW HITS=NO
MAN_ALIGN =ALIGNMENT/START,RECALL:STARTUP,LIST=YES
ALIGNMENT/ITERATE
PNT TARGET RAD=2,START LABEL=,FIXTURE TOL=0.01,ERROR LABEL=
MEAS ALL FEAT=NO,LEVEL AXIS=ZAXIS,ROTATE AXIS=XAXIS,ORIGIN AXIS=YAXIS
LEVEL=MAN_SPH1,MAN_SPH2,MAN_SPH3,,
ROTATE=MAN_SPH1,MAN_SPH2,,
ORIGIN=MAN_SPH3,,
ALIGNMENT/END
MOVESPEED/ 200
MODE/DCC
L1 =LABEL/
MOVE/POINT,NORMAL,<177.197,201.206,429.893>
MOVE/POINT,NORMAL,<-391.626,-509.312,396.292>
MOVE/POINT,NORMAL,<-357.655,-524.208,-58.952>
DCC_SPH1 =FEAT/CONTACT/SPHERE/DEFAULT,CARTESIAN,OUT,LEAST_SQR
THEO/<-354.07,-522.451,-101.6>,<0,0,1>,19.05
ACTL/<-354.069,-522.409,-101.6>,<0.0000081,0.0000021,1>,19.058
TARG/<-354.07,-522.451,-101.6>,<0,0,1>
START ANGLE 1=0,END ANG 1=360
START ANGLE 2=0,END ANG 2=90
ANGLE VEC=<1,0,0>
SHOW FEATURE PARAMETERS=YES
SURFACE=THICKNESS_NONE,0
MEASURE MODE=NOMINALS
RMEAS=NONE,NONE,NONE
AUTO WRIST=NO
CIRCULAR MOVES=CIRCULAR
GRAPHICAL ANALYSIS=NO
FEATURE LOCATOR=NO,NO,""
SHOW CONTACT PARAMETERS=YES
NUMHITS=9,NUMROWS=3
SAMPLE HITS=0
AVOIDANCE MOVE=BOTH,DISTANCE=10
SHOW HITS=NO
MOVE/POINT,NORMAL,<-355.365,-522.234,426.428>
MOVE/POINT,NORMAL,<-337.416,887.461,425.86>
MOVE/POINT,NORMAL,<-352.98,926.821,-32.34>
DCC_SPH2 =FEAT/CONTACT/SPHERE/DEFAULT,CARTESIAN,OUT,LEAST_SQR
THEO/<-354.07,925.349,-101.6>,<0,0,1>,19.05
ACTL/<-354.071,925.307,-101.605>,<0.0000081,0.0000021,1>,19.057
TARG/<-354.07,925.349,-101.6>,<0,0,1>
START ANGLE 1=0,END ANG 1=360
START ANGLE 2=0,END ANG 2=90
ANGLE VEC=<1,0,0>
SHOW FEATURE PARAMETERS=YES
SURFACE=THICKNESS_NONE,0
MEASURE MODE=NOMINALS
RMEAS=NONE,NONE,NONE
AUTO WRIST=NO
CIRCULAR MOVES=CIRCULAR
GRAPHICAL ANALYSIS=NO
FEATURE LOCATOR=NO,NO,""
SHOW CONTACT PARAMETERS=YES
NUMHITS=9,NUMROWS=3
SAMPLE HITS=0
AVOIDANCE MOVE=BOTH,DISTANCE=10
SHOW HITS=NO
MOVE/POINT,NORMAL,<-355.11,925.523,327.093>
MOVE/POINT,NORMAL,<149.149,422.907,328.708>
MOVE/POINT,NORMAL,<180.31,200.21,-65.883>
DCC_SPH3 =FEAT/CONTACT/SPHERE/DEFAULT,CARTESIAN,OUT,LEAST_SQR
THEO/<179.33,201.449,-101.6>,<0,0,1>,19.05
ACTL/<179.228,201.454,-101.607>,<0.0000081,0.0000021,1>,19.064
TARG/<179.33,201.449,-101.6>,<0,0,1>
START ANGLE 1=0,END ANG 1=360
START ANGLE 2=0,END ANG 2=90
ANGLE VEC=<1,0,0>
SHOW FEATURE PARAMETERS=YES
SURFACE=THICKNESS_NONE,0
MEASURE MODE=NOMINALS
RMEAS=NONE,NONE,NONE
AUTO WRIST=NO
CIRCULAR MOVES=CIRCULAR
GRAPHICAL ANALYSIS=NO
FEATURE LOCATOR=NO,NO,""
SHOW CONTACT PARAMETERS=YES
NUMHITS=9,NUMROWS=3
SAMPLE HITS=0
AVOIDANCE MOVE=BOTH,DISTANCE=10
SHOW HITS=NO
MOVE/POINT,NORMAL,<177.966,201.678,453.154>
DCC_ALIGN =ALIGNMENT/START,RECALL:MAN_ALIGN,LIST=YES
ALIGNMENT/ITERATE
PNT TARGET RAD=2,START LABEL=L1,FIXTURE TOL=0.01,ERROR LABEL=
MEAS ALL FEAT=ALWAYS,MAX ITERATIONS=5,LEVEL AXIS=ZAXIS,ROTATE AXIS=XAXIS,ORIGIN AXIS=YAXIS
LEVEL=DCC_SPH1,DCC_SPH2,DCC_SPH3,,
ROTATE=DCC_SPH1,DCC_SPH2,,
ORIGIN=DCC_SPH3,,
ALIGNMENT/END
ROT =ALIGNMENT/START,RECALLCC_ALIGN,LIST=YES
ALIGNMENT/ROTATE_OFFSET,270,ABOUT,ZPLUS
ALIGNMENT/ROTATE_OFFSET,270,ABOUT,YPLUS
ALIGNMENT/END
MOVE/POINT,NORMAL,<428.738,-328.882,869.746>
TIP/T1A90B90, SHANKIJK=-0.003, -1, -0.001, ANGLE=90.024
L2 =LABEL/
MOVE/POINT,NORMAL,<454.57,-219.256,877.737>
MOVE/POINT,NORMAL,<11.02,-289.328,770.238>
MOVE/POINT,NORMAL,<-13.347,-289.258,770.233>
MOVE/POINT,NORMAL,<-17.215,7.478,836.073>
DATUM_A1 =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
Iterative alignments, with MEAS ALL ALWAYS will always loop at least "once" (measure it all twice). If you set it to MEASURE ALL ONCE it should stop that.
Thank You. I switched to MEAS ONCE and it wanted to me to move the probe to position. Changing it to MEAS NO actually stopped the measuring of the spheres twice.
I am still stumped on why I click OK to mark Manual feat and it does not mark them. Having to Manually click F3