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:

Post help.


Recommended Posts

Good morning all,

I am working on Custom drill cycle for Probe (use Mpmaster for base).

This is what i get so far and i need help to get it right.

 

Code

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

(PROBE Z)

N41 (6MM PROBE)

G0 G17 G40 G80 G90 T41

G0 G28 G91 Z0

G90

M06

(MAX - Z3.)

(MIN - Z-.25)

G00 G17 G90 G54 X.9262 Y2.3656

G00 Z3.<---------------------------------I need to move this line up

G94

G65P9810 X.9262 Y2.3656 F120.

G65P9810 Z.1

G65P9811 Z0. S1. (PROBE SURFACE SET Z)

G65P9810 Z3.

X3. Y2. <----------------------------------Take this line out.

G65 P9810 X3. Y2. F120.

G65 P9810 Z-.25

G65 P9814 D0.5 S1. (PROBE BOSS/BORE)

G65 P9810 Z.1

M05

G0 G91 G28 Z0.

G28 Y0.

G90

M127 (CONVEYOR OFF)

M30

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

 

and here is what i need

 

Code

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

(PROBE Z)

N41 (6MM PROBE)

G0 G17 G40 G80 G90 T41

G0 G28 G91 Z0

G90

M06

(MAX - Z3.)

(MIN - Z-.25)

G00 G17 G90 G54 X.9262 Y2.3656

G94

G65P9810 X.9262 Y2.3656 F120.

G65P9810 Z.1

G65P9811 Z0. S1. (PROBE SURFACE SET Z)

G65P9810 Z3.

G65 P9810 X3. Y2. F120.

G65 P9810 Z-.25

G65 P9814 D0.5 S1. (PROBE BOSS/BORE)

G65 P9810 Z.1

M05

G0 G91 G28 Z0.

G28 Y0.

G90

M127 (CONVEYOR OFF)

M30

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

 

Thanks in advance

Link to comment
Share on other sites

A couple of questions. You said you wanted to move the Z3 up in code, but the desired output does not have this move, do you just want the Z3 line removed?

 

Also I'm not sure how you've set up the probing cycles in the post. In mastercam I'm assuming there are two separate operations used to produce this code (since there are two different probing cycles used). Can you please confirm?

Link to comment
Share on other sites

I am really sorry ( this is what happen when i try to manually edit my code which i am doing in my shop right now!!!)

 

Yes, there are two separate probe cycle used and It should be read:

 

Code

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

(PROBE Z)

N41 (6MM PROBE)

G0 G17 G40 G80 G90 T41

G0 G28 G91 Z0

G90

M06

(MAX - Z3.)

(MIN - Z-.25)

G00 G17 G90 G54 X.9262 Y2.3656 Z3. <------------------------------ move Z3.to here

G94

G65P9810 X.9262 Y2.3656 F120.

G65P9810 Z.1

G65P9811 Z0. S1. (PROBE SURFACE SET Z)

G65P9810 Z3.

G65 P9810 X3. Y2. F120.

G65 P9810 Z-.25

G65 P9814 D0.5 S1. (PROBE BOSS/BORE)

G65 P9810 Z.1

M05

G0 G91 G28 Z0.

G28 Y0.

G90

M127 (CONVEYOR OFF)

M30

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

 

Here is how i set this up.

 

Code

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

#Use this postblock to customize drilling cycles 8 - 19

pdrlcommonb

probeflg = 0

dwell2 = dwell$

dwell1 = dwell$

offupdate1 = peckclr$

offupdate2 = retr$

if offupdate2 > 0 & offupdate1 = 0,

[

offupdate2 = offupdate2 + 100

]

if drillcyc$ = 8,

[

"G65 P9810", pfxout, pfyout, "F120.", e$

[

zbossdep = refht_a

"G65 P9810", [if peck1$=0, zbossdep], [if peck1$ = 1, z$], e$

]

"G65 P9814", *dwell1, [if peck1$ = 0, pfzout], [if offupdate1 > 0 & offupdate2 = 0, *offupdate1],

[if offupdate2 > 0 & offupdate1 = 0, *offupdate2], "(PROBE BOSS/BORE)", e$

z$ = refht_a

"G65 P9810", *z$, e$

if retr$ > 48, result = mprint(serror), exitpost$

if retr$ < 0, result = mprint(serror), exitpost$

if offupdate1 > 0 & offupdate2 > 0, result = mprint(serror), exitpost$

]

 

if drillcyc$ = 11,

[

z$ = refht_a

"G65P9810", pfxout, pfyout, "F120.", e$

"G65P9810", pxout, pyout, z$, e$

"G65P9811", pfzout, [if offupdate1 > 0 & offupdate2 = 0, *offupdate1],

[if offupdate2 > 0 & offupdate1 = 0, *offupdate2], "(PROBE SURFACE SET Z)", e$

z$ = initht$, e$

"G65P9810", *z$, e$

if retr$ > 48, result = mprint(serror), exitpost$

if retr$ < 0, result = mprint(serror), exitpost$

if offupdate1 > 0 & offupdate2 > 0, result = mprint(serror), exitpost$

]

 

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