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:

G41 output only on Finish pass


Recommended Posts

Hrmmmm, this is a fair amount of work.

First you have to know if multi passes are enabled prmcode = 15214

Then you have to know how many roughing passes were programmed prmcode = 15560

Then you have to know how many finish passes were programmed prmcode = 15380

Then you have to add the roughing passes & finish passes together to get the total number of passes programmed... sum of 2 above variables

Then you need a counter in the plinout postblock that would be triggered by the compensation on position cstart$ = 2000

Then you need to find were the G41 comes out from and put that section of code into brackets.... something like...

         if 15214 = 1,
             [
             if counter = total number of passes,
             G41
             ]
        	else, proceed as usual
    	else, proceed as usual

There is more to it that I listed (defining variables, pulling parameters.... etc...), but that should get you started

My favorite way to fix things is duct tape, so take it FWIW.rambo.gif

Link to comment
Share on other sites

2 operations, 1st has 3 roughing multi passes (no finish passes and no cutter comp), 2nd has 1 finish pass (no roughing passes but with cutter comp)

 

 


N3 ( T6 M06 ) (.480 FLAT ENDMILL)
N4 (TOOLPATH MAX - Z.1)
N5 (TOOLPATH MIN - Z-2.)
N6(Z STOCK TO LEAVE  = 0.)
N7(XY STOCK TO LEAVE = 0.)
N8 M11 (UNLOCK 
N9 G00 G17 G90 G54 B0. X-23.4675 Y0. S1069 M03
N10 M10 (LOCK 
N11 W0.
N12 G43 H6 Z.1 M08
N13 G94 G01 Z-2. F6.42
N14 X-23.2995
N15 G03 X-31.2255 R3.963
N16 X-23.2995 R3.963
N17 G01 X-23.4675
N18 X-23.4615
N19 X-23.2935
N20 G03 X-31.2315 R3.969
N21 X-23.2935 R3.969
N22 G01 X-23.4615
N23 X-23.4555
N24 X-23.2875
N25 G03 X-31.2375 R3.975
N26 X-23.2875 R3.975
N27 G01 X-23.4555
N28(Z STOCK TO LEAVE  = 0.)
N29(XY STOCK TO LEAVE = 0.)
N30 G41 D6 X-23.2875
N31 G03 X-31.2375 R3.975
N32 X-23.2875 R3.975
N33 G01 G40 X-23.4555
N34 M05
N35 G00 G91 G28 Z0. M09
N36 G90 H00
N37 M30
%%

 

 

1st op

 

 

 

2nd op

 

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