hexagon logo

"On Error"-Command Doesnt Work! #Check Calibration Limits

Hello PC-DMIS-Forum,

I need to write a validated measurement routine. For this I need a confirmation that the calibration has worked or not.
But I have noticed that the "On Error" command doesnt work.
As you can see in the pictures, my routine just calibrate one of my probes. The command "On Error" is set on "Check Calibration Limits". If an error occurs, the program should jump to label L1.
In the other picture you can clearly see that the standard deviation exceeded the limit. (I have modified the norm part to cause an error).
In my case, it does not jump to label L1. (So it does not detect any error)

What Ive allready tryed:
-all PC-DMIS Versions
-on Error/Error mode/Set Variable does not work too ( https://docs.hexagonmi.com/pcdmis/2022.2/en/helpcenter/index.htm#t=mergedProjects%2Ftoolkitmodules%2FMisc %2Fcheck_calibration_limits%2FAbout_Check_Calibrat ion_Limits.htm&rhsearch=Calibration%20Limits&rhsyn s=%20)

This program works! If I set the Error Type to "Missed Probe Hit" and remove the norm part, it worked as it should!

I would be very very grateful if someone could help me.
Thanks in advance.











​​

Attached Files
Parents
  • Well, it would be nice to have the built in function work however here is something of a workaround. It is time consuming to setup with a lot of tips but it can be copy/pasted as needed:

                    ASSIGN/LOOP_CNTR=0
    RE_RUN1        =LABEL/
                    AUTOCALIBRATE/PROBE, PARAMETER_SET=TEST_SET1, QUALTOOL_MOVED=NO,
                                  CHECK COLLISION=NO, SHOW_SUMMARY=NO, OVERWRITE_RESULTSFILE=NO
        $$ NO,
                    
                    ASSIGN/LOOP_CNTR=LOOP_CNTR+1
                    ASSIGN/V1="T1A0B0"
                    ASSIGN/V2="T1A45B180"
                    ASSIGN/V3="T1A90B0"
                    ASSIGN/TIP_CNT=3
                    ASSIGN/TIP_TOL=0.0004
                    ASSIGN/CNTR=0
                    DO/
                      ASSIGN/B2="V"+CNTR
                      ASSIGN/B3=PROBEDATA("Standarddeviation",B2)
                      IF_GOTO/LOOP_CNTR>3,GOTO = EXIT_RUN1
                      IF_GOTO/B3==TIP_TOL OR B3>TIP_TOL,GOTO = RE_RUN1
                    UNTIL/CNTR==TIP_CNT
        $$ NO,
                    
                    GOTO/CONT_RUN2
    EXIT_RUN1      =LABEL/
                    COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,
                    Tip failed calibration.  Review setup and restart
    CONT_RUN2      =LABEL/​​
    


    Hope its something that can help you get past your issue.
Reply
  • Well, it would be nice to have the built in function work however here is something of a workaround. It is time consuming to setup with a lot of tips but it can be copy/pasted as needed:

                    ASSIGN/LOOP_CNTR=0
    RE_RUN1        =LABEL/
                    AUTOCALIBRATE/PROBE, PARAMETER_SET=TEST_SET1, QUALTOOL_MOVED=NO,
                                  CHECK COLLISION=NO, SHOW_SUMMARY=NO, OVERWRITE_RESULTSFILE=NO
        $$ NO,
                    
                    ASSIGN/LOOP_CNTR=LOOP_CNTR+1
                    ASSIGN/V1="T1A0B0"
                    ASSIGN/V2="T1A45B180"
                    ASSIGN/V3="T1A90B0"
                    ASSIGN/TIP_CNT=3
                    ASSIGN/TIP_TOL=0.0004
                    ASSIGN/CNTR=0
                    DO/
                      ASSIGN/B2="V"+CNTR
                      ASSIGN/B3=PROBEDATA("Standarddeviation",B2)
                      IF_GOTO/LOOP_CNTR>3,GOTO = EXIT_RUN1
                      IF_GOTO/B3==TIP_TOL OR B3>TIP_TOL,GOTO = RE_RUN1
                    UNTIL/CNTR==TIP_CNT
        $$ NO,
                    
                    GOTO/CONT_RUN2
    EXIT_RUN1      =LABEL/
                    COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,
                    Tip failed calibration.  Review setup and restart
    CONT_RUN2      =LABEL/​​
    


    Hope its something that can help you get past your issue.
Children