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 Offsets in Mastercam


BenK
 Share

Recommended Posts

I'm using the mpmaster post and this is how I have it set up

First you need to set Haas style

code:

 

# General Output Settings

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

hel_2100 : no$ #Acramatic 2100 style helical moves, 0=no, 1=yes

force_dpts : no$ #Force XY output on all drilling lines including cycle call?

haas : 1 #Haas style peck drill and extended offsets, 0=no, 1=yes<<< This one


then in your pwcs you need this

code:

 

pwcs #G54+ coordinate setting at toolchange

if wcstype = two | wcstype > three,

[

sav_frc_wcs = force_wcs

if sub_level$ > zero, force_wcs = zero

if sav_mi9 = 1, workofs$ = sav_workofs

if workofs$ < 0, workofs$ = 0

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

[

if workofs$ < 6,

[

g_wcs = workofs$ + 54

*g_wcs

]

else,

[

if haas,

[

#p_wcs = workofs$ - five #G154 P1 to P99

#"G154", *p_wcs

g_wcs = workofs$ + 104 #G110 to G129<<< this one

*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

If I just put in 7 for the work offset it posts out as G54.1

 

Ted,

I will have to try that out. I have been thinking about changing to the mpmaster post but haven't had the chance to do it yet.

 

I dont know that much about working with posts yet so it takes me some time to figure it out.

 

Thanks

BenK

Link to comment
Share on other sites

Look for the pwcs block of your post. It should look like this. I have no idea how or why the Generic Hass post would get switched to be using G54.1 headscratch.gif

 

Make sure to back up your post first before you try any changes!!

 

code:

pwcs            #G54+ coordinate setting at toolchange

if mi1$ > one,

[

sav_frc_wcs = force_wcs

if sub_level$ > 0, force_wcs = zero

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

[

if workofs$ < 6,

[

g_wcs = workofs$ + 54

]

else,

[

g_wcs = workofs$ + 104

]

if workofs$ >= 0 & workofs$ <= 25, *g_wcs

else,

[

if mprint(swcserror, 2) = 2, exitpost$

]

]

force_wcs = sav_frc_wcs

!workofs$

]


Link to comment
Share on other sites

01 Oct 2009 11:52:08 AM - <0> - Report created.

01 Oct 2009 11:52:08 AM - <2> - Initialize posting log file

01 Oct 2009 11:52:08 AM - <2> - Using MP run version 13.00 and post components version 10.00

01 Oct 2009 11:52:08 AM - <2> - Initiate opening the post processor file(s).

01 Oct 2009 11:52:08 AM - <2> - Post processor file name: C:MCAMX4MILLPOSTSHAAS.PST

01 Oct 2009 11:52:08 AM - <2> - The post processor file has been successfully opened.

01 Oct 2009 11:52:08 AM - <2> - Post version information (input):

01 Oct 2009 11:52:08 AM - <2> - UPDATEPOST Version 13. was used to modify this file.

01 Oct 2009 11:52:08 AM - <2> - The file was modified by this product on 10 Jun 09 11:17:43

01 Oct 2009 11:52:08 AM - <2> - The post was written to run with Mastercam Version 13.

01 Oct 2009 11:52:08 AM - <2> - The post product type is Mill.

01 Oct 2009 11:52:08 AM - <2> - Initialization of pre-defined post variables, strings, postblocks was successful.

01 Oct 2009 11:52:08 AM - <2> - Search for defined post variables, strings, postblocks was successful.

01 Oct 2009 11:52:08 AM - <2> - PST LINE (721) - Label has not been defined[24]

01 Oct 2009 11:52:08 AM - <2> - PST LINE (703) - Missing a matching close bracket

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'ltol$' was re-initialized from 0.002 to 0.0005

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'atol$' was re-initialized from 0.01 to 0.5

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'maxnccomment$' was re-initialized from 256. to 120.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'dec_seq_left$' was re-initialized from 3. to 4.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'fastmode$' was re-initialized from 0. to 1.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'tplanemode$' was re-initialized from 2. to 1.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'arcoutput$' was re-initialized from 1. to 0.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'arcoutputxz$' was re-initialized from 1. to 0.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'arcoutputyz$' was re-initialized from 1. to 0.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'larcoutput$' was re-initialized from 1. to 0.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'larctypexz$' was re-initialized from 1. to 0.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'larcoutputyz$' was re-initialized from 1. to 0.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'breakarcs$' was re-initialized from 2. to 1.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'breakarcsxz$' was re-initialized from 2. to 1.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'breakarcsyz$' was re-initialized from 2. to 1.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'lbreakarcs$' was re-initialized from 2. to 1.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'lbreakarcsxz$' was re-initialized from 2. to 1.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'lbreakarcsyz$' was re-initialized from 2. to 1.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'helix_arc$' was re-initialized from 2. to 0.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'lhelix_arc$' was re-initialized from 2. to 0.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'arccheck$' was re-initialized from 1. to 111.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'larccheck$' was re-initialized from 1. to 111.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'rotfeed4$' was re-initialized from 2. to 1.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'rotfeed5$' was re-initialized from 3. to 1.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'lrotfeed4$' was re-initialized from 2. to 1.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'lrotfeed5$' was re-initialized from 0. to 1.

01 Oct 2009 11:52:08 AM - <2> - CONTROL DEFINITION - - Post variable 'peckacel$' was re-initialized from 0. to 1.

01 Oct 2009 11:52:08 AM - <2> - Successful completion of posting process!

Link to comment
Share on other sites

BenK, you have mail

 

code:

if mprint(swcserror, 2) = 2, exitpost$

This is the line causing the problem in the pwcs block that I posted for you. The label "swcerror" was not defined, generating both of your post errors. To fix it, I simply added:

code:

swcserror   : "ERROR - INVALID WORK COORDINATE SYSTEM"

to the Error messages section of your post.

 

The purpose of this error is so the post will fault out if you Woff# in your WCS manager is invalid. (too high)

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