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:

MPMASTER


Recommended Posts

3 axis mill

I have 1 operation with 1 slot as the chain.

I then transform rotate 33 times.

I would like the post to perform 1 slot with a block # of N1, retract with G91 G28 Z0, M01 after the first slot

then have the next slot start with an N2 and full restart of tool info

ect, ect 33 times

 

1mm endmills, so I want to restart on any given slot due to breakage

 

I havent had any luck getting this output to work with transform paths even with force toolchange or safe retract

 

short of using a macro

anyone with an idea?

Link to comment
Share on other sites

I did try that,

worked except for getting an rpm call and a G43 "H" line which would be needed if the operator restarted on any of the 33 slots

 

I was looking for a way to force all the tool start code between slots.

to bad transform didnt honor the force retract between toolpath geometry

Link to comment
Share on other sites

First I don't think "Safe retract" will help but set mi10 to 1("M00 before operation") that should give you the safety codes.

Second go into the Transform op's parameters and on the 2nd tab go into the custom parameters and set custom integer #4 (just picked the 4th at random) to 17, (just a random unique #)

 

Then format a new variable for your counter...

fmt "N" 			4   twes    	#

Create a new postblock to handle the counting and output...

pwes
 	pbld,  twes, "---------------------------------------------------Here it is Wes", e$
 	twes = twes + 1

Initialize the variable at 1...

psof$        	#Start of file for non-zero tool number
 	twes = 1

Call up the postblock in the ptlchg_com postblock

if trans_mi4$ = 17, pwes

I put it right before these 2 lines...

  	spaces$=0
 	if output_z = yes$,

Then I put this in the ptlchg0 postblock

   	if trans_mi4$ = 17, pwes

Right before these lines....

    	if retractflg,
     	[
     	if safe_index,
       	[
       	if lock_codes = one & not(index) & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$

 

 

HTH

I woulda posted yesterday but forgot to check this fancy new "Post Processor Development Forum" ;);)

Link to comment
Share on other sites

N100 G00 G91 G28 Z0.
N110 G00 G17 G20 G40 G49 G80 G90 G94 G98 H00
N1 ---------------------------------------------------Here it is Wes
N120 T4 M06
N130 M00
( CONFIRM T4 H4 D4 DIA = 0.3125 )
N140(Z STOCK TO LEAVE  = 0.)
N150(XY STOCK TO LEAVE = 0.)
N160 M11 (UNLOCK C)
N170 M21 (UNLOCK 
N180 G00 G17 G90 G56 C0. B0. X.0313 Y-7.8125 S1711 M03
N190 M10 (LOCK C)
N200 M20 (LOCK 
N210 G43 H4 Z.25

N350 Z.2
N360 G00 Z.25
N370 M05
N380 G91 G28 Z0.
N390 M00
N2 ---------------------------------------------------Here it is Wes
N400 M11 (UNLOCK C)
N410 M21 (UNLOCK 
N420 G00 G90 G56 C0. B0. X6.7814 Y-3.8792 S1711 M03
N430 M10 (LOCK C)
N440 M20 (LOCK 
N450 G43 H4 Z.25 M09

N5 ---------------------------------------------------Here it is Wes
N1160 M11 (UNLOCK C)
N1170 M21 (UNLOCK 
N1180 G00 G90 G56 C0. B0. X-6.7814 Y3.8792 S1711 M03
N1190 M10 (LOCK C)
N1200 M20 (LOCK 
N1210 G43 H4 Z.25 M09

N1370 Z.2
N1380 G00 Z.25
N1390 M05
N1400 G91 G28 Z0.
N1410 M00
N6 ---------------------------------------------------Here it is Wes
N1420 M11 (UNLOCK C)
N1430 M21 (UNLOCK 
N1440 G00 G90 G56 C0. B0. X-6.7502 Y-3.9333 S1711 M03
N1450 M10 (LOCK C)
N1460 M20 (LOCK 
N1470 G43 H4 Z.25 M09

N1630 Z.2
N1640 G00 Z.25
N1650 M05
N1660 G91 G28 Z0.
N1670 G90 H00
N1680 M30
%

 

Let us know if it works for you.....

Link to comment
Share on other sites

sorry,

no I get sequence N blocks now, but with depth cuts on and keep tool down I get a full retract between depth cuts.

I need it to stay down until all depth cuts are done, then full retract with stop

new sequence # and full restart commands on next slot

Link to comment
Share on other sites

Not the prettiest, but here goes...

First, In the original op's parameters, change mi10 back to zero. I have rapid retract checked, clearance & retract off, feed plane set to 1.0 (abs), and top of stock is zero. Leave the transform op's params the same...

Add these 2 format statements.

fmt 	2   wesdepth	#
fmt 	2   sav_wes 	#

In the pparameter$ postblock add this line.

  		if prmcode$ = 10029, wesdepth = rpar(sparameter$,1)

Here is what my pwes postblock looks like now...

pwes
 	if wesdepth = sav_wes,
   	[
   	pbld, n$, "M05", e$ n$ "G91 G28 Z0.", e$ n$, "M00", e$

   	pbld,  twes, "---------------------------------------------------Here it is Wes", e$
   	twes = twes + 1
   	pbld, n$, *sgcode, *sgplane, *sgabsinc, *pwcs, pfcout, pfxout, pfyout,
     	pfspindleout, e$
   	pbld, n$, "G43", *tlngno$, pfzout, *scoolant, e$
   	]

At the end of the prapidout postblock add these lines...

 	if trans_mi4$ = 17 & not(zinc), 
   	[
   	pwes
   	]

At the end of the plinout postblock add this...

 	sav_wes = zabs

 

Give that a shot & let me know if you get what you want. I see good results here.

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