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:

How do I force the depth of cut each operation with same tool Z depth?


Recommended Posts

Hi,

I'm having problem that the NOTE SYSTEM does not output each different Z depth out as in the "()". Please take at the bottom

 

ps: it seem likes it takes the highest Z depth number and wouldn't update if the Z depth is changed for the next toolpath Z-depth...

 

Thanks

-------------------------------

N4(SPOT 8-32 , DOC-.104)

G0 G17 G40 G49 G53 G80 G90 Z0

T4 M6(.375, X90 DEG SPOT DR, 2FLT)

G0 G90 G54

X.505 Y-1.85 S5500 M3

G43 H4 Z1. T5 M8(DOC= Z-.128)

G98 G82 Z-.104 R.1 P2 F15.5

X2.205

G80

(DOC= Z-.128)

(SPOT 10-32, DOC-.095)

X.36 Y-3.68

G98 G82 Z-.095 R.1 P0 F15.5

X3.16

G80

(DOC= Z-.128)

(SPOT .221 HOLES)

Y-.929

G98 G82 Z-.11 R.1 P0 F15.5

Y-2.929

X1.1094 Y-.8784

G80

(DOC= Z-.128)

(SPOT .252 HOLE)

X1.36 Y-.3

G98 G82 Z-.128 R.1 P0 F15.5

G80

(DOC= Z-.128)

(SPOT SLOT)

Y-3.3

G98 G82 Z-.11 R.1 P0 F15.5

G80 M9

M5

G0 G17 G40 G49 G53 G80 G90 Z0

G53 Y0

M1

Link to comment
Share on other sites

Here it is:

 

Define 2 variables:

operation_depth : 0 # Operation full depth
last_op_id : 0 # OP tracking ID

 

 

Format output of DOC:

fmt "Z" 2 operation_depth # Operation full depth

 

 

At psof$ postblock put these 2 lines somewhere near to comment (comment$)

ptoolcomment
comment$
#
"( DOC =", *operation_depth, ")", e$
last_op_id = op_id$
#
pcan
pbld, n$, *t$, sm06, e$

 

 

At ptlchg0$ postblock put these logic somewhere near to comment (comment$)

Also "!op_id$" have to be there!

c_mmlt$ #Multiple tool subprogram call
 comment$
 #
 if op_id$ <> last_op_id,
 [
 "( DOC =", *operation_depth, ")", e$
 last_op_id = op_id$
 ]
 #
 !op_id$
 pcan
 pbld, n$, sgplane, e$
 pspindchng

 

 

Do the same at ptlchg$ postblock:

 c_mmlt$ #Multiple tool subprogram call
 ptoolcomment
 comment$
 #
 "( DOC =", *operation_depth, ")", e$
 last_op_id = op_id$
 #
 !op_id$
 pcan
 pbld, n$, *t$, sm06, e$

 

 

Add this parameter read at pparameter$ postblock:

if prmcode$ = 10029, operation_depth = rpar(sparameter$, 1) #Capture the full depth of OP

 

 

Well? :coffee:

  • Like 1
Link to comment
Share on other sites

Thank you Peter, I got it worked. I would like to modify a little, would you mind?

 

Thankful for your help.

 

____________________________

N1(ROUGH MILL .03 FROM TOP DOWN TOP 2.220THK)

G0 G17 G40 G49 G53 G80 G90 Z0

T1 M6(3.000" HERTEL FACEMILL)

G90 G54(XY STK.= -.25)

X13.4599 Y3.5501 S5000 M3

G43 H1(D31) Z.12 T2 M8(DOC= Z0.) -----------> GOOD

G1 Z0. F50.

G41 D31 X11.76

X-.01

G40 X-1.7099

G0 Z.1

Z.12

(DOC= Z0.) ---------------> I WOULD LIKE TO REMOVE IT

Y1.2499

G1 Z0.

G41 D31 X-.01

X11.76

G40 X13.4599

G0 Z.1 M9

M5

G0 G17 G40 G49 G53 G80 G90 Z0

G53 Y0

M1

Link to comment
Share on other sites
  • 4 weeks later...

This one shows...

 

N2(, CUT#18)

G0 G17 G40 G49 G53 G80 G90 Z0

T2 M6(.515, 33/64" STUB DRILL )

G90 G54

X-4.542 Y11.4162 S3000 M3

G43 H2 Z.1 T3 M8(DOC= Z-.62)

G99 G83 Z-.7368 R.1 Q.1 F25.

X-2.7117 Y5.4297

X2.7117

X4.542 Y11.4162

G80 M9

M5

G0 G17 G40 G49 G53 G80 G90 Z0

G53 Y0

M1

(*)

 

 

I have my Z is Z-.62 in my DEPTH... parameter

and I have my TIP COMP is .10679

 

Is there away I can make DEPTH + TIP LENGTH so it can appear Z-.7368?

 

Can you assist me how to define the STOCK TO LEAVE ON FLOORS? I found out that the operation_depth only reads out from the DEPTH but I would like it to SUBTRACT the STOCK TO LEAVE ON FLOOR so it would match the calulation on the map.

 

Therefore, how may I define the STOCK TO LEAVE ON FLOORS like

 

operation_depth + stock to leave on floor then it would be the right one from the G-Codes.

Link to comment
Share on other sites

G43 H2 Z.1 T3 M8(DOC= Z-.62)

G99 G83 Z-.7368 R.1 Q.1 F25.

X-2.7117 Y5.4297

 

I have my Z is Z-.62 in my DEPTH... parameter

and I have my TIP COMP is .10679

 

Is there away I can make DEPTH + TIP LENGTH so it can appear Z-.7368?

 

Can you assist me how to define the STOCK TO LEAVE ON FLOORS? I found out that the operation_depth only reads out from the DEPTH but I would like it to SUBTRACT the STOCK TO LEAVE ON FLOOR so it would match the calulation on the map.

 

Hi Steven! Good thing that you catched this!

Need some improvement, I'll work on it! I didn't think about this issue when I made it.

I'll be back. ;)

Link to comment
Share on other sites

Is there away I can add TIP COMP "LIP LENGTH" value into the "Depth..." value in the LINKING PARAMETERS PAGE?

 

 

I think that may be easier that way because I'm still having same problem for miss-calculating.

 

ps: I mean, the final Z-DEPTH in the G-CODES...

 

 

N1(3.0000 MITSUBISHI "SE300R03060" 90DEG 6FLTS .500LOC SHELL MILL)

G0 G17 G40 G49 G53 G80 G90 Z0

T1 M6(SKIM CUT RAW MATERIAL, CUT#2)

G90 G54

X1.65 Y.7874 S7000 M3

G43 H1(D31) Z1. T2 M8

Z.15

G1 Z.005 F50. ==============> FINAL ONE

X-22.9098

Z0.

X1.65

G0 Z1. M9

M5

G0 G17 G40 G49 G53 G80 G90 Z0

G53 Y0

M1

(*)

 

Thanks.

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