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:

Recommended Posts

Hey guys,

I have my NL2000SY Post (using MPLMaster injected with CNC's pick/pull/cut off logic) 99.99% dialed. One last thing I can't fix is pchuck is outputting in the prior Op's pl_retract and I want it to output after.

 

Currently this is what I'm getting:

 

 

N5

(TOOL - 121 OFFSET - 121)

(10-32 ROLL FORM - R1253)

G0 G53 X-7.

G0 G53 Z0.

G0 G53 Y0.

G0 T12221

G54

G18 G99

G0 Y0.

G97

M8

G0 X0. Z.25

M329 S500

G84 Z-.5 R-.15 F.0313

G80

G0 Z.25

(PICKOFF SPINDLE - UNCLAMP AND EJECT PART)

M210 (OPEN CHUCK SECOND SPINDLE) <------------ This is the next op but outputs in the previous

M9

G0 G53 X-7.

G0 G53 Z0.

G0 G53 Y0.

M01

 

(PRE-POSITION CUTOFF TOOL)

N6

<-----------------------------------------------Would like it here

(TOOL - 7 OFFSET - 7)

(OD CUTOFF RIGHT - TK2041/ TR2212 INSERT - GFN-3 IC354)

G0 G53 X-7.

G0 G53 Z0.

G0 G53 Y0.

G0 T0707

G54

G18 G99

G0 Y0.

M35

G97 S1500 M03

G0 X12. Z0.

(PICKOFF SPINDLE - MOVE TO CLEARANCE DISTANCE)

G0 B0. (MOVE SECOND SPINDLE TO DEFINED POINT)

 

 

 

 

 

 

 

Later on in the file same thing. Last Op is a "Chuck Open" yet it places it in the previous Op:

 

 

 

 

 

 

 

M01

(TOOL - 3 OFFSET - 3)

(1/4" SPOT DRILL - O600)

G0 G53 X-7.

G0 G53 Z0.

G0 G53 Y0.

G0 T0303

G55

M45

G17 G98

M69

G28 H0.

G0 C37.5

G97 S750 M13

G0 Y0.

M8

G0 X.875 Z15.0825

G83 Z15.9065 R.7 F4. M268

C147.5

G80 M05

(PICKOFF SPINDLE - UNCLAMP AND EJECT PART)

M210 (OPEN CHUCK SECOND SPINDLE) <------------ This is the next op but outputs in the previous

M9

M69

M46

G0 G53 X-7.

G0 G53 Z0.

G0 G53 Y0.

M01

 

<-----------------------------------------------Would like it here

M30

%

Link to comment
Share on other sites

Chris,

That is a good start. How do I suppress the pl_retract?

 

I'm now getting this post error.

 

16 Jul 2012 08:02:19 AM - <2> - RUN TIME - PST(2199), NCI(250) - The value of the string select selection variable is out of range: 903.00

 

This Line in pl_retract:

 

else,

[

#Retract to reference return

pbld, n$, `sgcode, psccomp, e$

 

Thanks!

 

 

Ron,

I tried that but I'm only a hack so I couldn't figure it out. Chris's method got me moving in the right direction.

Link to comment
Share on other sites

I didn't get that error until calling pl_retract in pchuck$

 

 

pl_retract #Retract tool based on next tool gcode, lathe (see ptoolend)

cc_pos$ = zero

if home_type = one,

[

xh$ = vequ(start_xh)

pmap_home #Get home position, xabs

ps_inc_calc #Set inc.

pbld, n$, psccomp, e$

if lathe_stop | synch_flg | n1_gcode = 1003 | n1_posttype <> posttype$ | n1_spindle_no <> spindle_no$,

[

pbld, n$, pnullstop, e$

]

pforcelivetoolingoff

if css_actv$ & css_end_rpm & not(lathe_stop | synch_flg | n1_gcode = 1003 | n1_posttype <> posttype$ | n1_spindle_no <> spindle_no$),

[

pspindle

prpm

]

pcan1, pbld, n$, *sgcode, pfxout, pfyout, pfzout, [if drop_offset, *toolno], strcantext, e$

]

else,

[

#Retract to reference return

pbld, n$, `sgcode, psccomp, e$

 

if css_actv$ & css_end_rpm & not(lathe_stop | synch_flg | n1_gcode = 1003 | n1_posttype <> posttype$ | n1_spindle_no <> spindle_no$),

[

if mi10$ = 1,

[

]

else,

[

pspindle

prpm

]

]

if lathe_stop | synch_flg | n1_gcode = 1003 | n1_posttype <> posttype$ | n1_spindle_no <> spindle_no$ | mi10$ = 1,

[

pbld, n$, pnullstop, e$

]

pforcelivetoolingoff

 

if mr10$ = 1, pbld, "M0", e$

if mi10$, pbld, "M26", e$

if g53,

[

pbld, n$, *sgcode, *sg53, *xhome, [if sof = 1, *bhome], e$

pbld, n$, *sgcode, *sg53, *zhome, e$

if y_axis_mch,

[

pbld, n$, *sgcode, *sg53, *yhome, e$

]

]

else,

[

pbld, n$, *sg28ref, "U0.", [if y_axis_mch, "V0."], e$

pbld, n$, "G53B0.", e$

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

]

if home_type = m_one & drop_offset, pbld, n$, *toolno, e$

if home_type > m_one & drop_offset, pbld, n$, *toolno, e$

]

if synch_flg, pbld, n$, "M36", e$ #synch off

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