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:

Posting 2 different B0 machining operations, no rotation commands.


JB7280
 Share

Recommended Posts

Is it possible to make Mastercam post B rotations, even though both toolpaths are at B0., but different work offsets?  I have 2 fixtures, with slightly different B work offsets, so I want to unlock the pallet, rotate, and lock.  But when I post these, it seems like Mastercam just sees B0, and doesn't try to rotate. 

 

Unfortunately I can't post a file, but I could quickly make a sample file, if I'm not making sense.   

Link to comment
Share on other sites

I've run into the same thing before. My workaround was using a manual entry with: rotary unlock, new offset B0, rotary lock. I'm sure you could make this happen automatically with the post but I haven't had the time to play with it.

You could probably accomplish the same thing with a force tool change, tho this would probably add unnecessary motion.

I'm also interested if there is a better way.

 

Link to comment
Share on other sites

Without having a copy of the file I can't recommend a good solution

I would just post a  dummy drill cycle at a different B location that punches a hole in a safe place in the sky.

After posting, just delete the dummy drilling toolpath and you are good to go

 

Link to comment
Share on other sites

Can't you tell it if wcs changes re issue position command?

 

I did this with my probe cycle on the 5 axis. Instead of using force tool change of the wcs changes it zeros z and re issues unlock and positioning moves with the new offset 

ptlchg0$         #Call from NCI null tool change (tool number repeats)
      pcuttype
      pcom_moveb
      pcheckaxis
      c_mmlt$ #Multiple tool subprogram call
      comment$
      #pcan
      result = newfs(15, feed)  #Reset the output format for 'feed'
      pbld, n$, sgplane, e$
      pspindchng

      if sopcomm <> sblank,
        sopen_prn, sopcomm, sclose_prn, e$
      sopcomm = sblank


      if prb_flg = 1,   #WCS CHANGE FOR  PROBE
      [if workofs$ <> prv_workofs$,
        [
        sav_absinc = absinc$
        absinc$ = zero
        pbld, n$,"(WCS CHANGE RETURN Z TO ZERO)", e$
        pbld, n$, *sgabsinc, *sgcode, sg49, "G53","Z0",e$
        pbld, n$,"M132",e$
        pbld, n$, *sgabsinc, *sgcode,  pwcs, pfcout, e$
        pbld, n$,"M131",e$
        pbld, n$, sg43, *tlngno$, e$
        pbld, n$,"(PROTECTED POSITIONING X AND Y)" ,e$
        pbld, n$,"G65 P9510",pfxout, pfyout,e$
        pbld, n$,"(PROTECTED POSITIONING Z)" ,e$
        pbld, n$,"G65 P9510", pfzout,e$
        pe_inc_calc
        ps_inc_calc
        absinc$ = sav_absinc
        ]

  • Like 1
Link to comment
Share on other sites
2 hours ago, crazy^millman said:

With rotated planes and a correctly configure post then it should output the rotations you want. Really a couple different ways to control this. Can you make a dummy file with a couple toolpaths to use as example.

That's the issue Ron, I think.  The planes aren't technically rotated, but they are different work offsets.   I'll make a dummy file in a moment.  

Link to comment
Share on other sites
3 hours ago, crazy^millman said:

With rotated planes and a correctly configure post then it should output the rotations you want. Really a couple different ways to control this. Can you make a dummy file with a couple toolpaths to use as example.

I would like for it to post Z retract, Rotary Unlock, B positioning move, and Rotary lock after the N2 line.   To correct for "fixture error"  I feel crazy, because people, including Mastercam Tech Support seem to think I'm doing something wild, lol.  But I am 100% certain I've done this fairly simply in other CAM softwares.  

 

3 hours ago, gcode said:

Without having a copy of the file I can't recommend a good solution

I would just post a  dummy drill cycle at a different B location that punches a hole in a safe place in the sky.

After posting, just delete the dummy drilling toolpath and you are good to go

 

I did something similar, temporarily, but the powers that be (aka management) likes to have files that post out, 100% ready to run.  

 

https://drive.google.com/file/d/1iUOKIpRsN_3lvTRoej_nlYAyfBDuc1ot/view?usp=sharing

Link to comment
Share on other sites

Are the two B0 offsets always the same relative to one another?

I would consider the first as B0 and the second as B6 (or whatever) and when they share a WCS, you know it will rotate between them.

Also on my horz, I need to force a tool change in between rotations for the same tool, or it will skip over the B call - might try that out. You'll be certain to get a retract then as well.

Link to comment
Share on other sites
18 minutes ago, SuperHoneyBadger said:

Are the two B0 offsets always the same relative to one another?

I would consider the first as B0 and the second as B6 (or whatever) and when they share a WCS, you know it will rotate between them.

Also on my horz, I need to force a tool change in between rotations for the same tool, or it will skip over the B call - might try that out. You'll be certain to get a retract then as well.

In CAM, yes, they're the same.  In the machine, they're slightly different from each other.  So I need it to correct when going between the two offsets.  But yea, I'll probably do a force tool change for now, unfortunately.

 

11 minutes ago, JParis said:

I built a whole section of logic that handles this for me...I have a jump height set in the MR's....on any offset change or rotation I output the jump height...

No "Force Tool Change" required.

Haha, I have no idea what that means, but I assumed something like that is what's necessary, which is beyond my knowledge level.  Might have to get a post made for this.  

Link to comment
Share on other sites

i used an mpmaster i had 

i changed this

search for and uncomment this line

#           sav_rot_on_x = rot_on_x    #Uncomment this line to output rotary axis value even when it's not used

 

 

then at the end of ptlchg0$ i added a pfcout on that line


ptlchg0$         #Call from NCI null tool change (tool number repeats)

 was this

          else,
            [
            pbld, n$, sgabsinc, [if not(index), pwcs], pfxout, pfyout, pfzout, pcout, e$
            ]
          ]

i changed to 

 

          else,
            [
            pbld, n$, sgabsinc, [if not(index), pwcs], pfcout, pfxout, pfyout, pfzout, pcout, e$
            ]
          ]

 

 

 

gave me this output

N5 G00 G17 G20 G40 G80 G90
N10 G91 G28 Z0.
N15 (COMPENSATION TYPE - COMPUTER)
N20 T239 M06 ( 1/2 FLAT ENDMILL)
N25 (MAX - Z.25)
N30 (MIN - Z0.)
N35 G00 G17 G90 G54 B0. X-.25 Y.5 S1069 M03
N40 G43 H239 Z.25
N45 Z.2
N50 G94 G01 Z0. F6.42
N55 X-.75
N60 G03 X-1.25 Y0. I0. J-.5
N65 X1.25 I1.25 J0.
N70 X-1.25 I-1.25 J0.
N75 X-.75 Y-.5 I.5 J0.
N80 G01 X-.25
N85 Z.2
N90 G00 Z.25
N95 G55 B0. X-.25 Y.5 Z.25
N100 Z.2
N105 G01 Z0.
N110 X-.75
N115 G03 X-1.25 Y0. I0. J-.5
N120 X1.25 I1.25 J0.
N125 X-1.25 I-1.25 J0.
N130 X-.75 Y-.5 I.5 J0.
N135 G01 X-.25
N140 Z.2
N145 G00 Z.25
N150 M05
N155 G91 G28 Z0.
N160 G28 Y0. B0

  • Like 1
Link to comment
Share on other sites
48 minutes ago, ajmer said:

i used an mpmaster i had 

i changed this

search for and uncomment this line

#           sav_rot_on_x = rot_on_x    #Uncomment this line to output rotary axis value even when it's not used

 

 

then at the end of ptlchg0$ i added a pfcout on that line


ptlchg0$         #Call from NCI null tool change (tool number repeats)

 was this

          else,
            [
            pbld, n$, sgabsinc, [if not(index), pwcs], pfxout, pfyout, pfzout, pcout, e$
            ]
          ]

i changed to 

 

          else,
            [
            pbld, n$, sgabsinc, [if not(index), pwcs], pfcout, pfxout, pfyout, pfzout, pcout, e$
            ]
          ]

 

 

 

gave me this output

N5 G00 G17 G20 G40 G80 G90
N10 G91 G28 Z0.
N15 (COMPENSATION TYPE - COMPUTER)
N20 T239 M06 ( 1/2 FLAT ENDMILL)
N25 (MAX - Z.25)
N30 (MIN - Z0.)
N35 G00 G17 G90 G54 B0. X-.25 Y.5 S1069 M03
N40 G43 H239 Z.25
N45 Z.2
N50 G94 G01 Z0. F6.42
N55 X-.75
N60 G03 X-1.25 Y0. I0. J-.5
N65 X1.25 I1.25 J0.
N70 X-1.25 I-1.25 J0.
N75 X-.75 Y-.5 I.5 J0.
N80 G01 X-.25
N85 Z.2
N90 G00 Z.25
N95 G55 B0. X-.25 Y.5 Z.25
N100 Z.2
N105 G01 Z0.
N110 X-.75
N115 G03 X-1.25 Y0. I0. J-.5
N120 X1.25 I1.25 J0.
N125 X-1.25 I-1.25 J0.
N130 X-.75 Y-.5 I.5 J0.
N135 G01 X-.25
N140 Z.2
N145 G00 Z.25
N150 M05
N155 G91 G28 Z0.
N160 G28 Y0. B0

Close, and gives me some hope.   I need retract, and unclamp/clamp comments.   I wish I knew more about editing posts.  But that's hopeful at least.   

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

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...