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 tool stage


Recommended Posts

I am using MPMASTER post V15.00. I understand about enabling staging in control and post. This is what gets posted

N60

 

G00 G90 G54 X4.125 Y.125 S10000 M03

 

N70

 

G43 H40 Z1.125 M08 T39

 

N80

 

Z1.1

but the machine needs

N60

 

G00 G90 G54 X4.125 Y.125 S10000 M03

 

 

N70

 

G43 H40 Z1.125 M08

 

T39 This is on it's own line

 

 

N80

 

Z1.1

 

When I move the tool down one line machine runs fine

 

Thank you

Link to comment
Share on other sites

phsm1_on #must remain before G43

pbld, n$, *tlngno$, pfzout, scoolant, next_tool$, e$

pcan2 #Added so M and G codes in canned text will output before phsm2_on

phsm2_on #must remain after G43

sav_coolant = coolant$

 

 

change to:

phsm1_on #must remain before G43

pbld, n$, *tlngno$, pfzout, scoolant, e$

next_tool$, e$

pcan2 #Added so M and G codes in canned text will output before phsm2_on

phsm2_on #must remain after G43

sav_coolant = coolant$

 

or something like that

Link to comment
Share on other sites

Thank you for all the help. Sorry it took a while to respond. You pointed me in the right direction and here is what I ended up with. I added the n$ and the e$ so I could get the line numbers to show up. Once again thank you

 

Brian Ripley

 

 

 

pstop

# Stop routine

 

pretract

 

pcom_moveb

 

if

mi10$=one, n$, *sm00, e$

 

sav_absinc

= absinc$

 

if wcstype

> one, absinc$ = zero

 

 

if lock_codes

= 1 & not(index) & rot_on_x, pbld, n$, *sunlock, "(UNLOCK)", e$

 

pcan1, pbld,

n$, *sgcode, *sgabsinc, pwcs, pfxout, pfyout,

 

 

pfcout,

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

 

if lock_codes

= 1 & not(index) & rot_on_x & cuttype = 0, pbld, n$, *slock, "(LOCK)", e$

 

pbld,

n$, "G43", *tlngno$, pfzout, scoolant, e$

 

 

n$, next_tool$, e$ #(change here move from line above)

 

sav_coolant

= coolant$

 

if

coolant$ = 1, sm09 = sm09_0

 

 

if

coolant$ = 2, sm09 = sm09_1

 

 

if

coolant$ = 3, sm09 = sm09_2

 

 

 

absinc$ = sav_absinc

 

And I change it here also

 

ptlchg_com

#Tool change common blocks

 

pcom_moveb

 

 

c_mmlt$ #Multiple tool subprogram call

 

 

#ptoolcomment

 

 

comment$

 

pcan

 

if

plane$ < 0, plane$ = 0

 

if stagetool

>= zero, pbld, n$, *t$, "M06", ptoolcomm, e$

 

 

spaces$=0

 

if output_z

= yes$,

 

[

 

preadbuf5

 

if (

opcode$ > 0 & opcode$ < 16) | opcode$ = 19,

 

[

 

 

n$, pspc, "(", "MAX - ", *max_depth, ")", e$

 

 

n$, pspc, "(", "MIN - ", *min_depth, ")", e$

 

]

 

]

 

 

spaces$=sav_spc

 

pstock

 

pindex

 

sav_absinc

= absinc$

 

if wcstype

> one, absinc$ = zero

 

if lock_codes

= 1 & not(index) & rot_on_x, pbld, n$, *sunlock, "(UNLOCK)", e$

 

pcan1, pbld,

n$, *sgcode, *sgabsinc, pwcs, pfxout, pfyout,

 

pfcout,

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

 

if lock_codes

= 1 & not(index) & rot_on_x & cuttype = 0, pbld, n$, *slock, "(LOCK)", e$

 

pbld,

n$, "G43", *tlngno$, pfzout, scoolant, e$

 

 

n$, next_tool$, e$ #(change here move from line above)

 

sav_coolant

= coolant$

 

if

coolant$ = 1, sm09 = sm09_0

 

if

coolant$ = 2, sm09 = sm09_1

 

if

coolant$ = 3, sm09 = sm09_2

 

 

absinc$ = sav_absinc

 

pcom_movea

 

toolchng

= zero

 

 

c_msng$ #Single tool subprogram call

 

last_op_id

= op_id$

 

last_cuttype

= cuttype

  • Like 1
Link to comment
Share on other sites

I don't know what the difference is. We have a 2008 VF6 that I use to run in a different part of the plant and had know problems. But this is a 2007 VFE with pallet changer. When the prestage tool is called out on the G43 line I get a "TT or unknown axis error". We run this with the H and T in agreement so I don't know if that has anything to do with it.

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