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:

HMC RETRACT


M_CODE1
 Share

Recommended Posts

Wanted to check with others on how they do a retract before the B axis moves if the same tool is going to a different axis. At the last shop I worked at we used a subprogram that that bought tool or the pallet, depending on machine, all the back. A simple M98 P30 did this along with canceling some other thing. At my present job was told to give it a Z25 value before the Z moves. I could make a reference point of Z25 at the end of all OP's that are going to changes axis, but I was thinking that a post change would be better that way I can never forget to retract the tool. Any thoughts?

Link to comment
Share on other sites

Wow, that is crazy. I kind of struggled with how to do that at first also, but I found this way to be much easier and even more operator friendly. I really don't have any other experience on this subject so hopefully someone will have some better ideas for you to think about.

 

Good Luck

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

quote:

You could hard code this into your post so that when it index's it automatically retracts to a save position before hand.

I did it like this....

 

code:

ppos_cax_lin    #Position the rotary axis before move - rapid

if index, pindex

else,

[

if fmtrnd(prv_cabs) <> fmtrnd(cabs) & rot_on_x,

[

sav_gcode = gcode$

gcode$ = zero

if not(index) & lock_codes = 1, pbld, n$, *sunlock, e$

sav_coolant = coolant$

coolant$ = zero

pbld, n$, scoolant, e$

pbld, n$, "G91 G28 Z0.", e$ #retract home

pbld, n$, *sgcode, *sgabsinc, pwcs, pfxout, pfyout, pcout, e$

if not(index) & lock_codes = 1, pbld, n$, *slock, e$

pbld, n$, "G43", *tlngno$, pfzout, e$

coolant$ = sav_coolant

pbld, n$, scoolant, e$

!cia

ps_cinc_calc

gcode$ = sav_gcode

]

]

This was done on a horizontal boring mill with no enclosure...hence the coolant turning off & back on

Link to comment
Share on other sites

Okuma's can have reference return points

 

ie. "G30 P(value)" where each axis movement order is predefined within the control for each point

 

1st move = Z

2nd move = XY

3rd move = B

 

P1= toolchange point ( order = Z, XY, B0 )

P2= toolchange point ( order = Z, XY )

P3= pallet#1 change point( order = Z, XY, B0 )

P4= pallet#2 change point( order = Z, XY, B0 )

P5= retract to Z home( order = Z only )

 

then all that is required is " G30 P5 "

before pallet rotation

 

values are altered thru "parameter pages"

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