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:

Editing MPMaster for Mazak HMC.


Joe788
 Share

Recommended Posts

On thing to be careful of now is that the 'pretract' post block may be called by both ptlchg$ and ptlchg0$...

 

If this is the case, you might be disabling the M05 when the tool does actually change (this would be bad).

 

Joe, give Jim's suggestion a try and see if it works for you..

 

If not, then there are some ways around it.

 

What I would do if it is a problem, is create some flag variables to track if you are actually changing tools or not...

Link to comment
Share on other sites

Joe,

Just delete *sm05 in the pretract section so it looks like this. where the comment says (deleted *sm05 jimmy)

 

code:

 pretract        #End of tool path, toolchange              

sav_absinc = absinc

absinc = one

sav_coolant = coolant

coolant = zero

#cc_pos is reset in the toolchange here

cc_pos = zero

gcode = zero

pbld, n, sccomp, psub_end_mny, e (deleted *sm05 jimmy)

pbld, n, sgabsinc, sgcode, "G28", "Z0.", scoolant, e

#if lock_codes = 1 & rot_on_x, pbld, n, *sunlock, "(UNLOCK)", e

#pbld, n, "G28", "X0.", "Y0.", protretinc, e

#if lock_codes = 1 & rot_on_x & cuttype = 0, pbld, n, *slock, "(LOCK)", e

if abs(cabs) > 360 & nextop <> 1003,

[

if lock_codes = 1, pbld, n, *sunlock, "(UNLOCK)", e

rotretflg = 1

pbld, n, 'G28', protretinc, e

rotretflg = 0

if lock_codes = 1 & cuttype = 0, pbld, n, *slock, "(LOCK)", e

]

absinc = sav_absinc

coolant = sav_coolant

Link to comment
Share on other sites

OK I see. I had actually already deleted that sm05 earlier, in order to get the spindle to M19 on the same line as the Z retract (so it's ready to change as soon as the spindle stops). We got that part of it ironed out by adding the M19 right after the G28 Z0.

 

The problem now, is that it also stops the spindle on the retract moves for B axis positioning. So when I'm running the same drill at B90, B0, and B270, it starts and stops from 18,000rpm 3 times!

 

Is there a way to make it call the pretract block prior to an actual tool change, and have it call a different pretract block that doesn't stop the spindle on all other retracts?

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