Programing

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

  • Programing

    I'm a new user and the guy that knows how to operate the cmm is gone. So this is probably a stupid question.. I have written programs and they still work. I'm trying to write a program now and it isn't working on any part I try, even the same part I programed earlier. I do a pane circle circle alignment, measure some circles and then measure a plane. When I run the program the first circles are measured properly then when it goes to measure the plane The cmm wants to go about .400 past the hit point. Can someone help me figure this out?

    Thanks

    I'm using PC-Dmis V4.0 & Brown & Sharpe Xcel 9159

  • #2
    can you post your program for us to look at...that will help us to see what you are doing .

    just copy and paste the program into a reply here

    also what version of PCDMIS are you running?

    bob
    Which one gets ridden today? MPH vs MPG..tough choice, both are FUN
    sigpic

    Starrett RGDC 4028-24 :alien:
    Demon vintages 3.7, 4.1, 4.2, 4.3, 2009

    Comment


    • #3
      Unfortunately your description of your problem is too vague for anyone to assist you. Posting code from your program is a good idea.

      Depending on how many new programs you will need within the next business year, you may want to talk to your boss about 1 of 2 things : Getting a couple of days of on site Pc-dmis training for programming, or having the programs written outside the company. Either one is a good option, again, depending on how many need to be written.

      If you decide this might be a good idea, contact me, in the mean time, post your program code here so we can get you going.
      Jim Jewell

      Comment


      • #4
        Look at the THEO/0,0,0,-1,0,0 change the "-" or add it depending, that is the IJK values and tells the cmm which direction to probe in. in the EXAMPLE I just posted it is probeing into the X. Which means the probe will travel to the right looking for the feature to hit. If I changed it to THEO/0,0,0,1,0,0 it will travle to the left to find the feature. If your plane is flat to the table you will want it to look kinda like THEO/0,0,0,0,0,1
        I talk dirty to my cmm. Justn

        Comment


        • #5
          Are you using clear planes? I have found that when that happens, the software is picking up the active clear plane from another work plane causing the probe to want to "run through" the hit spot. I spoke to Brown and Sharp and they said it is something "within" the software and to make sure a prior existing clear plane is not showing up in the program where the probe is crashing and to also make sure the active clear plane is turned "off" for that measurement. Hope that helps...

          Comment


          • #6
            Have you created a line from the circles to establish a direction vector ? Post more info and someone will help. Where are you Located maybe somone local can help you in person. I think some training is needed, even if you have a 150 IQ. I am sure none of us do or we would have been smart enough to head in some other direction
            Tolerance challenged ... Living in the world of unseen lines.

            This software isn't buggy its an infestation

            Comment


            • #7
              Stats Count : 1

              Startup =alignment/start,recall:,list=yes
              Alignment/end
              Mode/manual
              Format/text,options, ,headings,symbols, ;nom,tol,meas,dev,outtol, ,
              Loadprobe/4 X 40
              Tip/t1a0b0, Shankijk=0, 0, 1, Angle=0
              Pln1 =feat/plane,rect,triangle
              Theo/13.6478,27.7504,-25.8171,-0.0011875,-0.0093502,0.9999556
              Actl/13.6478,27.7504,-25.8171,-0.0011875,-0.0093502,0.9999556
              Meas/plane,3
              Hit/basic,normal,18.1101,31.8307,-25.7737,-0.0011875,-0.0093502,0.9999556,18.1102,31.8314,-25.7737,use Theo = Yes
              Hit/basic,normal,8.9803,31.85,-25.7844,-0.0011875,-0.0093502,0.9999556,8.9804,31.8507,-25.7843,use Theo = Yes
              Hit/basic,normal,13.8527,19.5683,-25.8934,-0.0011875,-0.0093502,0.9999556,13.8528,19.5691,-25.8934,use Theo = Yes
              Endmeas/
              Cir1 =feat/circle,rect,in,least_sqr
              Theo/13.5488,26.4993,-26.252,0,0,1,13.2835
              Actl/13.5488,26.4993,-26.252,0,0,1,13.2835
              Meas/circle,3,workplane
              Hit/basic,normal,14.0741,33.12,-26.2519,-0.0800469,-0.9967911,0,14.0804,33.1198,-26.2519,use Theo = Yes
              Hit/basic,normal,19.2735,23.1531,-26.2519,-0.8602729,0.5098338,0,19.2625,23.1131,-26.2519,use Theo = Yes
              Hit/basic,normal,7.7508,23.28,-26.2522,0.8714405,0.4905012,0,7.7609,23.2415,-26.2522,use Theo = Yes
              Endmeas/
              Tip/t1a90b-180, Shankijk=0, -1, 0, Angle=180
              Workplane/yplus
              Cir2 =feat/circle,rect,in,least_sqr
              Theo/13.648,15.322,-24.3112,0,1,0,5.7467
              Actl/13.648,15.322,-24.3112,0,1,0,5.7467
              Meas/circle,3,workplane
              Hit/basic,normal,13.4546,15.3216,-21.4445,0.0691978,0,-0.997603,13.4492,15.3216,-21.4447,use Theo = Yes
              Hit/basic,normal,16.3517,15.3224,-25.2701,-0.9392946,0,0.3431118,16.3469,15.3224,-25.2971,use Theo = Yes
              Hit/basic,normal,10.9444,15.3222,-25.2703,0.939279,0,0.3431545,10.9491,15.3222,-25.2972,use Theo = Yes
              Endmeas/
              Mode/dcc
              A1 =alignment/start,recall:startup,list=yes
              Alignment/level,zplus,pln1
              Alignment/rotate_circle,yminus,to,cir1,and,cir2,about,zplus
              Alignment/trans,xaxis,cir1
              Alignment/trans,yaxis,cir1
              Alignment/trans,zaxis,pln1
              Alignment/end
              Move/point,normal,0.0769,-11.157,1.9222
              Pln2 =feat/plane,rect,triangle
              Theo/-0.0951,-9.4125,1.5597,-0.0019354,-0.9999976,-0.0009974
              Actl/-0.0945,-9.4126,1.5588,-0.0019576,-0.9999976,-0.0009777
              Meas/plane,4
              Hit/basic,normal,1.0036,-9.4165,3.2437,-0.0019354,-0.9999976,-0.0009975,1.0035,-9.4165,3.2435,use Theo = Yes
              Hit/basic,normal,-1.3762,-9.4116,3.2467,-0.0019354,-0.9999976,-0.0009975,-1.3761,-9.4116,3.2464,use Theo = Yes
              Hit/basic,normal,-1.3802,-9.4085,-0.1257,-0.0019354,-0.9999976,-0.0009975,-1.38,-9.4085,-0.1257,use Theo = Yes
              Hit/basic,normal,1.3746,-9.4136,-0.1292,-0.0019354,-0.9999976,-0.0009975,1.3746,-9.4137,-0.1292,use Theo = Yes
              Endmeas/
              Move/point,normal,-0.0155,-9.8754,1.6514
              2.255 Cyl1 =feat/cylinder,rect,in,least_sqr
              Theo/0.0051,-8.6062,1.624,0.0022,0.9999971,-0.001,2.255,0.9767
              Actl/0.0054,-8.6062,1.6236,0.0029958,0.9999938,-0.0018287,2.2583,0.9784
              Meas/cylinder,15
              Hit/basic,normal,-1.1235,-9.0921,1.6245,0.9999976,-0.0022,0,-1.1251,-9.0918,1.6249,use Theo = Yes
              Hit/basic,normal,-0.3444,-9.0927,2.6968,0.3090142,-0.0016309,-0.951056,-0.3446,-9.0924,2.698,use Theo = Yes
              Hit/basic,normal,0.9162,-9.0959,2.2872,-0.8090163,0.0011921,-0.587785,0.9174,-9.0962,2.2881,use Theo = Yes
              Hit/basic,normal,0.9162,-9.0972,0.9618,-0.8090137,0.0023676,0.587785,0.9178,-9.0975,0.9608,use Theo = Yes
              Hit/basic,normal,-0.3444,-9.0949,0.5522,0.3090183,0.0002712,0.951056,-0.3451,-9.0951,0.5502,use Theo = Yes
              Hit/basic,normal,-0.3433,-8.6065,0.5517,0.3090183,0.0002712,0.951056,-0.3439,-8.6068,0.5499,use Theo = Yes
              Hit/basic,normal,0.9173,-8.6089,0.9613,-0.8090137,0.0023676,0.587785,0.9191,-8.6093,0.9602,use Theo = Yes
              Hit/basic,normal,0.9173,-8.6075,2.2867,-0.8090163,0.0011921,-0.587785,0.9195,-8.6075,2.2884,use Theo = Yes
              Hit/basic,normal,-0.3433,-8.6044,2.6963,0.3090142,-0.0016309,-0.951056,-0.3442,-8.604,2.6991,use Theo = Yes
              Hit/basic,normal,-1.1224,-8.6037,1.624,0.9999976,-0.0022,0,-1.1248,-8.6033,1.6243,use Theo = Yes
              Hit/basic,normal,-1.1213,-8.1154,1.6235,0.9999976,-0.0022,0,-1.1237,-8.1151,1.6236,use Theo = Yes
              Hit/basic,normal,-0.3422,-8.116,2.6958,0.3090142,-0.0016309,-0.951056,-0.3411,-8.1158,2.6927,use Theo = Yes
              Hit/basic,normal,0.9183,-8.1192,2.2862,-0.8090163,0.0011921,-0.587785,0.9206,-8.1195,2.288,use Theo = Yes
              Hit/basic,normal,0.9183,-8.1205,0.9608,-0.8090137,0.0023676,0.587785,0.9197,-8.1209,0.96,use Theo = Yes
              Hit/basic,normal,-0.3422,-8.1182,0.5512,0.3090183,0.0002712,0.951056,-0.3427,-8.1185,0.5505,use Theo = Yes
              Endmeas/
              Move/point,normal,-0.0539,-9.193,1.599
              Move/point,normal,-0.0755,-11.5721,1.6212
              Pln3 =feat/plane,rect,triangle
              Theo/-0.0467,-10.5626,1.6102,-0.0021368,-0.9999974,-0.0008513
              Actl/-0.0461,-10.5626,1.6093,-0.0021128,-0.9999974,-0.0008727
              Meas/plane,4
              Hit/basic,normal,1.3411,-10.5679,3.9771,-0.0021366,-0.9999974,-0.0008514,1.341,-10.5679,3.977,use Theo = Yes
              Hit/basic,normal,-1.3958,-10.5614,3.9805,-0.0021366,-0.9999974,-0.0008514,-1.3957,-10.5615,3.9803,use Theo = Yes
              Hit/basic,normal,-1.4016,-10.5581,-0.7583,-0.0021366,-0.9999974,-0.0008514,-1.4015,-10.558,-0.7583,use Theo = Yes
              Hit/basic,normal,1.2718,-10.563,-0.7616,-0.0021366,-0.9999974,-0.0008514,1.2717,-10.563,-0.7617,use Theo = Yes
              Endmeas/
              Move/point,normal,0.2404,-12.5442,1.6228
              Move/point,normal,0.7215,-12.3965,18.1171
              Tip/t1a0b0, Shankijk=0.0013, 0.0093, 1, Angle=-0.5221
              Move/point,normal,4.2702,4.8177,12.1593
              Move/point,normal,4.3846,5.1485,1.4949
              Move/point,normal,4.3739,3.9603,1.5059
              Move/point,normal,4.3885,5.5592,1.4909
              Pln4 =feat/plane,rect,triangle
              Theo/0.0473,1.4579,0.0003,0.0000217,-0.000018,1
              Actl/0.0473,1.4579,0.0003,0.0000217,-0.000018,1
              Meas/plane,3
              Hit/basic,normal,4.3866,5.5454,0.0003,-0.0000217,0.000018,-1,4.3867,5.5462,0.1572,use Theo = Yes
              Hit/basic,normal,-3.9267,5.8032,0.0005,-0.0000217,0.000018,-1,-3.9266,5.804,0.1574,use Theo = Yes
              Hit/basic,normal,-0.3183,-6.977,0.0002,-0.0000217,0.000018,-1,-0.3182,-6.9763,0.1571,use Theo = Yes
              Endmeas/
              Move/point,normal,-0.2878,-3.7252,0.6841

              Comment


              • #8
                Plane 1 and plane 4 are the same plane. The probe wants to drive down past the plane. I changed pln4 "k" from 1 to -1 and selected regenerate hits and I got the same thing.

                Also I put in 3 move points in front of pln4 so I could have time to slow down the probe.
                Last edited by Zamlight; 01-16-2007, 06:41 PM.

                Comment


                • #9
                  I think I got it figured out. After I did the alignment I figured the software was smart enough to change the active plane... I guess the software thinks I was supposed to be smart enough to do it.

                  Comment


                  • #10
                    Originally posted by Zamlight View Post
                    I think I got it figured out. After I did the alignment I figured the software was smart enough to change the active plane... I guess the software thinks I was supposed to be smart enough to do it.

                    The only thing this software is smart enough to do on its own is Crash.
                    sigpic

                    B&S Global 544
                    Using 3.7mr3


                    Peace
                    Greg


                    Nothin left ta dew but :) :) :) !

                    Comment


                    • #11
                      Originally posted by Zamlight View Post
                      Pln4 =feat/plane,rect,triangle
                      Theo/0.0473,1.4579,0.0003,0.0000217,-0.000018,1
                      Actl/0.0473,1.4579,0.0003,0.0000217,-0.000018,1
                      Meas/plane,3
                      Hit/basic,normal,4.3866,5.5454,0.0003,-0.0000217,0.000018,-1,4.3867,5.5462,0.1572,use Theo = Yes
                      Hit/basic,normal,-3.9267,5.8032,0.0005,-0.0000217,0.000018,-1,-3.9266,5.804,0.1574,use Theo = Yes
                      Hit/basic,normal,-0.3183,-6.977,0.0002,-0.0000217,0.000018,-1,-0.3182,-6.9763,0.1571,use Theo = Yes
                      Endmeas/
                      Move/point,normal,-0.2878,-3.7252,0.6841
                      Looks like you target vector and hit vectors are conflicting. It's also easier to troubleshoot your programs by going through and doing a little house keeping by setting your theoriticals to nominal and making the vectors 0,0,1 etc.
                      sigpic

                      Comment


                      • #12
                        djay is right, also does not matter what working plane you are in as long as you make the hit vectors right.

                        Theo/0.0473,1.4579,0.0003,0.0000217,-0.000018,1

                        Controls the direction of the probe movement, since you are not making it zeros you are not getting good hits or valid data.

                        change that line to read

                        Theo/0,1.45,0,0,0,1

                        But then I never use auto plane, I take hits and construct a plane. If I took your job tommorow I would delete all your programs and start from scratch. Sorry...........
                        I talk dirty to my cmm. Justn

                        Comment


                        • #13
                          I can understand that. I didn't know what a CMM was 60 days ago and the training I got was from a pdf file. But I got the parts measured and now I know where to find Theo/...

                          Comment


                          • #14
                            Originally posted by Zamlight View Post
                            I can understand that. I didn't know what a CMM was 60 days ago and the training I got was from a pdf file. But I got the parts measured and now I know where to find Theo/...
                            Don't let justncredible get you down. He is the all knowing new forum guru (self appointed) and the rest just follow on his every word. Keep asking question and if justncredible can't answer, then one of the former forum gurus/hoes will help you
                            sigpic

                            James Mannes

                            Comment


                            • #15
                              Originally posted by justncredible View Post
                              djay is right, also does not matter what working plane you are in as long as you make the hit vectors right.

                              Theo/0.0473,1.4579,0.0003,0.0000217,-0.000018,1

                              Controls the direction of the probe movement, since you are not making it zeros you are not getting good hits or valid data.

                              change that line to read

                              Theo/0,1.45,0,0,0,1

                              But then I never use auto plane, I take hits and construct a plane. If I took your job tommorow I would delete all your programs and start from scratch. Sorry...........

                              The amount of error for those vectors, even if using a 6mm ball probe is 0.00013 in one axis and 0.000108 in the other, and those are METRIC values. Gee, I don't know of ANY machine that is going to see that amount of error. I don't even know of one that can see 10 times that error.
                              sigpic
                              Originally posted by AndersI
                              I've got one from September 2006 (bug ticket) which has finally been fixed in 2013.

                              Comment

                              Related Topics

                              Collapse

                              Working...
                              X