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:

4th Axis Indexing Post Help


Recommended Posts

Good morning everyone hope everyone had a good holiday weekend I need some help with one of my posts. I had received some help on someone else’s thread and I would like to get it a little closer to what I need coming out of my post. What I'm looking for is this to come out at my index> M21(180/A0.) as you can see I need to have the Incremental and Absolute in the Parentheses this is for my older machines that still have Haas indexers on them.

This is a section of my post that I have thanks to PeterM.

 

ptlchg_com #Tool change common blocks

 

pindex

if safe_index,

[

#if lock_codes = one & not(index) & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$

pbld, n$, pgear, e$

pcan1, pbld, n$, *sgcode, sgfeed, sgplane, [if not(index), sgabsinc, pwcs], strcantext, e$

pbld, n$, "M21", "(", pfcout, ")", e$

if lock_codes = one & not(index) & rot_on_x, pbld, n$, *sunlock, "(", 034, "A", 034, " UNLOCK)", e$

if convert_rpd$ = one,

[

gcode$ = one

feed = maxfeedpm

ipr_type = zero

]

pbld, n$, sgcode, [if gcode$ = 1, sgfeed], pfxout, pfyout, pfspindleout, [if gcode$ = 1, *feed], e$

]

else,

[

#if lock_codes = one & not(index) & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$

pbld, n$, pgear, e$

if convert_rpd$ = one,

[

gcode$ = one

feed = maxfeedpm

ipr_type = zero

]

pcan1, pbld, n$, *sgcode, sgfeed, sgplane, [if not(index), sgabsinc, pwcs], [if gcode$ = 1, sgfeed], pfxout, pfyout,

pfspindleout, next_tool$, [if gcode$ = 1, *feed], strcantext, e$

pbld, n$, "M21", "(", pfcout, ")", e$

#if lock_codes = one & not(index) & rot_on_x & cuttype = 0, pbld, n$, *slock, slockcomm, e$

]

#phsm1_on #must remain before G43

 

Any help would be appreciated

 

Ted

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