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:

Reverse and Swap axis help!


WildBill9000
 Share

Recommended Posts

We have a vertical / horizontal mill (two heads, one vertical on a slide, one horizontal). It is programmed as a vertical mill. The problem is when in horizontal mode everything is backwards and upside down. I need to reverse X and swap Z with Y. I have been playing with the machine component manager and it appears to do nothing at all. If I draw the part in the plane I want (Back Gview) I still get z moves for clearance and y for cutting, with no reversal of x. The same goes for a top WCS and back t/c planes.

Link to comment
Share on other sites
  • 2 weeks later...
  • 2 months later...

I can stick that anywhere in the top of the post right? Nothing is happening. I have it here ->

 

# Common User-defined Variable Initializations (not switches!)

# --------------------------------------------------------------------------

xia : 0 #Formatted absolute value for X incremental calculations

yia : 0 #Formatted absolute value for Y incremental calculations

zia : 0 #Formatted absolute value for Z incremental calculations

 

bld : 0 #Block delete active

result : 0 #Return value for functions

sav_spc : 0 #Save spaces

sav_gcode : 0 #Gcode saved

sav_absinc : 0 #Absolute/Incremental Saved Value

sav_coolant : 0 #Coolant saved

sav_frc_wcs : 0 #Force work offset flag saved

toolchng : 1 #On a toolchange flag

spdir2 : 1 #Copy for safe spindle direction calculation

scalex$=-1

Link to comment
Share on other sites

Okay, I'd tried it and its broke.

Not recomended, but this will flip X

pfxout          #Force X axis output
xabs = xabs * -1
xinc = xinc * -1
     if absinc$ = zero, *xabs, !xinc
     else, *xinc, !xabs

pxout           #X output
xabs = xabs * -1
xinc = xinc * -1
     if absinc$ = zero, xabs, !xinc
     else, xinc, !xabs

 

I changed those two post blocks to get it to work, also need to swap G02 and G03.

 

I say not recomended cause I don't know what post your using. You can try it and see if it breaks anything on your post.

Link to comment
Share on other sites

scalex, scaley, scalez are not broke or at least shouldn't be. Their use is tied to the fastmode switch (has been since v8 I believe - scale variables are ignored when fastmode is on.). We also do NOT recommend using the Scale X,Y,Z variables because of their inconsistent use inside of the MP executable. For wire it is typically ok to use them but I would still shy away from them.

 

Modifying the post depends on the post you are using and how you are programming in Mastercam and. You could easily setup your machine definition to handle both the VMC and HMC spindle using axis combination so that the post can be written to read the axis combo and make the necessary calculation adjustments based on what you program.

 

You should contact your reseller and get them to have a post guy look at it and quote the work. It will save you lots of time and headaches in the long run.

Link to comment
Share on other sites

Okay, I'd tried it and its broke.

Not recomended, but this will flip X

pfxout          #Force X axis output
xabs = xabs * -1
xinc = xinc * -1
     if absinc$ = zero, *xabs, !xinc
     else, *xinc, !xabs

pxout           #X output
xabs = xabs * -1
xinc = xinc * -1
     if absinc$ = zero, xabs, !xinc
     else, xinc, !xabs

 

I changed those two post blocks to get it to work, also need to swap G02 and G03.

 

I say not recomended cause I don't know what post your using. You can try it and see if it breaks anything on your post.

 

 

This works great! Thanks!

Link to comment
Share on other sites
  • 5 years later...

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