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:

Tool change position


Threept82
 Share

Recommended Posts

I can do it long hand but I thought there was a

switch in Mastercam

(turn on to go to home at tool changes)

(turn off not to.) if I check the box in Home

position isnt mastercam suppost to code that on.

no matter which post i use, it still does not

go there. I hope i'm making sense, because noe i'm confused.gif

Link to comment
Share on other sites
Guest CNC Apps Guy 1

You could use an open Misc. Int. Create a postblock like below

 

pmoveout

pbld, n, "G0", "G91", "G28", "Z0.", e

pbld, n, "G0", "G90", "G28", "X0.", "Y0.", e

!mi5

 

Then at the Toolchange

 

pcan

if mi5=1, pmoveout

if stagetool >= zero, pbld, n, *t, "M6", e

pindex

 

HTH

Link to comment
Share on other sites
  • 7 months later...

After an exhaustive search I've found this old posting of yours to affect a tool change position. I'm having trouble finding the appropriate place for this text as pcan in my post is referencing 'canned text'. Would you have any suggestions for

this? I have already designated a place for the misc. integer so where can I put this language to be effective? headscratch.gif

 

 

pmoveout

pbld, n, "G0", "G91", "G28", "Z0.", e

pbld, n, "G0", "G90", "G28", "X0.", "Y0.", e

!mi5

 

 

pcan

if mi5=1, pmoveout

if stagetool >= zero, pbld, n, *t, "M6", e

pindex

Link to comment
Share on other sites

You can put the postblock almost anywhere. How about after Toolchange setup;

code:

#Toolchange setup

 

pmoveout

pbld, n, "G0", "G91", "G28", "Z0.", e

pbld, n, "G0", "G90", "G28", "X0.", "Y0.", e

!mi5

 

pspindchng #Spindle speed change

if prv_spdir2 <> spdir2 & prv_speed <> zero, pbld, n, *sm05, e

if prv_speed <> speed | prv_spdir2 <> spdir2,

[

if speed, pbld, n, *speed, pspindle2, pgear, e

]

!speed, !spdir2

The second part would go in the toolchange area, ptlchg_com in my post;

code:

ptlchg_com      #Tool change common blocks

pcom_moveb

c_mmlt #Multiple tool subprogram call

pcan

if plane < 0, plane = 0

if mi5=1, pmoveout #<<<<<<<<<<<<<< Here's where I would try it

if stagetool >= zero,

[

pbld, "G91", "G30", "X0", "Y0", "Z0", e

pbld, "M06", *t, ptoolcomm, e

]

macrocount = macrocount + 10

35, no_spc, "930=", macrocount, e

Note: This was pulled from my mpmaster.pst

 

HTH

 

Tim

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