hexagon logo

Header not repeating in looped program

Hi all! I've got a program that loops to measure four parts on one run. The program loops properly and gives me four separate reports except after the first run our company header is not carried on past the first report. What am i missing? I know I am missing something simple, but I have been beating my head against the wall trying to figure it out. I have chosen the proper template and chose the right default report to use, but to no avail. BTW, I am running 2013 MR1 SP6. Thanks in advance.
Parents
  • Mike -
    Thing is, parts have over one hour run time each. Boss wants program to run without operator attending cmm machine for 6hrs. I'm trying to find a way to have a one time input of all serial numbers at the beginning of the program and have them report along with header for each part inside the loop.
Reply
  • Mike -
    Thing is, parts have over one hour run time each. Boss wants program to run without operator attending cmm machine for 6hrs. I'm trying to find a way to have a one time input of all serial numbers at the beginning of the program and have them report along with header for each part inside the loop.
Children
  • Here's what I do for a nested loop I have:

    MODE/DCC
        C2         =COMMENT/INPUT,NO,FULL SCREEN=NO,
                    <<< Please Enter Beginning Serial Number >>>
                    ASSIGN/PARTCOMM=C2.INPUT
                    ASSIGN/LOOPPART=PARTCOMM
        C3         =COMMENT/INPUT,NO,FULL SCREEN=NO,
                    How Many Parts Are In Each Row? >>>
                    ASSIGN/V1=C3.INPUT
        C4         =COMMENT/INPUT,NO,FULL SCREEN=NO,
                    <<< How Many Rows? >>>
                    ASSIGN/V2=C4.INPUT
            V3     =LOOP/START,ID=YES,NUMBER=V2,START=1,SKIP=,
                      OFFSET:XAXIS=0,YAXIS=4,ZAXIS=0,ANGLE=0
            V4     =LOOP/START,ID=YES,NUMBER=V1,START=1,SKIP=,
                      OFFSET:XAXIS=4,YAXIS=0,ZAXIS=0,ANGLE=0
                    COMMENT/REPT,
                    "PART #_"+LOOPPART


    and this at the end:

    PRINT/REPORT,EXEC MODE=END,$
                      TO_FILE=ON,AUTO=80,$
                      TO_PRINTER=OFF,$
                      TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$
                      REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$
                      PREVIOUS_RUNS=DELETE_INSTANCES
                    EXTERNALCOMMAND/NO_DISPLAY, NO_WAIT ; C:\PROGRAM FILES\WAI\DATAPAGE+ 2011\DATAPAGESTATS.EXE
                    ASSIGN/LOOPPART=LOOPPART+1
                    LOOP/END
                    LOOP/END

    this puts the serial number on the report as a comment...haven't figured out how to get it in the appropriate spot in the header yet...HTH