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 Lathe Post


RACINGCONVERTERS
 Share

Recommended Posts

Try this.

 

code:

ltlchg$          #Toolchange, lathe                                        

toolchng = one

gcode$ = zero

copy_x = vequ(x$)

pcc_capture #Capture LCC ends, stop output RLCC

c_rcc_setup$ #Save original in sav_xa and shift copy_x for LCC comp.

pcom_moveb #Get machine position, set inc. from c1_xh

c_mmlt$ #Position multi-tool sub, sets inc. current if G54...

ptoolcomment

comment$

if home_type < two, #Toolchange G50/home/reference position

[

sav_xh = vequ(copy_x)

sav_absinc = absinc$

absinc$ = zero

pmap_home #Get home position, xabs

ps_inc_calc #Set start position, not incremental

#Toolchange home position

if home_type = one,

pbld, n$, *sgcode, pfxout, pfzout, e$

else,

[

#Toolchange g50 position

pbld, n$, *sg28ref, "U0.", "W0.", e$

toolno = t$ * 100 + zero

if home_type = m_one, pbld, n$, *sgcode, "X0", "Z10.", *toolno, e$ #<---------- Try here

else, pbld, n$, *sg50, pfxout, pfzout, e$

Link to comment
Share on other sites

I just tried to use the ref point and it put it in but it also put in a G28 U0. W0. and this is what I am wantig to change.

 

Sorry if I was not clear but I am wanting this as my tool change position Somthing like this

 

 

Z1.9505

G1 X11.5048

X1.41

Z2.0479

X1.4807 Z2.0832

M9

G0 X15. Z10.

M01

(55 DEG T&F INSERT - DNMG-432)

( ROUGH CONCAVE FACE OF DRIVE COVER )

G0 T0606

G97 S1500 M04

M8

G0 G54 X11.5148 Z2.

G50 S1500

G96 S1200

G1 Z1.95 F.012

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