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:

work coordinates


Go Navy
 Share

Recommended Posts

Good Morning all:

 

I would like to change our work coordinates from always using g54 on lathe. Currently no matter what number I place in the coordinates box in MC I always get a g54. Took a look at out post and question

301 work coordinate(-1=ref, 0=g50,1=home,2=g54's)?2

 

what I would like is for my post to output coordinates if I assign a -1 (in the coordinates box) then the post would output a g53 and if I assign a 0 (in the coordinates box) then the post would output a 54 and so on. I hope this makes sense. Thanks for the help

 

 

Have fun

Al

Link to comment
Share on other sites

Here is what you can do for the always get G54 if you have nothing. to do what you are asking is a little more involved but this might get you started from MPLFAN:

code:

pwcs            #G54+ coordinate setting at toolchange

if home_type > one,

[

sav_frc_wcs = force_wcs

if sub_level, force_wcs = zero

if workofs < 0, workofs = 0 <------ ADDED THIS LINE RDB 6/21/05

if workofs <> prv_workofs | (force_wcs & toolchng),

[

if sub_level, result = mprint(swrkserror)

if workofs < 6,

[

g_wcs = workofs + 54

*g_wcs

]

else,

[

p_wcs = workofs - five

"G54.1", *p_wcs

]

]

force_wcs = sav_frc_wcs

!workofs

]

HTH

Link to comment
Share on other sites

Thanks to Millman and InHouse Solutions!!!! Millmans code was right on! and the hand holding(training) from Brett at InHouse Solutions proves again to be worth thier weight in GOLD. This is another example why Mastercam and its Community are so strong everyone works together so well.

 

Thanks again

Al

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