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:

Rotation questions - B address


spade117
 Share

Recommended Posts

Couple of questions:

 

In the code below, is there a way to prohibit the g-code from using #'s higher than 0-359.999 for B address? I'm not a fan of the negative B numbers or the B360, B540, etc.

 

Also after N block 4950, it posts out B0. when it is un-needed. That seems to be happening once per program, and I don't know why.

 

 

code:

 

()

(1/4" SPOT DRILL 32142 )

()

N4800 (SPOT .206 HOLE B0)

N4810 T19 M106

N4820 G00 G17 G90 G55 B360. X.395 Y1.963 S7400 M03

N4830 G43 H19 Z.1 M08 T14

N4840 G94

N4850 G98 G81 Z-.676 R-.5 F40.

N4860 G80

N4870 G91 G30 Z0.

N4880 (SPOT .206 HOLE AT B180)

N4890 G00 G90 G56 B540. X-.395 Y1.963

N4900 G43 H19 Z.1

N4910 G98 G81 Z-.362 R-.2 F40.

N4920 G80 M09

N4930 M05

N4940 G91 G30 Z0.

N4950 G30 B0.

N4960 M01

()

(13/64 JOBBER DRILL, .2031" )

()

N4970 (DRILL .203 HOLE AT B180)

N4980 T14 M106

N4990 G00 G17 G90 G56 B180. X-1.14 Y2.365 S6500 M03

N5000 G43 H14 Z.1 M08 T12


Link to comment
Share on other sites

This is from my post for C axis output. Check your adressinstead of "cout_a" use your adress for B.

 

pfcout #Force C axis output

pspindle_nr_select

cout_a = cabs

if one_rev & cuttype = 3,

[

while fmtrnd(cout_a) >= 360, cout_a = cout_a - 360

while fmtrnd(cout_a) < 0, cout_a = cout_a + 360

]

 

For the B0 on the N4950 line check your retract routine.

Link to comment
Share on other sites

Look in the top of the post for "limit rotation to 360" and turn it on, set it to 1. This will stop the B540 junk and also will eliminate the unwind you see in line 4950.

 

From mpmaster

 

code:

 one_rev     : 0     #Limit rotary indexing between 0 and 360? (0 = No, 1 = Yes) 

Link to comment
Share on other sites
  • 4 weeks later...

Spade has this issue fixed but I just ran into another.

 

I have multiple work offsets that have the same "B". In my program I machine some features @ G56 B270 then move to the other side of the tombstone and machine @ G57 but the post is not posting a B. How can I force B outputs for all work offset changes?

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