hexagon logo

Probe Calibration Interval Stop Gap

I am looking to terminate a program if the probe tips have not been calibrated withing a certain time frame. The warning message just isn't enough for these guys... I think I need functions PROBEDATA() and SYSTEMDATE() but I am not sure what expression I need to evaluate for an "IF" flow control command. Anyone, do anything similar or have experience with this? Need to add a request in idea center. This seems like it should be an option in the probe setup.
Parents
  • How about this?
    If the calibration date is older than the current date then it skips to the end of the program


    ASSIGN/V1=PROBEDATA("DATE")
    ASSIGN/V2=SYSTEMDATE("MM'/'dd'/'yy")
    IF_GOTO/V1<V2,GOTO = L1
    PNT1 =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
    THEO/<-17,638.4,-16>,<0,0,-1>
    ACTL/<-17,638.4,-16>,<0,0,-1>
    TARG/<-17,638.4,-16>,<0,0,-1>
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=NO
    PNT3 =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
    THEO/<-17,638.4,-16>,<0,0,-1>
    ACTL/<-17,638.4,-16>,<0,0,-1>
    TARG/<-17,638.4,-16>,<0,0,-1>
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=NO
    PNT4 =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
    THEO/<-17,638.4,-16>,<0,0,-1>
    ACTL/<-17,638.4,-16>,<0,0,-1>
    TARG/<-17,638.4,-16>,<0,0,-1>
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=NO
    PNT5 =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
    THEO/<-17,638.4,-16>,<0,0,-1>
    ACTL/<-17,638.4,-16>,<0,0,-1>
    TARG/<-17,638.4,-16>,<0,0,-1>
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=NO
    PNT6 =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
    THEO/<-17,638.4,-16>,<0,0,-1>
    ACTL/<-17,638.4,-16>,<0,0,-1>
    TARG/<-17,638.4,-16>,<0,0,-1>
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=NO
    L1 =LABEL/
    

    Attached Files
Reply
  • How about this?
    If the calibration date is older than the current date then it skips to the end of the program


    ASSIGN/V1=PROBEDATA("DATE")
    ASSIGN/V2=SYSTEMDATE("MM'/'dd'/'yy")
    IF_GOTO/V1<V2,GOTO = L1
    PNT1 =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
    THEO/<-17,638.4,-16>,<0,0,-1>
    ACTL/<-17,638.4,-16>,<0,0,-1>
    TARG/<-17,638.4,-16>,<0,0,-1>
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=NO
    PNT3 =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
    THEO/<-17,638.4,-16>,<0,0,-1>
    ACTL/<-17,638.4,-16>,<0,0,-1>
    TARG/<-17,638.4,-16>,<0,0,-1>
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=NO
    PNT4 =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
    THEO/<-17,638.4,-16>,<0,0,-1>
    ACTL/<-17,638.4,-16>,<0,0,-1>
    TARG/<-17,638.4,-16>,<0,0,-1>
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=NO
    PNT5 =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
    THEO/<-17,638.4,-16>,<0,0,-1>
    ACTL/<-17,638.4,-16>,<0,0,-1>
    TARG/<-17,638.4,-16>,<0,0,-1>
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=NO
    PNT6 =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
    THEO/<-17,638.4,-16>,<0,0,-1>
    ACTL/<-17,638.4,-16>,<0,0,-1>
    TARG/<-17,638.4,-16>,<0,0,-1>
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=NO
    L1 =LABEL/
    

    Attached Files
Children