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:

Table move at tool change question


Recommended Posts

X7

MPFAN

I'd like the table to go all the way towards the operator in Y and retract in Z at all tool changes

 

I've changed my post to this:

 

ptlchg$ #Tool change

pcuttype

toolchng = one

if mi1$ = one, #Work coordinate system

[

pfbld, n$, *sg28ref, "Y0.", e$

pfbld, n$, sg92, *yh$, *zh$, e$

]

if prog_stop = 1, pbld, n$, *sm01, e$

if prog_stop = 2, pbld, n$, *sm00, e$

 

to remove teh X axis move

 

It only does this on the last toolchange in a file. How do I make it do this for all tool changes?

 

I'd also like to Not output any header. Can't seem to get that to happen.

Where is that change made?

I've turned off all of those options in the Machine def/Control def.

Not sure where to look now...

Skool me please.

Link to comment
Share on other sites

change to this...the mi1$ is whats thrrowing you off. I am guessing you are using G54's

ptlchg$   #Tool change   
 pcuttype
 toolchng = one
 pfbld, n$, *sg28ref,  "Y0.", e$
##  pfbld, n$, sg92,  *yh$, *zh$, e$ <- don't really need this I think
 if prog_stop = 1, pbld, n$, *sm01, e$
 if prog_stop = 2, pbld, n$, *sm00, e$

 

and just change the header to this...quick & dirty

 

pheader$		 #Call before start of file					     
#	  if subs_before, " ", e$ #header character is output from peof when subs are output before main
#	  else, "%", e$
#	  sav_spc = spaces$
#	  spaces$ = 0
#	  *progno$, sopen_prn, sprogname$, sclose_prn, e$
#	  #sopen_prn, "PROGRAM NAME - ", sprogname$, sclose_prn, e$
#	  sopen_prn, "DATE=DD-MM-YY - ", date$, " TIME=HH:MM - ", time$, sclose_prn, e$ #Date and time output Ex. 12-02-05 15:52
#	  #sopen_prn, "DATE - ", month$, "-", day$, "-", year$, sclose_prn, e$  #Date output as month,day,year - Ex. 02-12-05
#	  #sopen_prn, "DATE - ", *smonth, " ", day$, " ", *year2, sclose_prn, e$ #Date output as month,day,year - Ex. Feb. 12 2005
#	  #sopen_prn, "TIME - ", time$, sclose_prn, e$  #24 hour time output - Ex. 15:52
#	  #sopen_prn, "TIME - ", ptime sclose_prn, e$  #12 hour time output 3:52 PM
#	  spathnc$ = ucase(spathnc$)
#	  smcname$ = ucase(smcname$)
#	  stck_matl$ = ucase(stck_matl$)
#	  snamenc$ = ucase(snamenc$)
#	  sopen_prn, "MCX FILE - ", *smcpath$, *smcname$, *smcext$, sclose_prn, e$
#	  sopen_prn, "NC FILE - ", *spathnc$, *snamenc$, *sextnc$, sclose_prn, e$
#	  sopen_prn, "MATERIAL - ", *stck_matl$, sclose_prn, e$
#	  spaces$ = sav_spc

Link to comment
Share on other sites

Yo need ---------------

 

tool_info : 0 #Output tooltable information?

#0 = Off - Do not output any tool comments or tooltable

#1 = Tool comments only

#2 = Tooltable in header - no tool comments at T/C

#3 = Tooltable in header - with tool comments at T/C

tlchg_home : yes$ #Zero return X and Y axis prior to tool change?

 

 

In pretract delete "X0."

 

And add in pheader$ # as said JMC :left:

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