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:

Y0 Output


Kyle Waters
 Share

Recommended Posts

Hey Everybody,

I am using the mplmaster post, for a Mori NL2500SY and I have blocks with multiple turning tools on each block. I would like to be able to output Y0 on the approach so that regardless of the tool I am using, the turret is positioned correctly.

Thanks in advance.

Link to comment
Share on other sites

Have you done this as the posts tells you to do??

 

code:

#X coolant support

#X comment support

#Compatible with machine def changes for machine configurations

#Y-axis

#C-axis and required output type

 


Becuase from what I can see the post has what you need it in if you have the Machine Def set-up correctly.

 

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

start_xh = vequ(xh$)

pmap_home #Get home position, xabs

ps_inc_calc #Set start position, not incremental

#Toolchange home position

if home_type = one,

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

else,

[

#Toolchange g50 position

pbld, n$, *sg28ref, "U0.", [if y_axis_mch, "V0."], "W0.", e$ <---------right here

if home_type = zero, pbld, n$, *sg50, pfxout, pfyout, pfzout, e$

]

HTH

Link to comment
Share on other sites

I get the output on the home position move, but not on the move to the part for cutting.

This is what I am getting:

G55

N1T0101

G18G99

M46

G97S475M03

G0X4.825Z.005

M428

G50S3600

G96S600

G1X-.0625F.012

G0Z.105

M429

G28U0.V0.W0.

M05

 

And I would like:

 

G55

N1T0101

G18G99

M46

G97S475M03

G0X4.825Z.005Y0 <----output Y0

M428

G50S3600

G96S600

G1X-.0625F.012

G0Z.105

M429

G28U0.V0.W0.

M05

 

If I don't actually give a command, it stays off center.

Link to comment
Share on other sites

Good Morning Ron,

This is what I got with the ref point on the operation, I set it to X4.625 and Z.05 for approach and retract.

 

G55

N1T0101

G18G99

M46

G97S496M03

G0X4.625Z.05

M428

G50S3600

G96S600

X4.825

Z.005

G1X-.0625F.012

G0Z.105

X4.625

Z.05

M429

G28U0.V0.W0.

Link to comment
Share on other sites

Update, if I do a milling operation then a turning operation, it does output the Y0 with the turning operation,

-TOOL - 7 OFFSET - 7-

-1/2" E.M.-

-ROUGH KEY-

G55

N7T0707

G17G98

M45

M69

C0.

M68

G00X3.8623Y.362Z-.1516

G97S1604M13

M478

Z-.3016

G01Z-.3996F8.56

X3.438Y.1498F24.06

X3.2664Y.064

X1.1792

X.4484Y.4294

Y-.4294

X1.1792Y-.064

X3.2664

X3.438Y-.1498

X3.8623Y-.362

G00Z-.1516

M479

M69

G28U0.V0.W0.H0.M05

M01

-TOOL - 3 OFFSET - 3-

-OD FINISH RIGHT - 55 DEG. INSERT - DNMG-432-

-FINISH FACE-

G55

N3T0303

G18G99

M46

G97S992M03

G00X3.274Y0.Z0. <----output here

M478

G50S3600

G96S850

G01X1.5222F.006

G00Z.1

-FINISH O.D.-

X2.9296

G01Z0.

G03X3.1496Z-.11R.11

G01Z-.5875

G02X3.2679Z-.7144R.1656

G01X4.276Z-1.1373

G03X4.439Z-1.312R.2281

G01Z-1.6252

X4.5804Z-1.5545

M479

G28U0.V0.

M05

M30

Link to comment
Share on other sites

Ron,

That's exactly what I want, but I want it on every turning tool/operation at the start.

 

Craig,

I love it. I can't wait to get our collet chucks on this thing, so we can start the bar work. We did some initial numbers, and it looks like we can easily free up two machines. My boss is going nuts with scheduling already, and I want to get this post tweaked out. Lot's of home time hours. How is yours?

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