Global IF GO TO command

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Global IF GO TO command

    Can I write a global command that IF anything is OUTTOL then GO TO label or do I have to code it individually for each dimension out-put?


    example of individual coding:

    Code:
      IF_GOTO/F54.OUTTOL,GOTO = L1
    
    L1         =LABEL/

    My end goal is to have a comment pop-up providing the operator with detailed instructions if anything is OUTTOL
    Jesse Krook

  • #2
    Here is code that I put together with help from a few other programmers and it works good. Need the script below to make it work
    Code:
    CS2 =SCRIPT/FILENAME= F:\USERS\CMMUSER\CMM_PROGRAMS(PCDMIS)\OUTTOL.BAS
    FUNCTION/Main,SHOW=YES,,
    STARTSCRIPT/
    ENDSCRIPT/
    PRINT/REPORT,EXEC MODE=END,$
    TO_FILE=ON,OVERWRITE=VAL_FILE,$
    TO_PRINTER=OFF,$
    TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$
    REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMEN SIONS=NO,$
    PREVIOUS_RUNS=DELETE_INSTANCES
    IF/NUMBEROUTTOL > .1
    GOTO/PRINT_FAIL
    END_IF/

    This is a script that Craiger wrote for me many years ago. Change the filename extension after you download it and use it in the code posted above
    https://app.box.com/shared/k7vdp0nh9b
    Last edited by dwade; 07-01-2020, 09:33 AM.
    Xcel & MicroVal Pfx & Global 37mr4 thru 2012mr1sp3
    Contura Calypso 5.4

    Lord, keep Your arm around my shoulder and Your hand over my mouth. Amen.

    Comment

    Related Topics

    Collapse

    Working...
    X