Quantcast
Channel: PC-DMIS User Forum - Forums
Viewing all articles
Browse latest Browse all 11658

Auto-Calibration Setup

$
0
0
I recently started at a new place and when they shut the machine off every night and start up every morning. And for every program they start they do a calibration, but since they don't move the cal sphere they where always saying No on calibration. I have started to implement a Master Probe/Tip and have been working to get as many of the tips and angles to relate properly with the master.

I figured the best way to have this relation maintained was to use auto-calibration. But then I found that anything exceeding the Std Dev was not being flagged for re-calibration. I then found that Trevor McLaughlin over at http://www.cmmxyz.com/blog-cmm-tech-tips had a possible fix. Unfortunately it only seemed to work for the most recently calibrated tip and angle. The code below is my attempt to remedy this.

I was wondering if anyone had any ideas of how to refine this due to the number of tips and or angles potentially used in a program or if they see something that I completely missed.

Code:
 
STARTUP    =ALIGNMENT/START,RECALL:USE_PART_SETUP,LIST=YES
            ALIGNMENT/END
            MODE/DCC
            FORMAT/TEXT,OPTIONS, ,HEADINGS,SYMBOLS, ;NOM,TOL,MEAS,DEV,OUTTOL, , 
            ASSIGN/STD_DEV=.00034
            ASSIGN/PROBE1="MASTER"
            ASSIGN/PROBE2="0_5x20"
            ASSIGN/PROBE3="6x50"
            ASSIGN/TIP1="T1A0B0"
            ASSIGN/TIP2="T1A90B-90"
            ASSIGN/TIP3="T1A90B0"
            ASSIGN/TIP4="T1A90B90"
            ASSIGN/TIP5="T1A90B180"
            LOADPROBE/MASTER
            TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
L1         =LABEL/
            AUTOCALIBRATE/PROBE, PARAMETER_SET=Master, QUALTOOL_MOVED=YES_MANUAL, 
                          SHOW_SUMMARY=YES, OVERWRITE_RESULTSFILE=NO
BEGIN AUTOCALIBRATE RESULTS FOR PROBE MASTER USING SET Master
Probe file=MASTER    Date=3/6/2017    Time=9:21:37 AM
T1             CENT X   7.6451 Y  17.7795 Z -18.3488 D 0.9839
T1A0B0         THEO X   0.0000 Y   0.0000 Z   8.2705 D 0.1575
T1A0B0         MEAS X   0.0085 Y   0.0220 Z   8.2905 D 0.1573 StdDev 0.0001
END AUTOCALIBRATE RESULTS FOR PROBE MASTER USING SET Master
            ASSIGN/PN=4
            ASSIGN/PU=0.25
            ASSIGN/PL=0.25
            ASSIGN/ID=PROBEDATA("ID" , TIP1 , PROBE1)
            ASSIGN/DEV=PROBEDATA("standarddeviation" , TIP1 , PROBE1)
            ASSIGN/DIA=(PROBEDATA("Diam" , TIP1 , PROBE1) * 25.4)
C1         =COMMENT/YESNO,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,
            See calibration results?
            IF/C1.INPUT=="YES"
              COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,
              Calibration Summary
              "Nom Probe Dia = " +PN+ "mm"
              "Master Measured Probe Dia = " +DIA
              Max Std Dev Allowed = 0.0003
              "Master Measured Std Dev = " +DEV
            END_IF/
            IF/(DIA < = (PN - PL)) OR (DIA > = (PN + PU)) OR (DEV > STD_DEV)
C2           =COMMENT/YESNO,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,
              Probe calibration FAILED!
              Re-run Calibration?
              IF_GOTO/C2.INPUT=="YES",GOTO = L1
              END_IF/

Viewing all articles
Browse latest Browse all 11658

Trending Articles