hexagon logo

Programming to allow for a choice between 2 different Auto Calibrate commands

This is relatively simple code, but new users might find it helpful. I was recently asked if I could help automate a company’s probe calibration routine and write a program that would run one of 2 Auto Calibrate routines: one for “yes, the cal sphere has moved,” and “no, the cal sphere has not moved.”

First question: Do you want to calibrate the probe?

Second question: Has the calibration sphere moved?

STARTUP    =ALIGNMENT/START,RECALL:USE_PART_SETUP,LIST=YES
            ALIGNMENT/END
            MODE/DCC
            FORMAT/TEXT,OPTIONS, ,HEADINGS,SYMBOLS, ;NOM,TOL,MEAS,DEV,OUTTOL, ,
            LOADPROBE/3X20MM
            TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
C2         =COMMENT/YESNO,NO,FULL SCREEN=YES,AUTO-CONTINUE=NO,
            Do you want to calibrate?
            IF/C2.INPUT=="YES"
C1           =COMMENT/YESNO,NO,FULL SCREEN=YES,AUTO-CONTINUE=NO,
              Has the cal sphere moved?
              IF/C1.INPUT=="YES"
                COMMENT/OPER,NO,FULL SCREEN=YES,AUTO-CONTINUE=NO,
                Take a manual hit to locate cal sphere
                AUTOCALIBRATE/PROBE, PARAMETER_SET=ALL-TIPS-WITH-DEFAULTS, QUALTOOL_MOVED=YES_MANUAL,
                              SHOW_SUMMARY=NO, OVERWRITE_RESULTSFILE=NO
              END_IF/
              ELSE_IF/C1.INPUT=="NO"
                AUTOCALIBRATE/PROBE, PARAMETER_SET=ALL-TIPS-WITH-DEFAULTS, QUALTOOL_MOVED=NO,
                              SHOW_SUMMARY=NO, OVERWRITE_RESULTSFILE=NO
              END_ELSEIF/
            END_IF/
            COMMENT/OPER,NO,FULL SCREEN=YES,AUTO-CONTINUE=NO,
            PRESS "OK" TO BEGIN CMM PROGRAM
            MODE/DCC
Parents
  • I have this type of Auto Calibration built into the PC-DMIS program template for Non-Probe Rack probes. A Forum or Comments control this Auto Calibration depending on the Template settings.
    Within the Auto Calibration Group I also, have an Input Comment to choose from a list of probes to recalibrate. A comment to display the last time calibration was complete. Print Commands and Basic scripts to Save the Auto Calibration report and automatically open the report when using Inspect. For the Master probes can be forced to be calibrated using the Auto Calibration within this Auto Calibration Group. I do have a separate Mater Probe Calibration Program that can be executed within Inspect that will automatically open the probe results file.
    There are right ways to do this and wrong ways to do this with PC-DMIS and this should not be the case with this software.
Reply
  • I have this type of Auto Calibration built into the PC-DMIS program template for Non-Probe Rack probes. A Forum or Comments control this Auto Calibration depending on the Template settings.
    Within the Auto Calibration Group I also, have an Input Comment to choose from a list of probes to recalibrate. A comment to display the last time calibration was complete. Print Commands and Basic scripts to Save the Auto Calibration report and automatically open the report when using Inspect. For the Master probes can be forced to be calibrated using the Auto Calibration within this Auto Calibration Group. I do have a separate Mater Probe Calibration Program that can be executed within Inspect that will automatically open the probe results file.
    There are right ways to do this and wrong ways to do this with PC-DMIS and this should not be the case with this software.
Children
No Data