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:

Subprograms A-axis


wfcPain
 Share

Recommended Posts

If would need to be a custom, application-specific post, like Mpsubrep with angular reps.

 

Mastercam doesn't really support sub repeats, with inc values, like Z for a depth cut.

 

You can take one op, and do a Tranform, Rotate op with subprogram output. Your output will be abs angles with a sub call after each

 

G0G90A0

M98P1100

G0G90A7.2

M98P1100

G0G90A14.4

M98P1100

 

etc.

Link to comment
Share on other sites

Thanks, dave that's exactly what i was looking for.

My output for the first 5 rotations is fine, but then it starts putting a p # on the rest.Example line 104,118, p1 thru p44.

Also it goes to g28 z0 everytime.any ideas?

 

N94 (ENGRAVE MARK)

N96 X0. Y0. Z2.

N98 M98 P12016

N100 M05

N102 G91 G28 Z0. M09

N104 G00 G90 G54.1 P1 X0. Y0. A-43.2 S3000 M03

N106 G43 H1 Z2. M08

N108 (ENGRAVE MARK)

N110 X0. Y0. Z2.

N112 M98 P12016

N114 M05

N116 G91 G28 Z0. M09

N118 G00 G90 G54.1 P2 X0. Y0. A-50.4 S3000 M03

N120 G43 H1 Z2. M08

[code]

Link to comment
Share on other sites

Try to not allow the Work Offset numbering to increment. Keep it at 0 for G54.

 

If you post has a Misc Value to 'lock onto first WCS' then use that.

 

Basically you are getting G54 through G59 then G54.1 P1 and up as the Work Offset value is automatically incremented by Mastercam.

 

The retract is something in the post to do a full retract when the toolplane changes.

 

Mpmaster has a switch

ret_on_indx : 1

 

Machine home retract on rotary index moves, (0 = no, 1 = yes)

 

If using Mpmaster, you'd set that to 0.

Link to comment
Share on other sites

You can also do this to supress new workshift creation. In tranforms first page on the lower right there are selections under work offset numbering, one of the selections is assign new, check that, also check match existing offsets. This combo works for me. Peter

Link to comment
Share on other sites

SUCCESS!!

Thanks dave and peter!

I seen assign new,but i thought, i don't want a "new" work offset. I want the same offset,g54.A bit confusing, but i see now.

code:

N10 G00 G90 G54 X0. Y0. A0. S1069 M03

N12 G43 H1 Z.1 M08

N14 M98 P12016

N16 G90 X0.

N18 M98 P12016

N20 A-7.2

N22 G90 X0.

N24 M98 P12016

N26 A-14.4

N28 G90 X0.

N30 M98 P12016

N32 A-21.6

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