Report after loops

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

  • Report after loops

    Ok so I have scoured the forum and still cant seem to find an answer to solve my issue. using the flow control "loop" to "loop/end" program runs fine thru multiple parts no cmm crashes. There is a comment input for how many parts that will be run that then populates the loop qty. If we run 1 part only when the report is pulled up after the program finishes the part is out of tolerance exactly double of what my offset is. Same happens on 2019 R1 SP 5 and 2019 R2. If I delete the "1" inside the bracket and retype "1" the report gets corrected however the actual program has 100+ dimensions so that is not an option. We have to run 1 part by itself then 2 parts on a the same dedicated fixture due to the size of the parts we cant fit all 3 on the cmm and there is a total of 7 per lot. I cant use paste with pattern because we are using the excel module to create a CSV file that is being used by the ERP system input the data with the unique identifier "bubble_1" . Using Paste with pattern, will not allow me to create dimension labels with the same ID bubble_1 thru bubble_100 for the 2nd part, our ERP system is already set and in use by multiple other systems company wide so they are not going to change it to adapt to PC-dmis. I have tried changing the alignment before reporting each part to "active" and ,"A3dcc" (yes they are the same i know but have see pc dmis to strange stuff.)and "startup" both in the program and before the actual dimension to no avail. so I'm hoping some one here uses the flow control to loop and report. Thanks in advance.

  • #2
    here is the code 2019 r1
    STARTUP =ALIGNMENT/START,RECALL:USE_PART_SETUP,LIST=YES
    ALIGNMENT/END
    LOADPROBE/TP20 1X30
    MODE/MANUAL
    MANRETRACT/0.05
    FLY/ON
    FORMAT/TEXT,OPTIONS,ID,HEADINGS,SYMBOLS, ;NOM,TOL,MEAS,DEV,OUTTOL, ,
    LOADPROBE/TP20 1X30
    TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
    QTY =COMMENT/INPUT,NO,FULL SCREEN=NO,
    How many parts are you running?
    SN =COMMENT/INPUT,NO,FULL SCREEN=NO,
    serial number
    TRACEFIELD/DISPLAY=NO,REPORT=YES,DISPLAY MESSAGE=serial number ; serial number : SN.INPUT
    START =GENERIC/POINT,DEPENDENT,CARTESIAN,$
    NOM/XYZ,<0,0,0>,$
    MEAS/XYZ,<0,0,0>,$
    NOM/IJK,<0,0,1>,$
    MEAS/IJK,<0,0,1>
    A_START =ALIGNMENT/START,RECALL:STARTUP,LIST=YES
    ALIGNMENT/TRANS,XAXIS,START
    ALIGNMENT/TRANS,YAXIS,START
    ALIGNMENT/TRANS,ZAXIS,START
    ALIGNMENT/END
    L1 =LOOP/START,ID=YES,NUMBER=QTY.INPUT,START=1,SKIP=,
    OFFSET:XAXIS=0,YAXIS=8,ZAXIS=0,ANGLE=0
    MODE/DCC
    CLEARP/ZPLUS,0.3,ZPLUS,0.05,ON
    MOVE/CLEARPLANE
    PLN1DCC =FEAT/CONTACT/PLANE/DEFAULT,CARTESIAN,TRIANGLE,LEAST_SQR
    THEO/<1.1923,1.6768,0>,<0,0,1>
    ACTL/<1.1923,1.6768,0>,<0,0,1>
    TARG/<1.1923,1.6768,0>,<0,0,1>
    ANGLE VEC=<1,0,0>,RADIAL
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=YES
    NUMHITS=3,NUMRINGS=3
    SPACER=0
    AVOIDANCE MOVE=BOTH,DISTANCE=0.3937
    USE BOUNDARY OFFSET=YES,OFFSET=50.7999
    SHOW HITS=NO
    ADCC1 =ALIGNMENT/START,RECALL:A_START,LIST=YES
    ALIGNMENT/LEVEL,ZPLUS,PLN1DCC
    ALIGNMENT/TRANS,ZAXIS,PLN1DCC
    ALIGNMENT/END
    MOVE/CLEARPLANE
    PLN2DCC =FEAT/CONTACT/PLANE/DEFAULT,CARTESIAN,TRIANGLE,LEAST_SQR
    THEO/<3.0071,0,-0.4061>,<0,-1,0>
    ACTL/<3.0071,0,-0.4061>,<0,-1,0>
    TARG/<3.0071,0,-0.4061>,<0,-1,0>
    ANGLE VEC=<1,0,0>,RADIAL
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=YES
    NUMHITS=3,NUMRINGS=3
    SPACER=0
    AVOIDANCE MOVE=BOTH,DISTANCE=0.3937
    USE BOUNDARY OFFSET=YES,OFFSET=50.7999
    SHOW HITS=NO
    MOVE/CLEARPLANE
    ADCC2 =ALIGNMENT/START,RECALL:ADCC1,LIST=YES
    ALIGNMENT/ROTATE,YMINUS,TO,PLN2DCC,ABOUT,ZPLUS
    ALIGNMENT/TRANS,YAXIS,PLN2DCC
    ALIGNMENT/END
    PNT2DCC =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
    THEO/<0,-7.4942,-0.2764>,<-1,0,0>
    ACTL/<0,0.5058,-0.2764>,<-1,0,0>
    TARG/<0,-7.4942,-0.2764>,<-1,0,0>
    SNAP=YES
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=YES
    AVOIDANCE MOVE=NO,DISTANCE=0.3937
    SHOW HITS=NO
    ADCC3 =ALIGNMENT/START,RECALL:ADCC2,LIST=YES
    ALIGNMENT/TRANS,XAXIS,
    ALIGNMENT/END
    MOVE/CLEARPLANE
    CIR1 =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
    THEO/<3.1496,-5.6378,0>,<0,0,1>,2.3622
    ACTL/<3.1496,-5.6378,0>,<0,0,1>,2.3622
    TARG/<3.1496,-5.6378,0>,<0,0,1>
    START ANG=0,END ANG=360
    ANGLE VEC=<1,0,0>
    DIRECTION=CCW
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=YES
    NUMHITS=5,DEPTH=0.0787,PITCH=0
    SAMPLE METHOD=SAMPLE_HITS
    SAMPLE HITS=0,SPACER=0
    AVOIDANCE MOVE=BOTH,DISTANCE=0.3937
    FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
    SHOW HITS=NO
    MOVE/CLEARPLANE
    CIR2 =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
    THEO/<4.291,-6.7792,0>,<0,0,1>,0.6457
    ACTL/<4.291,-6.7792,0>,<0,0,1>,0.6457
    TARG/<4.291,-6.7792,0>,<0,0,1>
    START ANG=0,END ANG=360
    ANGLE VEC=<1,0,0>
    DIRECTION=CCW
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=YES
    NUMHITS=5,DEPTH=0.0787,PITCH=0
    SAMPLE METHOD=SAMPLE_HITS
    SAMPLE HITS=0,SPACER=0
    AVOIDANCE MOVE=BOTH,DISTANCE=0.3937
    FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
    SHOW HITS=NO
    MOVE/CLEARPLANE
    CIR3 =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
    THEO/<3.1496,-7.252,0>,<0,0,1>,0.6457
    ACTL/<3.1496,-7.252,0>,<0,0,1>,0.6457
    TARG/<3.1496,-7.252,0>,<0,0,1>
    START ANG=0,END ANG=360
    ANGLE VEC=<1,0,0>
    DIRECTION=CCW
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=YES
    NUMHITS=5,DEPTH=0.0787,PITCH=0
    SAMPLE METHOD=SAMPLE_HITS
    SAMPLE HITS=0,SPACER=0
    AVOIDANCE MOVE=BOTH,DISTANCE=0.3937
    FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
    SHOW HITS=NO
    MOVE/CLEARPLANE
    CIR4 =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
    THEO/<2.0082,-6.7792,0>,<0,0,1>,0.6457
    ACTL/<2.0082,-6.7792,0>,<0,0,1>,0.6457
    TARG/<2.0082,-6.7792,0>,<0,0,1>
    START ANG=0,END ANG=360
    ANGLE VEC=<1,0,0>
    DIRECTION=CCW
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=YES
    NUMHITS=5,DEPTH=0.0787,PITCH=0
    SAMPLE METHOD=SAMPLE_HITS
    SAMPLE HITS=0,SPACER=0
    AVOIDANCE MOVE=BOTH,DISTANCE=0.3937
    FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
    SHOW HITS=NO
    MOVE/CLEARPLANE
    CIR5 =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
    THEO/<1.5354,-5.6378,0>,<0,0,1>,0.6457
    ACTL/<1.5354,-5.6378,0>,<0,0,1>,0.6457
    TARG/<1.5354,-5.6378,0>,<0,0,1>
    START ANG=0,END ANG=360
    ANGLE VEC=<1,0,0>
    DIRECTION=CCW
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=YES
    NUMHITS=5,DEPTH=0.0787,PITCH=0
    SAMPLE METHOD=SAMPLE_HITS
    SAMPLE HITS=0,SPACER=0
    AVOIDANCE MOVE=BOTH,DISTANCE=0.3937
    FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
    SHOW HITS=NO
    MOVE/CLEARPLANE
    CIR6 =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
    THEO/<2.0082,-4.4964,0>,<0,0,1>,0.6457
    ACTL/<2.0082,-4.4964,0>,<0,0,1>,0.6457
    TARG/<2.0082,-4.4964,0>,<0,0,1>
    START ANG=0,END ANG=360
    ANGLE VEC=<1,0,0>
    DIRECTION=CCW
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=YES
    NUMHITS=5,DEPTH=0.0787,PITCH=0
    SAMPLE METHOD=SAMPLE_HITS
    SAMPLE HITS=0,SPACER=0
    AVOIDANCE MOVE=BOTH,DISTANCE=0.3937
    FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
    SHOW HITS=NO
    MOVE/CLEARPLANE
    CIR7 =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
    THEO/<3.1496,-4.0236,0>,<0,0,1>,0.6457
    ACTL/<3.1496,-4.0236,0>,<0,0,1>,0.6457
    TARG/<3.1496,-4.0236,0>,<0,0,1>
    START ANG=0,END ANG=360
    ANGLE VEC=<1,0,0>
    DIRECTION=CCW
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=YES
    NUMHITS=5,DEPTH=0.0787,PITCH=0
    SAMPLE METHOD=SAMPLE_HITS
    SAMPLE HITS=0,SPACER=0
    AVOIDANCE MOVE=BOTH,DISTANCE=0.3937
    FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
    SHOW HITS=NO
    MOVE/CLEARPLANE
    CIR8 =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
    THEO/<4.291,-4.4964,0>,<0,0,1>,0.6457
    ACTL/<4.291,-4.4964,0>,<0,0,1>,0.6457
    TARG/<4.291,-4.4964,0>,<0,0,1>
    START ANG=0,END ANG=360
    ANGLE VEC=<1,0,0>
    DIRECTION=CCW
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=YES
    NUMHITS=5,DEPTH=0.0787,PITCH=0
    SAMPLE METHOD=SAMPLE_HITS
    SAMPLE HITS=0,SPACER=0
    AVOIDANCE MOVE=BOTH,DISTANCE=0.3937
    FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
    SHOW HITS=NO
    MOVE/CLEARPLANE
    CIR9 =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
    THEO/<4.7638,-5.6378,0>,<0,0,1>,0.6457
    ACTL/<4.7638,-5.6378,0>,<0,0,1>,0.6457
    TARG/<4.7638,-5.6378,0>,<0,0,1>
    START ANG=0,END ANG=360
    ANGLE VEC=<1,0,0>
    DIRECTION=CCW
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=YES
    NUMHITS=5,DEPTH=0.0787,PITCH=0
    SAMPLE METHOD=SAMPLE_HITS
    SAMPLE HITS=0,SPACER=0
    AVOIDANCE MOVE=BOTH,DISTANCE=0.3937
    FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
    SHOW HITS=NO
    RECALL1 =ALIGNMENT/START,RECALL:USE_ACTIVE_ALIGNMENT(ADCC3),LIST=YES
    ALIGNMENT/END

    Comment


    • #3
      DIM BUBBLE_1= POSITION OF CIRCLE CIR1[1] UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
      AX NOMINAL +TOL -TOL BONUS MEAS DEV OUTTOL
      X 3.1496 3.1496 0.0000
      Y 2.3622 -5.6378 -8.0000
      DF 2.3622 0.0000 0.0000 2.3622 0.0000 0.0000 #--------
      TP RFS 0.0000 0.0000 16.0000 16.0000 16.0000 -------->
      END OF DIMENSION BUBBLE_1
      DIM BUBBLE_2= POSITION OF CIRCLE CIR2[1] UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
      AX NOMINAL +TOL -TOL BONUS MEAS DEV OUTTOL
      X 4.2910 4.2910 0.0000
      Y 1.2208 -6.7792 -8.0000
      DF 0.6457 0.0000 0.0000 0.6457 0.0000 0.0000 #--------
      TP RFS 0.0000 0.0000 16.0000 16.0000 16.0000 -------->
      END OF DIMENSION BUBBLE_2
      DIM BUBBLE_3= POSITION OF CIRCLE CIR3[1] UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
      AX NOMINAL +TOL -TOL BONUS MEAS DEV OUTTOL
      X 3.1496 3.1496 0.0000
      Y 0.7480 -7.2520 -8.0000
      DF 0.6457 0.0000 0.0000 0.6457 0.0000 0.0000 #--------
      TP RFS 0.0000 0.0000 16.0000 16.0000 16.0000 -------->
      END OF DIMENSION BUBBLE_3
      DIM BUBBLE_4= POSITION OF CIRCLE CIR4[1] UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
      AX NOMINAL +TOL -TOL BONUS MEAS DEV OUTTOL
      X 2.0082 2.0082 0.0000
      Y 1.2208 -6.7792 -8.0000
      DF 0.6457 0.0000 0.0000 0.6457 0.0000 0.0000 #--------
      TP RFS 0.0000 0.0000 16.0000 16.0000 16.0000 -------->
      END OF DIMENSION BUBBLE_4
      $$ NO,
      Print to file and excel truncated to save space
      ---------------
      IF_GOTO/QTY.INPUT==1,GOTO = PROGEND
      RECALL2 =ALIGNMENT/START,RECALL:USE_ACTIVE_ALIGNMENT(RECALL1),LIST=YE S
      ALIGNMENT/END
      FORMFEED/
      REPORT/LABEL, FILENAME= FILE_HEADER.LBL
      ASSIGN/SN2=SN.INPUT+1
      TRACEFIELD/DISPLAY=NO,REPORT=YES,DISPLAY MESSAGE=SERIAL NUMBER ; SERIAL NUMBER : SN2
      DIM BUBBLE_1= POSITION OF CIRCLE CIR1[2] UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
      AX NOMINAL +TOL -TOL BONUS MEAS DEV OUTTOL
      X 3.1496 3.1496 0.0000
      Y -5.6378 -5.6378 0.0000
      DF 2.3622 0.0000 0.0000 2.3622 0.0000 0.0000 #--------
      TP RFS 0.0000 0.0000 0.0000 0.0000 0.0000 #--------
      END OF DIMENSION BUBBLE_1
      DIM BUBBLE_2= POSITION OF CIRCLE CIR2[2] UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
      AX NOMINAL +TOL -TOL BONUS MEAS DEV OUTTOL
      X 4.2910 4.2910 0.0000
      Y -6.7792 -6.7792 0.0000
      DF 0.6457 0.0000 0.0000 0.6457 0.0000 0.0000 #--------
      TP RFS 0.0000 0.0000 0.0000 0.0000 0.0000 #--------
      END OF DIMENSION BUBBLE_2
      DIM BUBBLE_3= POSITION OF CIRCLE CIR3[2] UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
      AX NOMINAL +TOL -TOL BONUS MEAS DEV OUTTOL
      X 3.1496 3.1496 0.0000
      Y -7.2520 -7.2520 0.0000
      DF 0.6457 0.0000 0.0000 0.6457 0.0000 0.0000 #--------
      TP RFS 0.0000 0.0000 0.0000 0.0000 0.0000 #--------
      END OF DIMENSION BUBBLE_3
      DIM BUBBLE_4= POSITION OF CIRCLE CIR4[2] UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
      AX NOMINAL +TOL -TOL BONUS MEAS DEV OUTTOL
      X 2.0082 2.0082 0.0000
      Y -6.7792 -6.7792 0.0000
      DF 0.6457 0.0000 0.0000 0.6457 0.0000 0.0000 #--------
      TP RFS 0.0000 0.0000 0.0000 0.0000 0.0000 #--------
      END OF DIMENSION BUBBLE_4
      $$ NO,
      Print to file and excel truncated to save space
      ---------------
      RECALL3 =ALIGNMENT/START,RECALL:USE_PART_SETUP,LIST=YES
      ALIGNMENT/END
      LOOP/END
      PROGEND =LABEL/

      Comment


      • #4
        here is report running 1 part only
        Attached Files

        Comment


        • #5
          here is report with 2 parts run.
          Attached Files

          Comment


          • #6
            Are you pressing execute or using execute from cursor? I see an index of [2] on the BUBBLEs for a single run. I would think it should be [1]. A full execution should delete all prior looped commands. An execute from cursor does not delete things.

            Comment


            • #7
              Clear marks, mark all. Execute. From the start of the program.

              Comment


              • KIRBSTER269
                KIRBSTER269 commented
                Editing a comment
                How about you try just recalling alignments WITHOUT USE_ACTIVE_ALIGNMENT. Just Recall the alignment normally, and not sure the purpose of the RECALL 3 at the bottom is for? That's a useless line.

            • #8
              There's a lot going on here.

              I have had the most success recalling a common base/fixture alignment before loop start, just after loop start, and just before loop end... Then using "USE ACTIVE ALIGNMENT" on all aligns within the loop from that point forward, until the last alignment (recall common fixture align).

              Comment


              • #9
                Also, on your output dims, remove the array brackets if you can (not sure if that's an input static value you made, or something that the demon put in).
                DIM BUBBLE_1= POSITION OF CIRCLE CIR1[1] UNITS=IN ,$
                -------------------------------------------------------------- ^^^^ Remove These

                aah, so you have dim outputs set aside for each loop iteration?
                no nix that. just have ONE dim output without reference to loop iteration (array brackets). It will populate and report the dim's correctly once, per loop execution.
                Last edited by louisd; 11-18-2019, 11:55 AM.

                Comment


                • #10
                  its monday and i cant find the prog i posted yesterday so lets start fresh. PCD 2019 R1 SP5 OK here is a shorter less cluttered prg. using the "HexMI_DemoBlock_Large.IGS" cad my offset is +200mm in Y axis. running 2 parts no variables expect for the loop. loop IDs is checked.
                  clear marked, mark all, execute.

                  1 . I used a Readpoint at X0Y0Z0 named COMMON
                  2. I then recall that, before loop start and after.
                  3. program runs dcc align (recalling the "common" align) Z plane, Y plane, X point to align and then measures 5 circles.
                  4. recall active align. dimension circle 1 - 5 with the "[1]"
                  5. formfeed followed by recall active align
                  6. dimension circle 1 - 5 with the "[2]"

                  when i select view "report mode" 1st part TP is 400.00 2nd part is 800.00
                  when i select view "last exe report" 1st part TP is 400.00 2nd part is 800.00

                  same process as above but uncheck loop IDs
                  when i select view "report mode" 1st part TP is 400.00 2nd part is 800.00
                  when i select view "last exe report" 1st part TP is 0.00 2nd part is 400.00

                  in both cases if i go back and retype the "1" and "2" in the "[]" everything resets to nominal.
                  Attached Files
                  Last edited by Ncogneto; 11-18-2019, 12:33 PM. Reason: added reports

                  Comment


                  • #11
                    STARTUP =ALIGNMENT/START,RECALL:USE_PART_SETUP,LIST=YES
                    ALIGNMENT/END
                    MODE/MANUAL
                    MANRETRACT/0.051
                    FLY/ON
                    FORMAT/TEXT,OPTIONS, ,HEADINGS,SYMBOLS, ;NOM,TOL,MEAS,DEV,OUTTOL, ,
                    LOADPROBE/2X80
                    TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
                    TRACEFIELD/DISPLAY=NO,REPORT=YES,DISPLAY MESSAGE=SERIAL NUMBER ; SERIAL NUMBER : SN.INPUT
                    STARTPNT =FEAT/POINT,CARTESIAN
                    THEO/<0,0,0>,<0,0,1>
                    ACTL/<0,0,0>,<0,0,1>
                    READPOINT/
                    MODE/DCC
                    COMMON =ALIGNMENT/START,RECALL:STARTUP,LIST=YES
                    ALIGNMENT/TRANS,XAXIS,STARTPNT
                    ALIGNMENT/TRANS,YAXIS,STARTPNT
                    ALIGNMENT/TRANS,ZAXIS,STARTPNT
                    ALIGNMENT/END
                    RECALL/ALIGNMENT,INTERNAL,COMMON
                    LOOPSTART =LOOP/START,ID=NO,NUMBER=2,START=1,SKIP=,
                    OFFSET:XAXIS=0,YAXIS=200,ZAXIS=0,ANGLE=0
                    RECALL/ALIGNMENT,INTERNAL,COMMON
                    PLNZAXIS =FEAT/CONTACT/PLANE/DEFAULT,CARTESIAN,TRIANGLE,LEAST_SQR
                    THEO/<126.846,19.283,0>,<0,0,1>
                    ACTL/<126.846,19.283,0>,<0,0,1>
                    TARG/<126.846,19.283,0>,<0,0,1>
                    ANGLE VEC=<1,0,0>,SQUARE
                    SHOW FEATURE PARAMETERS=NO
                    SHOW CONTACT PARAMETERS=YES
                    NUMHITS=3,NUMROWS=3
                    SPACER=0
                    AVOIDANCE MOVE=BOTH,DISTANCE=10
                    SHOW HITS=NO
                    PLNYAXIS =FEAT/CONTACT/PLANE/DEFAULT,CARTESIAN,TRIANGLE,LEAST_SQR
                    THEO/<79.697,0,-18.718>,<0,-1,0>
                    ACTL/<79.697,0,-18.718>,<0,-1,0>
                    TARG/<79.697,0,-18.718>,<0,-1,0>
                    ANGLE VEC=<1,0,0>,SQUARE
                    SHOW FEATURE PARAMETERS=NO
                    SHOW CONTACT PARAMETERS=YES
                    NUMHITS=3,NUMROWS=3
                    SPACER=0
                    AVOIDANCE MOVE=BOTH,DISTANCE=10
                    SHOW HITS=NO
                    PNTXAXIS =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                    THEO/<0,7.854,-8.742>,<-1,0,0>
                    ACTL/<0,7.854,-8.742>,<-1,0,0>
                    TARG/<0,7.854,-8.742>,<-1,0,0>
                    SNAP=NO
                    SHOW FEATURE PARAMETERS=NO
                    SHOW CONTACT PARAMETERS=YES
                    AVOIDANCE MOVE=BOTH,DISTANCE=10
                    SHOW HITS=NO
                    DCC_ALIGN =ALIGNMENT/START,RECALL:COMMON,LIST=YES
                    ALIGNMENT/LEVEL,ZPLUS,PLNZAXIS
                    ALIGNMENT/TRANS,ZAXIS,PLNZAXIS
                    ALIGNMENT/ROTATE,YMINUS,TO,PLNYAXIS,ABOUT,ZPLUS
                    ALIGNMENT/TRANS,YAXIS,PLNYAXIS
                    ALIGNMENT/TRANS,XAXIS,PNTXAXIS
                    ALIGNMENT/END
                    CIR1 =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                    THEO/<80,-140,0>,<0,0,1>,60
                    ACTL/<80,-140,0>,<0,0,1>,60
                    TARG/<80,-140,0>,<0,0,1>
                    START ANG=0,END ANG=360
                    ANGLE VEC=<1,0,0>
                    DIRECTION=CCW
                    SHOW FEATURE PARAMETERS=NO
                    SHOW CONTACT PARAMETERS=YES
                    NUMHITS=7,DEPTH=5,PITCH=0
                    SAMPLE METHOD=SAMPLE_HITS
                    SAMPLE HITS=3,SPACER=0
                    AVOIDANCE MOVE=BOTH,DISTANCE=10
                    FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                    SHOW HITS=NO
                    CIR2 =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                    THEO/<39,-140,0>,<0,0,1>,16.4
                    ACTL/<39,-140,0>,<0,0,1>,16.4
                    TARG/<39,-140,0>,<0,0,1>
                    START ANG=0,END ANG=360
                    ANGLE VEC=<1,0,0>
                    DIRECTION=CCW
                    SHOW FEATURE PARAMETERS=NO
                    SHOW CONTACT PARAMETERS=YES
                    NUMHITS=7,DEPTH=5,PITCH=0
                    SAMPLE METHOD=SAMPLE_HITS
                    SAMPLE HITS=3,SPACER=0
                    AVOIDANCE MOVE=BOTH,DISTANCE=10
                    FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                    SHOW HITS=NO
                    CIR3 =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                    THEO/<80,-99,0>,<0,0,1>,16.4
                    ACTL/<80,-99,0>,<0,0,1>,16.4
                    TARG/<80,-99,0>,<0,0,1>
                    START ANG=0,END ANG=360
                    ANGLE VEC=<1,0,0>
                    DIRECTION=CCW
                    SHOW FEATURE PARAMETERS=NO
                    SHOW CONTACT PARAMETERS=YES
                    NUMHITS=7,DEPTH=5,PITCH=0
                    SAMPLE METHOD=SAMPLE_HITS
                    SAMPLE HITS=3,SPACER=0
                    AVOIDANCE MOVE=BOTH,DISTANCE=10
                    FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                    SHOW HITS=NO
                    CIR4 =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                    THEO/<121,-140,0>,<0,0,1>,16.4
                    ACTL/<121,-140,0>,<0,0,1>,16.4
                    TARG/<121,-140,0>,<0,0,1>
                    START ANG=0,END ANG=360
                    ANGLE VEC=<1,0,0>
                    DIRECTION=CCW
                    SHOW FEATURE PARAMETERS=NO
                    SHOW CONTACT PARAMETERS=YES
                    NUMHITS=7,DEPTH=5,PITCH=0
                    SAMPLE METHOD=SAMPLE_HITS
                    SAMPLE HITS=3,SPACER=0
                    AVOIDANCE MOVE=BOTH,DISTANCE=10
                    FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                    SHOW HITS=NO
                    CIR5 =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                    THEO/<80,-181,0>,<0,0,1>,16.4
                    ACTL/<80,-181,0>,<0,0,1>,16.4
                    TARG/<80,-181,0>,<0,0,1>
                    START ANG=0,END ANG=360
                    ANGLE VEC=<1,0,0>
                    DIRECTION=CCW
                    SHOW FEATURE PARAMETERS=NO
                    SHOW CONTACT PARAMETERS=YES
                    NUMHITS=7,DEPTH=5,PITCH=0
                    SAMPLE METHOD=SAMPLE_HITS
                    SAMPLE HITS=3,SPACER=0
                    AVOIDANCE MOVE=BOTH,DISTANCE=10
                    FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                    SHOW HITS=NO
                    ACTIVE1 =ALIGNMENT/START,RECALL:USE_ACTIVE_ALIGNMENT(DCC_ALIGN),LIST= YES
                    ALIGNMENT/END
                    COMMENT/REPT,
                    part 1
                    -------------------
                    DIM BUBBLE_1= POSITION OF CIRCLE CIR1[1] UNITS=MM ,$
                    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
                    AX NOMINAL +TOL -TOL BONUS MEAS DEV OUTTOL
                    X 80.000 80.000 0.000
                    Y 60.000 -140.000 -200.000
                    DF 60.000 0.000 0.000 60.000 0.000 0.000 #--------
                    TP RFS 0.000 0.000 400.000 400.000 400.000 -------->
                    END OF DIMENSION BUBBLE_1
                    DIM BUBBLE_3= POSITION OF CIRCLE CIR2[1] UNITS=MM ,$
                    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
                    AX NOMINAL +TOL -TOL BONUS MEAS DEV OUTTOL
                    X 39.000 39.000 0.000
                    Y 60.000 -140.000 -200.000
                    DF 16.400 0.000 0.000 16.400 0.000 0.000 #--------
                    TP RFS 0.000 0.000 400.000 400.000 400.000 -------->
                    END OF DIMENSION BUBBLE_3
                    DIM BUBBLE_4= POSITION OF CIRCLE CIR3[1] UNITS=MM ,$
                    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
                    AX NOMINAL +TOL -TOL BONUS MEAS DEV OUTTOL
                    X 80.000 80.000 0.000
                    Y 101.000 -99.000 -200.000
                    DF 16.400 0.000 0.000 16.400 0.000 0.000 #--------
                    TP RFS 0.000 0.000 400.000 400.000 400.000 -------->
                    END OF DIMENSION BUBBLE_4
                    DIM BUBBLE_5= POSITION OF CIRCLE CIR4[1] UNITS=MM ,$
                    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
                    AX NOMINAL +TOL -TOL BONUS MEAS DEV OUTTOL
                    X 121.000 121.000 0.000
                    Y 60.000 -140.000 -200.000
                    DF 16.400 0.000 0.000 16.400 0.000 0.000 #--------
                    TP RFS 0.000 0.000 400.000 400.000 400.000 -------->
                    END OF DIMENSION BUBBLE_5
                    DIM BUBBLE_6= POSITION OF CIRCLE CIR5[1] UNITS=MM ,$
                    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
                    AX NOMINAL +TOL -TOL BONUS MEAS DEV OUTTOL
                    X 80.000 80.000 0.000
                    Y 19.000 -181.000 -200.000
                    DF 16.400 0.000 0.000 16.400 0.000 0.000 #--------
                    TP RFS 0.000 0.000 400.000 400.000 400.000 -------->
                    END OF DIMENSION BUBBLE_6
                    FORMFEED/

                    Comment


                    • #12
                      ACTIVE2 =ALIGNMENT/START,RECALL:USE_ACTIVE_ALIGNMENT(ACTIVE1),LIST=YE S
                      ALIGNMENT/END
                      $$ NO,
                      2ND PART HERE
                      COMMENT/REPT,
                      part 2
                      -------------------
                      DIM BUBBLE_1= POSITION OF CIRCLE CIR1[2] UNITS=MM ,$
                      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
                      AX NOMINAL +TOL -TOL BONUS MEAS DEV OUTTOL
                      X 80.000 80.000 0.000
                      Y 260.000 -140.000 -400.000
                      DF 60.000 0.000 0.000 60.000 0.000 0.000 #--------
                      TP RFS 0.000 0.000 800.000 800.000 800.000 -------->
                      END OF DIMENSION BUBBLE_1
                      DIM BUBBLE_3= POSITION OF CIRCLE CIR2[2] UNITS=MM ,$
                      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
                      AX NOMINAL +TOL -TOL BONUS MEAS DEV OUTTOL
                      X 39.000 39.000 0.000
                      Y 260.000 -140.000 -400.000
                      DF 16.400 0.000 0.000 16.400 0.000 0.000 #--------
                      TP RFS 0.000 0.000 800.000 800.000 800.000 -------->
                      END OF DIMENSION BUBBLE_3
                      DIM BUBBLE_4= POSITION OF CIRCLE CIR3[2] UNITS=MM ,$
                      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
                      AX NOMINAL +TOL -TOL BONUS MEAS DEV OUTTOL
                      X 80.000 80.000 0.000
                      Y 301.000 -99.000 -400.000
                      DF 16.400 0.000 0.000 16.400 0.000 0.000 #--------
                      TP RFS 0.000 0.000 800.000 800.000 800.000 -------->
                      END OF DIMENSION BUBBLE_4
                      DIM BUBBLE_5= POSITION OF CIRCLE CIR4[2] UNITS=MM ,$
                      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
                      AX NOMINAL +TOL -TOL BONUS MEAS DEV OUTTOL
                      X 121.000 121.000 0.000
                      Y 260.000 -140.000 -400.000
                      DF 16.400 0.000 0.000 16.400 0.000 0.000 #--------
                      TP RFS 0.000 0.000 800.000 800.000 800.000 -------->
                      END OF DIMENSION BUBBLE_5
                      DIM BUBBLE_6= POSITION OF CIRCLE CIR5[2] UNITS=MM ,$
                      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
                      AX NOMINAL +TOL -TOL BONUS MEAS DEV OUTTOL
                      X 80.000 80.000 0.000
                      Y 219.000 -181.000 -400.000
                      DF 16.400 0.000 0.000 16.400 0.000 0.000 #--------
                      TP RFS 0.000 0.000 800.000 800.000 800.000 -------->
                      END OF DIMENSION BUBBLE_6
                      RECALL/ALIGNMENT,INTERNAL,COMMON
                      LOOP/END

                      Comment


                      • #13
                        Found this in Help, Maybe check this also.

                        Capture.JPG
                        (In Memory of my Loving wife, "Ronda" who I lost March 7, 2016. I love you baby.)
                        They say "Nobody's Perfect." I must be Nobody.

                        Comment


                        • #14
                          Originally posted by louisd View Post
                          Also, on your output dims, remove the array brackets if you can (not sure if that's an input static value you made, or something that the demon put in).
                          DIM BUBBLE_1= POSITION OF CIRCLE CIR1[1] UNITS=IN ,$
                          -------------------------------------------------------------- ^^^^ Remove These

                          aah, so you have dim outputs set aside for each loop iteration?
                          no nix that. just have ONE dim output without reference to loop iteration (array brackets). It will populate and report the dim's correctly once, per loop execution.
                          same results
                          Attached Files

                          Comment


                          • #15
                            What Louisd said about outputs as well I am not sure if recall alignment maybe messing with you...should not be necessary
                            also last alignment does not show a feature in x translation in your code and PNT2DCC I highlighted in red, some thing looks wrong nominal to actual and is in same area of reporting error Y axis...so not sure what

                            I am of the opinion that your last alignment should have all 6 degrees of freedom defined. Loops do some fun things and not always what you think. I was told a few years ago that the looping was essentially broken and that the preferred and recommended is to use external alignments.
                            HTH


                            ADCC2 =ALIGNMENT/START,RECALL:ADCC1,LIST=YES
                            ALIGNMENT/ROTATE,YMINUS,TO,PLN2DCC,ABOUT,ZPLUS
                            ALIGNMENT/TRANS,YAXIS,PLN2DCC
                            ALIGNMENT/END
                            PNT2DCC =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                            THEO/<0,-7.4942,-0.2764>,<-1,0,0>
                            ACTL/<0,0.5058,-0.2764>,<-1,0,0>
                            TARG/<0,-7.4942,-0.2764>,<-1,0,0>
                            SNAP=YES
                            SHOW FEATURE PARAMETERS=NO
                            SHOW CONTACT PARAMETERS=YES
                            AVOIDANCE MOVE=NO,DISTANCE=0.3937
                            SHOW HITS=NO
                            ADCC3 =ALIGNMENT/START,RECALL:ADCC2,LIST=YES
                            ALIGNMENT/TRANS,XAXIS,
                            ALIGNMENT/END
                            MOVE/CLEARPLANE

                            Comment

                            Related Topics

                            Collapse

                            Working...
                            X