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:

My probe post problem


westerfieldc
 Share

Recommended Posts

I'm working on my post to use drill cycles to output probe cycles. I'm getting there but I think I'm making some formating errors.

 

Here is my post:

 

 

#Probing Varibles

drl_prm1 : 0 #Custom Drill Parameter 1 - X Approach + / -

drl_prm2 : 0 #Custom Drill Parameter 2 - Y Approach + / -

drl_prm3 : 0 #Custom Drill Parameter 3 - Z Approach + / -

drl_prm4 : 0 #Custom Drill Parameter 4 - Diameter

drl_prm5 : 0 #Custom Drill Parameter 5 - X Width

drl_prm6 : 0 #Custom Drill Parameter 6 - Y Width

drl_prm7 : 0 #Custom Drill Parameter 7 - Web / Boss Z

drl_prm8 : 0 #Custom Drill Parameter 8 -

drl_prm9 : 0 #Custom Drill Parameter 9 - Z Safety Retract

drl_prm10 : 0 #Custom Drill Parameter 10 - Output Offset

 

# Probing Cycle Formatting

fmt X 2 drl_prm1$ #Custom Drill Parameter 1 - X Approach + / -

fmt Y 3 drl_prm2$ #Custom Drill Parameter 1 - Y Approach + / -

fmt Z 3 drl_prm3$ #Custom Drill Parameter 1 - Z Approach + / -

fmt D 2 drl_prm4$ #Custom Drill Parameter 1 - Diameter

fmt X 2 drl_prm5$ #Custom Drill Parameter 1 - X Width

fmt Y 2 drl_prm6$ #Custom Drill Parameter 1 - Y Width

fmt Z 2 drl_prm7$ #Custom Drill Parameter 1 - Web / Boss Z

fmt 2 drl_prm8$ #Custom Drill Parameter 1 -

fmt Z 2 drl_prm9$ #Custom Drill Parameter 1 - Z Safety Retract

fmt S 3 drl_prm10$ #Custom Drill Parameter 1 - Output Offset

 

 

pdrlcst$ #Custom drill cycles 8 - 19 (user option)

if drillcyc$ = 8, pdrlcst2

if drillcyc$ = 9, pdrlcst3

if drillcyc$ = 10, pdrlcst4

if drillcyc$ = 11, pdrlcst5

if drillcyc$ = 12, pdrlcst6

if drillcyc$ = 13, pdrlcst7

 

pdrlcst2

sub_prg_call = peck1$

pcan1, pbld, n$, *sg00, *sgabsinc, pfxout, pfyout, pfcout,

pindexdrl, strcantext, e$

pbld, n$, "M98", *sub_prg_call, e$

pcom_movea

 

pdrlcst3

pbld, "(X SINGLE POINT MEASURE)", e$

pbld, n$, "G65", "P9832", e$

pbld, n$, drl_prm1$ e$

pbld, n$, "G65", "P9810", pfzout, "F3000", e$

pbld, n$, "G65", "P9811", pfxout, peck1$, drl_prm10$, e$

pbld, n$, *sg00, drl_prm9$, e$

pcom_movea

 

pvr_drl_prm1 = -9999

pvr_drl_prm2 = -9999

pvr_drl_prm3 = -9999

pvr_drl_prm4 = -9999

pvr_drl_prm5 = -9999

pvr_drl_prm6 = -9999

pvr_drl_prm7 = -9999

pvr_drl_prm8 = -9999

pvr_drl_prm9 = -9999

pvr_drl_prm10 = -9999

 

pdrlcst4

pdrlcommonb

pbld, "(Y SINGLE POINT MEASURE)", e$

pbld, n$, "G65", "P9832", e$

pbld, n$, drl_prm2$, e$

pbld, n$, "G65", "P9810", pfzout, "F3000", e$

pbld, n$, "G65", "P9811", pfyout, peck1$, drl_prm10$, e$

pbld, n$, *sg00, *drl_prm9$, e$

pcom_movea

 

pvr_drl_prm1 = -9999

pvr_drl_prm2 = -9999

pvr_drl_prm3 = -9999

pvr_drl_prm4 = -9999

pvr_drl_prm5 = -9999

pvr_drl_prm6 = -9999

pvr_drl_prm7 = -9999

pvr_drl_prm8 = -9999

pvr_drl_prm9 = -9999

pvr_drl_prm10 = -9999

 

pdrlcst5

pdrlcommonb

pbld, "(Z SINGLE POINT MEASURE)", e$

pbld, n$, "G65", "P9832", e$

pbld, n$, "G65", "P9810", drl_prm3$, "F3000", e$

pbld, n$, "G65", "P9811", pfzout, peck1$, drl_prm10$, e$

pbld, n$, *sg00, *drl_prm9$, e$

pcom_movea

 

pvr_drl_prm1 = -9999

pvr_drl_prm2 = -9999

pvr_drl_prm3 = -9999

pvr_drl_prm4 = -9999

pvr_drl_prm5 = -9999

pvr_drl_prm6 = -9999

pvr_drl_prm7 = -9999

pvr_drl_prm8 = -9999

pvr_drl_prm9 = -9999

pvr_drl_prm10 = -9999

 

pdrlcst6

pdrlcommonb

pbld, "(BORE / BOSS MEASURE)", e$

pbld, n$, "G65", "P9832", e$

pbld, n$, "G65", "P9810", drl_prm3$, "F3000", e$

pbln, n$, "G65", "P9814", drl_prm4$, peck1$, drl_prm7$,

drl_prm10$, e$

pbln, n$, *sg00, *drl_prm9$, e$

pcom_movea

 

pvr_drl_prm1 = -9999

pvr_drl_prm2 = -9999

pvr_drl_prm3 = -9999

pvr_drl_prm4 = -9999

pvr_drl_prm5 = -9999

pvr_drl_prm6 = -9999

pvr_drl_prm7 = -9999

pvr_drl_prm8 = -9999

pvr_drl_prm9 = -9999

pvr_drl_prm10 = -9999

 

pdrlcst7

pdrlcommonb

pbld, "(WEB / POCKET MEASURE)", e$

pbld, n$, "G65", "P9832", e$

pbld, n$, "G65", "P9810", drl_prm3$, "F3000", e$

pbln, n$, "G65", "P9812", drl_prm5$, drl_prm6$, peck1$, drl_prm7$, drl_prm10$, e$

pbln, n$, *sg00, *drl_prm9$, e$

pcom_movea

 

pvr_drl_prm1 = -9999

pvr_drl_prm2 = -9999

pvr_drl_prm3 = -9999

pvr_drl_prm4 = -9999

pvr_drl_prm5 = -9999

pvr_drl_prm6 = -9999

pvr_drl_prm7 = -9999

pvr_drl_prm8 = -9999

pvr_drl_prm9 = -9999

pvr_drl_prm10 = -9999

 

here is my code:

(RENISHAW MP10 PROBE)

N15 T40 M06

N20

N25 G00 G17 G90 G54.1 P1 X0. Y0. S1800 M03

N30 G43 H40 Z3.

N35 G94

(WEB / POCKET MEASURE)

N40 G65 P9832

N45 G65 P9810 Z3. F3000

N50 G65 P9812 Y26.5 Q.5 Z-.25 S101.

N55 G00 Z3.

(WEB / POCKET MEASURE)

N60 G65 P9832

N65 G65 P9810 Z3. F3000

N70 G65 P9812 X41. Y0. Z1.25 S101.

N75 G00 Z3.

N80 M05

N85 G91 G28 Z0.

N90 G28 Y0.

N95 G90

N100 M30

 

I don't want the yo. to show up on line 70. Any ideas would be helpful.

 

Thanks

Link to comment
Share on other sites

Well the way you have defined it you are telling it to here:

 

code:

pdrlcst7

pdrlcommonb

pbld, "(WEB / POCKET MEASURE)", e$

pbld, n$, "G65", "P9832", e$

pbld, n$, "G65", "P9810", drl_prm3$, "F3000", e$

pbln, n$, "G65", "P9812", drl_prm5$, drl_prm6$, peck1$, drl_prm7$, drl_prm10$, e$

pbln, n$, *sg00, *drl_prm9$, e$

pcom_movea

To aviod it when the value is Zero. You need define the drl_prm6$ in a different method.

 

Try like so:

code:

 

[if drl_prm6$ > 0, drl_prm6$]

Now this will only work if Y is Zero. If the value is something else and you want a trigger for it then you would need to define this a different way.

 

HTH

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