Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Guess_who

Customers
  • Posts

    336
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by Guess_who

  1. Ahaslam,

            Thanks for the reply. But I don't think I explain this well enough. In your example,  you have a know sphere diameter, when I'm finding the centerline of the nutting axis, I won't know the exact radius.  For example, let say I have 4 points in space; 

    point 1 X0.|Y12.| Z3.0,   point 2  X8|Y1|Z2,    point 3  X-2|Y-6|Z-3 ,   point 4  X -11|Y2|Z4  

    Now given those 4 points I should be able to calculate the Center swing as   X-1.5879|Y2.5125|Z1.6583 - And I only know that because of those handy, dandy calculators on the interwebz. And then I can compare that to my parameter 19700, 19701, and 19702 (X, Y, Z, Centerline) and make adjustments automatically.

  2. 8 minutes ago, ahaslam said:

    I'm a little confused. Are you just looking for a Macro to find the center of a sphere? Will you be running vectors parallel to an axis (such as in z) and are your machines a table-table configuration? Also, how close will the repositioning of the tooling ball be? +/- .125? 

     

    Actually, I'm looking for the math to solve for center of a sphere given 4 points that can be done using a macro in the machine. I'm capable of writing the macro, I just don't understand the math.

    Yes, our configuration is table/table. As far as the positioning, I would do it similar to how the MX-520 does it. We place the sphere at approximately the 12  O'Clock position. Step one would be to find the location and set an offset, then do the probe checks.

  3. 56 minutes ago, jlw™ said:

    that might be kinda small to get the results you need.  worth trying tho.

    give me a few days (if you got it) and I'll send you something.

     
     

    We have plenty of time. This is more of a learning experience, but something that can be useful. And I guess I didn't think of the small sample size. I guess I could run 2 sets of 4 and average.

     

    43 minutes ago, huskermcdoogle said:

    So, I am sure you already know this, but it is all about tracking the error vector.  If you don't mind it taking a little bit longer execution wise, do it in two steps.  This way you are only doing one axis transformation at a time which is easy to accomplish long hand.  No need to get all fancy and do it with only 4 measured points.  Find the tilt, then find the rotate.  Use a pocket measure function on the waistline of the sphere, single surface the top, then interate until you pass a repeating trap that checks to make sure your measurement repeats to a given tolerance.  With a strain gage probe, I would guess you will be good on the second go around.  If you want to make sure it is perfect, index the spindle 180 and hit it again to take out probe error, by averaging the two results.  Then move onto the next point.

     

    That's pretty much what we do now, but we don't really have it automated. It takes a while to run, but probably more accurate. I just noticed the MX-520 only uses a few points and thought, hey, I wanna do that. 

  4. They don't change by much. But the operator will notice some positions not holding. Could be someone bumped the fixture or something. Anyway, to determine if we lost centerline, we have to do it the old fashioned way. Which we could automate, but I was thinking we should be able to do it with just 4 points.

    We actually already own Axisset that we use in our Matsuura MX520. That's where I got the idea. I already ran it past the boss to buy more. But we have 5 more Makino D500's 5th axis machines and two Jidic 5th axis coming in a month or so. Starts to get expensive.

    Plus it's sounds fun to try to get it to work. :lol:

  5. I'm looking for some help writing a Fanuc Macro to calculate the center X, Y, Z position of a sphere using 4 points in space on a 5th axis Makino D500

    I found some information online, but the formulas I'm finding use matrix math. Which I know very little about. My goal it to get the math worked out to put it in a fanuc macro long hand. There is no matrix function in Fanuc 31i as far as I know. 

    The point of this is to give the operator the ability to run this program and adjust the centerline of the 5th axis swing using parameters 19700, 19701, etc.

    And help is appreciated.

    Thanks

     

  6. Can I ask why do you want to prevent this? This can cause some issues. For example, if you're at 350 deg, and want to take the long way around to 10 deg, how would the machine know which way to go?  With wind up, it's never a problem

     

    But, that being said, in the control definition there is a section under the c-axis that looks like this.

     

    post-1192-0-93572300-1478041443_thumb.jpg

     

    Or there is a section in the post that looks similar to this;

     

    sang_output  : 0     #Angle output options, secondary
                         #0 = Normal angle output
                         #1 = Signed absolute output, 0 - 360
                         #2 = Implied shortest direction absolute output, 0 - 360

  7. So you can create another variable with the correct preceding characters and transfer to that when needed. Something like below.

     

    Format section:

    fmt  "B" 11 cabs        #C axis position

    fmt  "PC=" 11 cabs_calc        #C axis position calculation

    fmt  "PA=" 11 aabs_calc        #A axis position calculation

     

    Then before you use it you can;

    cabs_calc = cabs    ( this transfer the value into cabs_calc with the PC= preceding letters )

    aabs_calc = ????    (this does the same thing for the A axis but I wasn't sure how your axis is defined, hence the ????)

     

    Then;

     

    pcan1, pbld, n$, "CALL 0088", *cabs_calc, *aabs_calc, "PH=1 PP=100", e$

     

     

    Does this make sense?

     

    There are other ways to accomplish this, and many people on here that are way better at this than me. Maybe they can give you another way or explain this better.

  8. Hi guys!

     

    I'm looking for a possibility to break my angle parameters in the postprocessor (p_out, s_out) to get the output value of it only in degrees without the letters C or A.

    For example: G0 C45. A54.736 <-----      with the post line like this  (pcan1, pbld, n$, *sg00,*p_out, *s_out, e$)

                          G0 45. 54.736      <-----      with the post line like this  (??????????????)

     

    There is no NCI output for them, I think they are calculated inside encrypted PSB file (correct me please), so how I can get does values as an output to my NC code, I need to put them to my angle recalculation macros line for 5x mill.

     

    Thank you for any advices!

     

     

    I'm not sure why you would want that, but you need to change the format. For example, the below example will change the 'cabs' variable to NOT post a 'B' prior to it.

     

    fmt  "B" 11 cabs        #C axis position

    To

    fmt  "" 11 cabs        #C axis position

  9. Well I think it's working as intended. If it kicked people off when other logged in, then you would constantly get kicked out when someone else logged in. And I know of know way of kicking someone out remotely.

     

    But there is a software that can at least identify who is logged in. We use it here. It's called nethasp Monitor and it can be downloaded from the mastercam site.

  10. Colin,

         I went back and started messing with the supplied posts that came with MasterCam and tried to use just numbers in my comments. Apparently MasterCam will not post a comment that doesn't contain a letter in it somewhere. Could this be a bug?

     

    It does not appear to be related to our engraving macro, but an issue with how MasterCam handles comment without letters.

     

    Maybe someone else can verify this?

     

    In the meantime, I'll go through and try a few other supplied posts to see if I can find one that works.

     

    Thanks

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...