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:

Modifying mp master


Beardog
 Share

Recommended Posts

beardog try this i think this is what you want

 

search for this in the post.... ptlchg0$ #Call from NCI null tool change (tool number repeats)

 

if plane$ < 0 | opcode$ = 3 | opcode$ = 16, plane$ = 0

if op_id$ <> last_op_id, pbld, n$, sgplane, e$

pspindchng

if coolant$ <> 0 & coolant$ <> sav_coolant & sav_coolant, pbld, n$, sm09, e$

pbld, n$, scoolant, e$<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< PUT A # IN FRONT OF THIS LINE

sav_coolant = coolant$

if coolant$ = 1, sm09 = sm09_0

if coolant$ = 2, sm09 = sm09_1

if coolant$ = 3, sm09 = sm09_2

if op_id$ <> last_op_id, pstock

if sav_mi9 = 1, workofs$ = sav_workofs

 

HTH

Link to comment
Share on other sites

Here it is.

 

(T1 - 3.0 FACE MILL - H1 - D1 - D3.0000")

(COMPENSATION TYPE - COMPUTER)

N1 T1 M06 ( 3.0 FACE MILL )

(MAX - Z1.)

(MIN - Z0.)

(Z STOCK TO LEAVE = 0.)

G00 G54 G90 G49 G80 G40 G17

G101

M31

G00 X-4.5992 Y.4926 S6500 M03

G43 H1 Z1. M08

Z.1

G01 Z.01 F65.

X6.0265

Y-1.5372

X-4.5992

G00 Z.1

Y.4926

G01 Z0.

X6.0265

Y-1.5372

X-4.5992

G00 Z1.------------- no m9

M05

G0G53G49Z0.

G100X0.Y0.

M33

G0X0.Y0.

M01

(COMPENSATION TYPE - COMPUTER)

N2 T1 M06 ( 3.0 FACE MILL )

(MAX - Z1.)

(MIN - Z0.)

(Z STOCK TO LEAVE = 0.)

G00 G54 G90 G49 G80 G40 G17

G101

M31

G00 X-4.5992 Y.4926 S6500 M03

G43 H1 Z1. T1 ------------------------------no m8

Z.1

G01 Z.01 F65.

X6.0265

Y-1.5372

X-4.5992

G00 Z.1

Y.4926

G01 Z0.

X6.0265

Y-1.5372

X-4.5992

G00 Z1. M09

M05

G0G53G49Z0.

G100X0.Y0.

M33

G0X0.Y0.

M30

M02

Link to comment
Share on other sites

You said it is a mpmaster post, do you have "cool_zmove : yes$"? And are you using force tool change for the 2nd op? My mpmaster gives me this...

G00 G17 G20 G40 G80 G90
G91 G28 Z0.
G28 C0.
(COMPENSATION TYPE - WEAR COMP)
T1 M06 ( 1/8 FLAT ENDMILL)
(MAX - Z2.)
(MIN - Z0.)
G00 G17 G90 G54 C0. X-.125 Y.3125 S4278 M03
G43 H1 Z2. M08
Z.1 C0.
G94 G01 Z0. C0. F6.16
G41 D1 Y.1875 C0.
G03 X0. Y.0625 C0. I.125 J0.
G01 X3.2594 C0.
G03 X3.3844 Y.1875 C0. I0. J.125
G01 G40 Y.3125 C0.
Z.1 C0.
G00 Z2. C0.
M05
G91 G28 Z0. M09
M06
M01
G28 C0.
(COMPENSATION TYPE - WEAR COMP)
T1 M06 ( 1/8 FLAT ENDMILL)
(MAX - Z2.)
(MIN - Z0.)
G00 G17 G90 G54 C0. X3.3844 Y-.3125 S4278 M03
G43 H1 Z2. M08

Link to comment
Share on other sites

Give this a shot, (backup post first)

 

near the bottom of the ptlchg_com postblock add * in front of scoolant in the second line you see below

 	phsm1_on    	#must remain before G43
 	pbld, n$, "G43", *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$
 	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
 	plast

ptlchg0$ 		#Call from NCI null tool change (tool number repeats)

 

then in the pretract postblock add another * in front of the scoolant in the second line you see below.

 	pbld, n$, sccomp, *sm05, psub_end_mny, e$ 
 	pbld, n$, sgabsinc, sgcode, [if gcode$ = 1, sgfeed], *sg28, "Z0.", [if gcode$ = 1, feed], *scoolant, e$ 	################test
 	#if lock_codes = one & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$
 	#pbld, n$, *sg28, "X0.", "Y0.", protretinc, e$
 	#if lock_codes = one & rot_on_x & cuttype = 0, pbld, n$, *slock, slockcomm, e$
 	if abs(fmtrnd(cabs)) > 360 & nextop$ <> 1003 & not(index),
   	[
   	if lock_codes = one, pbld, n$, *sunlock, sunlockcomm, e$
   	rotretflg = 1
   	pbld, n$, `sg28, protretinc, scoolant, e{:content:}nbsp;   
   	rotretflg = 0
   	if lock_codes = one & cuttype = 0, pbld, n$, *slock, slockcomm, e$
   	]
 	absinc$ = sav_absinc
 	coolant$ = sav_coolant

pretract0    	#End of tool path, null toolchange

Link to comment
Share on other sites

Not sure if the toolchange after the first toolpath is considered null if you are forcing the toolchange, but in the ptlchg0 postblock you could add another * before scoolant... second line below.

 	pbld, n$, sccomp, psub_end_mny, e$
 	pbld, n$, sgabsinc, sgcode, [if gcode$ = 1, sgfeed], *sg28, "Z0.", [if gcode$ = 1, feed], *scoolant, e$
 	#if lock_codes = one & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$
 	#pbld, n$, *sg28, "X0.", "Y0.", protretinc, e$
 	#if lock_codes = one & rot_on_x & cuttype = 0, pbld, n$, *slock, slockcomm, e$
 	if abs(fmtrnd(cabs)) > 360 & nextop$ <> 1003 & not(index),
   	[
   	if lock_codes = one, pbld, n$, *sunlock, sunlockcomm, e$
   	rotretflg = 1
   	pbld, n$, `sg28, protretinc, e$
   	rotretflg = 0
   	if lock_codes = one & cuttype = 0, pbld, n$, *slock, slockcomm, e$
   	]
 	absinc$ = sav_absinc
 	coolant$ = sav_coolant

protretinc  	#Reset the C axis revolution counter

 

 

If you want to find it for sure run the post debugger and find out where that G00 Z1. (the line you want the M09 on) is coming from.

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