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:

Rapid override on 1 tool


Programinator
 Share

Recommended Posts

shawn

i would write the macro for you but i am only working a half day so i dont have the time but if you look in your haas manual it will give you the basics plus look at how the canned cycle is defined in the manual and pass that info to variables wink.gif and just write out the math functions needed. it sounds harder than it is. if this job is going to be running a while i would use common variables vs local. call up a sub program(for drilling) so you can save this macro for future use all you would have to do is change the variables. G83 is nothing more than a macro that is hidden. i wish we had access to them

 

happy writing cool.gif

Link to comment
Share on other sites

shawn here is something i found on the web for ya

change as needed for haas and you dont need the alarm logic if you dont want to something to start with

 

%

O9013 (CUSTOM G83 DEEP HOLE CYCLE)

 

(ASSIGN G-CODE G83)

(SET PARAMETER #6053 = 83)

(CALL MACRO DRILLING CYCLE)

(G83 X0.0 Z0.0 W1.0 R0.1 Q0.1 K0.01 F0.008)

(X0. -HOLE LOCATION IN X)

(Z0. -HOLE LOCATION IN Z)

(W1.0 -INCREMENTAL HOLE DEPTH - ALWAYS POSITIVE)

(R0.1 -INCREMENTAL CLEARANCE PLANE AMOUNT - ALWAYS POSITIVE)

(Q0.1 -INCREMENTAL PECK DEPTH - ALWAYS POSITIVE)

(K0.1 -INCREMENTAL RETURN FROM RETRACT CLEARANCE - ALWAYS POSITIVE)

(F0.008 -FEEDRATE)

 

#6=ABS[#6] (FORCE K TO ABSOLUTE VALUE)

#9=ABS[#9] (FORCE F TO ABSOLUTE VALUE)

#17=ABS[#17] (FORCE Q TO ABSOLUTE VALUE)

#18=ABS[#18] (FORCE R TO ABSOLUTE VALUE)

#23=ABS[#23] (FORCE W TO ABSOLUTE VALUE)

#1=[#26+#18] (ASSIGN START POINT W/ R-PLANE TO VARIABLE)

#3=[#26-#23] (ESTABLISH FINAL Z POSITION)

 

(ALARM LOGIC)

IF [#23 EQ 0.0] GOTO 9991 (INVALID W)

IF [#18 EQ 0.0] GOTO 9992 (INVALID R)

IF [#17 EQ 0.0] GOTO 9993 (INVALID Q)

IF [#17 GT #23] GOTO 9993 (INVALID Q)

IF [#6 EQ 0.0] GOTO 9994 (INVALID K)

IF [#6 GT #17] GOTO 9994 (INVALID K)

IF [#9 EQ 0.0] GOTO 9995 (INVALID FEED)

 

G00 Z[#1] (RAPID TO Z START W/ R-PLANE)

G00 X[#24] (RAPID TO X START)

N1000

#4=[#5002-#17] (CHECK IF PECK IS FARTHER THAN FINAL DEPTH)

IF [#4 LE #3] GOTO 2000 (IF PECK IS FARTHER THAN FINAL DEPTH, GOTO N2)

G01 W-[#17] F[#9] (PECK DRILL)

#2=#5002 (STORE CURRENT Z DEPTH)

G00 Z[#1] (RETRACT TO START POINT)

G00 Z[#2+#6] (RETURN FROM RETRACT WITH CLEARANCE K)

GOTO 1000

N2000

#4=#3

G01 Z[#4] F[#9] (DRILL TO FINAL DEPTH)

G00 Z[#1] (RETRACT TO START POINT)

M99

 

 

(ALARMS)

N9991

#3000=1(INVALID W-DEPTH!)

GOTO 9999

 

N9992

#3000=2(INVALID R-PLANE!)

GOTO 9999

 

N9993

#3000=3(INVALID Q-PECK!)

GOTO 9999

 

N9994

#3000=4(INVALID K-RETRACT!)

GOTO 9999

 

N9995

#3000=5(FEED F NOT SPECIFIED!)

GOTO 9999

 

 

N9999

M30

%

Link to comment
Share on other sites

Probably a little late but might help in the future. Variable #3004 is a variable that overrides certain functions.. I believe if #3004=0 then it will override the feedrate % off setting in the control to on. just be sure to call it again as #3004=2 so it changes back.. Under the variables section in the HAAS manual browse till you find the #3004 there is a list of 1-6 options that this variable controls...

Link to comment
Share on other sites

quote:

Probably a little late but might help in the future. Variable #3004 is a variable that overrides certain functions.. I believe if #3004=0 then it will override the feedrate % off setting in the control to on. just be sure to call it again as #3004=2 so it changes back.. Under the variables section in the HAAS manual browse till you find the #3004 there is a list of 1-6 options that this variable controls...

I just got done doing it the long way as bruce suggested but i will look at this option tomorrow.

 

Thanks

Link to comment
Share on other sites

quote:

Probably a little late but might help in the future. Variable #3004 is a variable that overrides certain functions.. I believe if #3004=0 then it will override the feedrate % off setting in the control to on. just be sure to call it again as #3004=2 so it changes back.. Under the variables section in the HAAS manual browse till you find the #3004 there is a list of 1-6 options that this variable controls...

I dont see anywhere in the manual for a variable for rapid overide. I do see feedrate but not rapid. Im going to try to ask THE ANSWER MAN

Link to comment
Share on other sites

In your control def under Machine Cycles/Mill Drill Cycles uncheck "Peck Drill - Full Retract

 

In the feed options check "Convert Rapid To Maximum Feedrate

 

In your Machine Def under Axis Feedrate Limits/Linear Axis Transverse Rate set Maximum Feed to whatever you want it to feed at.

 

Why doesn't this work? I still get "G0 Z.1" in my longhand. confused.gif

Link to comment
Share on other sites

I thought I had a good idea but couldn't get it to work.

 

In your control def under Machine Cycles/Mill Drill Cycles uncheck "Peck Drill - Full Retract

 

In the feed options check "Convert Rapid To Maximum Feedrate

 

In your Machine Def under Axis Feedrate Limits/Linear Axis Transverse Rate set Maximum Feed to whatever you want it to feed at.

 

Why doesn't this work? confused.gif

 

 

EDIT: Sorry for the double post.

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