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:

4TH Axis POst Help


Recommended Posts

I am using the Generic Haas 4ax Post that comes with Mastercam X6, I have made some mods and its working well but one thing is stumping me.

 

Curently post like this:

%

O0( BS )

( T5 | 1/8 FLAT ENDMILL | H5 )

/ G91 G28 Z0. <--------------------------------------------*

/ G28 X0. Y0. <-------------------------------------------------I need these lines gone

/ G92 X5.164501 Y11.144155 Z8.7067681 <--------*

N1( T5 | 1/8 FLAT ENDMILL | H5 )

T5 M6

G0 G90 G54 X-1.3214 Y1.1037 A-7. S7500 M3

G43 H5 Z8.

 

I have Mastercam set properly with #2 in the Integer but it seems like its set to 0

so Im thinking its in my post. It only does it in the top of the program

 

Please Help... Thanks to all who reply

Link to comment
Share on other sites

Make sure you have this right in your post.

 

 

 

psof$ #Start of file for non-zero tool number

 

 

prv_tloffno$ = c9k

 

pcuttype

 

toolchng = one

 

if ntools$ = one,

 

[

 

#skip single tool outputs, stagetool must be on

 

stagetool = m_one

 

!next_tool$

 

]

 

pbld, n$, *smetric, e$

 

pbld, n$, *sgcode, *sgplane, scc0, sg49, sg80, *sgabsinc, e$

 

sav_absinc = absinc$

 

if mi1$ <= one, #G92 Local Work coordinate system

 

[

 

absinc$ = one

 

pfbld, n$, sgabsinc, *sg28ref, "Z0.", e$

 

pfbld, n$, *sg28ref,"Y0.", e$

 

pfbld, n$, sg92, *xh$, *yh$, *zh$, e$

 

absinc$ = sav_absinc

 

]

 

if mi1$ = three | mi1$ = four, #G52 Work Shift

 

[

 

absinc$ = one

 

pfbld, n$, sgabsinc, *sg28ref, "Z0.", e$

 

pbld, n$, sg52, *xh$, *yh$, *zh$, e$

 

if xh$ | yh$ | zh$, shft_flg = one

 

else, shft_flg = zero

 

absinc$ = sav_absinc

 

]

Link to comment
Share on other sites

pfbld, n$, sgabsinc, *sg28, "Z0.", e$

pfbld, n$, *sg28, "X0.", "Y0.", e$

pfbld, n$, "G92", *xh$, *yh$, *zh$, e$

 

You could always hard code these lines out of the post by adding a leading "#" in the start of file section in the .PST

shouldn't need to do this; there must be a simpler explination

Link to comment
Share on other sites

Here is my Start of file if anyone can see a problem please help

 

And thank you all for the help so far

 

sof$ #Start of file for non-zero tool number

prv_tloffno$ = c9k

pcuttype

toolchng = one

if ntools$ = one,

[

#skip single tool outputs, stagetool must be on

stagetool = m_one

!next_tool$

]

pbld, n$, *smetric, e$

pbld, n$, *sgcode, *sgplane, scc0, sg49, sg80, *sgabsinc, e$

sav_absinc = absinc$

if mi1$ <= one, #G92 Local Work coordinate system

[

absinc$ = one

pfbld, n$, sgabsinc, *sg28ref, "Z0.", e$

pfbld, n$, *sg28ref, "X0.", "Y0.", e$

pfbld, n$, sg92, *xh$, *yh$, *zh$, e$

absinc$ = sav_absinc

]

if mi1$ = three | mi1$ = four, #G52 Work Shift

[

absinc$ = one

pfbld, n$, sgabsinc, *sg28ref, "Z0.", e$

pbld, n$, sg52, *xh$, *yh$, *zh$, e$

if xh$ | yh$ | zh$, shft_flg = one

else, shft_flg = zero

absinc$ = sav_absinc

]

pcom_moveb

pcheckaxis

c_mmlt$ #Multiple tool subprogram call

ptoolcomment

comment$

pcan

pbld, n$, *t$, sm06, e$

pindex

if mi1$ > one, absinc$ = zero

pcan1, pbld, n$, *sgcode, *sgabsinc, pwcs, pfxout, pfyout, pfcout,

*speed, *spindle, pgear, strcantext, e$

pbld, n$, sg43, *tlngno$, pfzout, pstagetool, e$

pbld, n$, scoolant, e$

absinc$ = sav_absinc

pbld, n$, sgabsinc, e$

pcom_movea

toolchng = zero

c_msng$ #Single tool subprogram call

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