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:

Haas Extended Offsets


Mic6
 Share

Recommended Posts

My MP Master doesn't have the Haas Offsets Switch in it. Is there something I can modify in the section below from my MPMaster so when I enter 110 as the work offset, the post will output G154 P1, 111 = G154 P2 and so on? headscratch.gif

 

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$

]

TIA

Link to comment
Share on other sites

It doesn't?

 

headscratch.gif

 

From the newest MPMaster

 

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

#*g_wcs

]

else,

[

p_wcs = workofs$ - five

"G54.1", *p_wcs

]

]

]

force_wcs = sav_frc_wcs

!workofs$

]

Link to comment
Share on other sites

So from the newest MPMaster I pulled this switch(?):

 

code:

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

and set as 1

 

Then I added the section you posted John. Then I resulted in these errors:

code:

 21 Oct 2009 08:27:34 AM - <0> - Report created.

21 Oct 2009 08:27:34 AM - <2> - Initialize posting log file

21 Oct 2009 08:27:34 AM - <2> - Using MP run version 13.00 and post components version 10.00

21 Oct 2009 08:27:34 AM - <2> - Initiate opening the post processor file(s).

21 Oct 2009 08:27:34 AM - <2> - Post processor file name: C:MCAMX4MILLPOSTSMIKE'S X4 HAAS POST.PST

21 Oct 2009 08:27:34 AM - <2> - The post processor file has been successfully opened.

21 Oct 2009 08:27:34 AM - <2> - Post version information (input):

21 Oct 2009 08:27:34 AM - <2> - UPDATEPOST Version 13. was used to modify this file.

21 Oct 2009 08:27:34 AM - <2> - The file was modified by this product on 08 Jun 09 09:28:46

21 Oct 2009 08:27:34 AM - <2> - The post was written to run with Mastercam Version 13.

21 Oct 2009 08:27:34 AM - <2> - The post product type is Mill.

21 Oct 2009 08:27:34 AM - <2> - Initialization of pre-defined post variables, strings, postblocks was successful.

21 Oct 2009 08:27:34 AM - <2> - Search for defined post variables, strings, postblocks was successful.

21 Oct 2009 08:27:34 AM - <2> - PST LINE (911) - Label has not been defined[7]

21 Oct 2009 08:27:34 AM - <2> - PST LINE (1044) - Label has not been defined[4]

21 Oct 2009 08:27:34 AM - <2> - PST LINE (1044) - Label has not been defined[20]

21 Oct 2009 08:27:34 AM - <2> - PST LINE (1044) - The formula/boolean does not terminate properly

21 Oct 2009 08:27:34 AM - <2> - PST LINE (1044) - The math calculation/formula has an error

21 Oct 2009 08:27:34 AM - <2> - CONTROL DEFINITION - - Post variable 'dec_seq_right$' was re-initialized from 3. to 0.

21 Oct 2009 08:27:34 AM - <2> - CONTROL DEFINITION - - Post variable 'omitseq$' was re-initialized from 0. to 1.

21 Oct 2009 08:27:34 AM - <2> - CONTROL DEFINITION - - Post variable 'bldnxtool$' was re-initialized from 0. to 1.

21 Oct 2009 08:27:34 AM - <2> - CONTROL DEFINITION - - Post variable 'breakarcs$' was re-initialized from 0. to 1.

21 Oct 2009 08:27:34 AM - <2> - CONTROL DEFINITION - - Post variable 'breakarcsxz$' was re-initialized from 0. to 1.

21 Oct 2009 08:27:34 AM - <2> - CONTROL DEFINITION - - Post variable 'breakarcsyz$' was re-initialized from 0. to 1.

21 Oct 2009 08:27:34 AM - <2> - CONTROL DEFINITION - - Post variable 'lbreakarcs$' was re-initialized from 0. to 1.

21 Oct 2009 08:27:34 AM - <2> - CONTROL DEFINITION - - Post variable 'lbreakarcsxz$' was re-initialized from 0. to 1.

21 Oct 2009 08:27:34 AM - <2> - CONTROL DEFINITION - - Post variable 'lbreakarcsyz$' was re-initialized from 0. to 1.

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

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

21 Oct 2009 08:27:34 AM - <2> - CONTROL DEFINITION - - Post variable 'rotfeed4$' was re-initialized from 2. to 1.

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

21 Oct 2009 08:27:34 AM - <2> - CONTROL DEFINITION - - Post variable 'lrotfeed4$' was re-initialized from 2. to 1.

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

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

21 Oct 2009 08:27:34 AM - <2> - Successful completion of posting process!

These are the error lines:

Line 911

code:

      com_movea 

Line 1044:

code:

 if wcstype = two | wcstype > three, 

Thx

 

Edit: 110 was put into my work offset field.

Link to comment
Share on other sites

Wel, if you just copied and pasted, there are going to be issues.

 

Look close at the differences in the code you posted and what I posted. There is other logic and variables call.

 

That will need to be straightened out...

Link to comment
Share on other sites

Right On MG. cheers.gif Works perfect. Now I'm going to try and figure out how you did it. biggrin.gif

code:

 %

O1110( CLAMP HOLE )

( T2 | 27/64 DRILL | H2 )

G20

G0 G17 G40 G49 G80 G90

G91 G28 Z0 ( TAP DRILL 1/2 - 13 HOLE )

T2 M6 ( 27/64 DRILL | T: 2 | D: 2 | H: 2 | DIA: .421875 )

G0 G90 G154 P1 X0. Y0. S1810 M3

Link to comment
Share on other sites

Here's how I did it.

 

You were on the right track, but he structure of the Mpmaster post isn't the same as the Haas post, so

some things need to be left alone or a small change gets too involved.

 

I copied the numbering logic from the Mpmaster, leaving the output logic from the Haas post alone.

 

code:

pwcs            #G54+ coordinate setting at toolchange

if mi1$ > one, # This section is from the Haas 4X post

[

sav_frc_wcs = force_wcs

if sub_level$ > 0, force_wcs = zero

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

[ # From here down is from the Mpmaster

if workofs$ < 6,

[

g_wcs = workofs$ + 54

*g_wcs

]

else,

[

if haas,

[

p_wcs = workofs$ - five #G154 P1 to P99 # Un-commented the Haas extended offset numbering

"G154", *p_wcs

#g_wcs = workofs$ + 104 #G110 to G129 # Commented out the Haas standard offset numbering

#*g_wcs

]

else,

[

p_wcs = workofs$ - five

"G54.1", *p_wcs

]

]

]

force_wcs = sav_frc_wcs

!workofs$

]

HTH smile.gif

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