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:

Macro Help


X-L Engineering Corp
 Share

Recommended Posts

I hope I can explain this well enough.

I'm running a probing routine to align a milled slot in the "Y" axis. First I'm going to do a 3 Point Bore for the Datum and then a Web Measure in the slot I need to have it to calculate a G68 Rotate of the program I was going to do an ATAN but I'm not sure if that is what I should be using to produce the correct G68 Rotate.

 

Any help would be appreciated I get buy with Probe Programming but I’m not that strong in it.

Link to comment
Share on other sites

This is my Routine that I have now.

 

N1G90T30M6(RENISHAW TOUCH PROBE .1181 DIA,)

G0G90G54.1P3G17G94X0.Y0.T2

G43H30Z1.

M144(PROBE ON)

G0G90G54.1P3X0.Y.13

G65P9810Z.25F100.

G65P9810Z-.5F200.

G65P9812X.195S103(WEB MEASUREMENT)

G65P9810Z.25F200.

G0G90G54.1P3X0.Y.13

#105=#135

G0G90G54.1P3X0.Y0.

G65P9810Z-.21F100.

G65P9814D.4194A60.B180.C300.S103(3 POINT BORE MEASURE DATUM .4194 DIA,)

G65P9810Z.25F200.

G0G90G54.1P3X0.Y0.

#106=#135

IF[#106GT#105]GOTO30

IF[#106LT#105]GOTO40

N30

#107=[#106-#105]

#107=[#107*[-1.]]

#108=ATAN[ABS[#107]/ABS[.13]]/[1]

N40

#107=[#105-#106]

#107=[#107*[-1.]]

#108=ATAN[ABS[#107]/ABS[.13]]/[1]

M145(PROBE OFF)

G91G28Z0.M5

G40G49

M1

N2G90T29M6(3/32 NECKED DOWN ENDMILL)

G0G90G54.1P3X0.Y0.S12217M3

G68X0Y0R#108

X.0019Y.0764

G43H29Z.1M8

Z.025

G5P1

G1Z0.F9.7

G42D29Y.0717

Link to comment
Share on other sites

code:

IF[#106GT#105]GOTO30

IF[#106LT#105]GOTO40

N30

#107=[#106-#105]

#107=[#107*[-1.]]

#108=ATAN[ABS[#107]/ABS[.13]]/[1]

N40

#107=[#105-#106]

#107=[#107*[-1.]]

#108=ATAN[ABS[#107]/ABS[.13]]/[1]

M145(PROBE OFF)

G91G28Z0.M5

G40G49

M1

New Code;

 

code:

IF[#106GT#105]GOTO30

IF[#106LT#105]GOTO40

N30

#107=[ABS[#106]-ABS[#105]]

#108=ATAN[#106/.13]

GOTO50

N40

#107=[ABS[#106]-ABS[#105]]

#108=ATAN[[#106/.13]*[-1]]

N50

M145(PROBE OFF)

G91G28Z0.M5

G40G49

M1

Give this a try. It's not tested so keep an eye out.

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