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:

Converting a 4axis vertical mill program to 4axis horizontal.


danielm
 Share

Recommended Posts

even reposting it won't be straight forward unless your HMC post is set up to rotate like a rotary 4th axis

 

Otherwise new WCS & planes and resetting geometry

 

Don't think you'll the the 

 

easybutton_lg_top.gif

 

for this one

Link to comment
Share on other sites

I would think given the other differences that are possible between the machines that there probably is not a simple code / macro for this, though you might be able to make some kind of converter it would need to be tailored to the specific machines in order to avoid any problems in every case.

 

So yeah.. best bet is to re-post with the proper post, next best would be to manually go through the code, either way I would expect its going to be a lot easier / safer to do it in front of a PC than at the control.

Link to comment
Share on other sites

Well it turns out that this is very straight forward and this is how I did it:  using the right hand rule; x- becomes y+, y+ becomes x+, z+/- stays, y- becomes x-, x+ becomes y-, I- becomes j+, j+ becomes I+, j- becomes I-, I+ becomes j-, k+/- stays, all A rotations become B rotations.

 

Using any editor just make the changes and use a random substitution character when needed so that only the intended codes get changed.

 

The backplot on the editor verifies that it works but I'm going to run thru Vericut for the final proof.

Link to comment
Share on other sites

Any reason to not re-post the program?  For me, I would save-as a new Mastercam file (if I wanted to keep the original in tact), replace the machine definition, and dynamically rotate the WCS and all associated planes to index about Y instead of X.  The whole process would take a few minutes and be a lot less likely to miss something that could cause major issues.

Link to comment
Share on other sites

I guess I favor re-posting because I have so much more in my programs that are specific to each machine (machine modes, movement style - tight linear vs. arcs, probing, work offsets, break detection routines, macro routines, etc...) that getting them all transferred and accounted for would be a lot more work than simply re-posting.  If the code is dead simple maybe it wouldn't be much of an issue and there is an easy button.  One mistake and the easy button becomes a stupid button.

  • Like 2
Link to comment
Share on other sites

even reposting it won't be straight forward unless your HMC post is set up to rotate like a rotary 4th axis

 

Otherwise new WCS & planes and resetting geometry

 

Don't think you'll the the 

 

easybutton_lg_top.gif

 

for this one

Love the easy button JP!

Need a couple around here...

Link to comment
Share on other sites

Any reason to not re-post the program?  For me, I would save-as a new Mastercam file (if I wanted to keep the original in tact), replace the machine definition, and dynamically rotate the WCS and all associated planes to index about Y instead of X.  The whole process would take a few minutes and be a lot less likely to miss something that could cause major issues.

 

Yeh...this program was done in NX originally and the operators have tweaked it what it is now.  So in this case the manual conversion method was the quickest way to get proven code up and going on a different machine.  But I agree,  if it was mastercam and up to me I'd have taken the time to 'do it the right way'.

 

Update: Vericut proved out the code and it worked first shot.  Will me making minor mods to the fixture to fit the table of the horizontal today and be making chips.

Link to comment
Share on other sites

Well it turns out that this is very straight forward and this is how I did it:  using the right hand rule; x- becomes y+, y+ becomes x+, z+/- stays, y- becomes x-, x+ becomes y-, I- becomes j+, j+ becomes I+, j- becomes I-, I+ becomes j-, k+/- stays, all A rotations become B rotations.

 

Using any editor just make the changes and use a random substitution character when needed so that only the intended codes get changed.

 

The backplot on the editor verifies that it works but I'm going to run thru Vericut for the final proof.

I wrote a batch program  that will do just that to any NC file.  Had to do this to a few programs that were written before my time, hand edited over the years, etc.  the program I used was called fart.exe  :)  (find and replace text)

Link to comment
Share on other sites

I wrote a batch program  that will do just that to any NC file.  Had to do this to a few programs that were written before my time, hand edited over the years, etc.  the program I used was called fart.exe  :)  (find and replace text)

 

Nice.  Would you like to share that little piece of code with your colleagues? I'd like to test it out on this program and do a comparison.

Link to comment
Share on other sites

Nice.  Would you like to share that little piece of code with your colleagues? I'd like to test it out on this program and do a comparison.

so download fart.exe (sourceforge.net is where I downloaded it) and and put it in the same folder as the file -  then just create a .bat with something like this.  obviously tweak for whatever orientation it was put in the machine.  Im pretty sure this one has the base of the tombstone in the horizontal on the left side of the table in the vertical.

 

 

fart "C:\Users\Joe\Desktop\test\testfile.NC" X U

fart "C:\Users\Joe\Desktop\test\testfile.NC" Y X

fart "C:\Users\Joe\Desktop\test\testfile.NC" U Y

fart "C:\Users\Joe\Desktop\test\testfile.NC" Y- V

fart "C:\Users\Joe\Desktop\test\testfile.NC" Y Y-

fart "C:\Users\Joe\Desktop\test\testfile.NC" V Y

fart "C:\Users\Joe\Desktop\test\testfile.NC" I U

fart "C:\Users\Joe\Desktop\test\testfile.NC" J I

fart "C:\Users\Joe\Desktop\test\testfile.NC" U J

fart "C:\Users\Joe\Desktop\test\testfile.NC" J- V

fart "C:\Users\Joe\Desktop\test\testfile.NC" J J-

fart "C:\Users\Joe\Desktop\test\testfile.NC" V J

PAUSE

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