![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Parametric Programing (custom macro b, fadal macro, okuma user task) |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
Hello every body: Here is a small macro for a lathe to make grooves. I get an alarm 078 number not found. May be is the N10 line. Any advice. Please go easy...I am a beginner Thank you in advance. Jorge CNC Miyano Fanuc 18T 01225(MAIN PROGRAM) T1111 (GROOVE .250 WIDTH) G50S1500M3 G96S875M8 G65P9009B1.375S1.2Z.5C.175W.5T.250F.003 G28U0 G0Z2.5 M30 O9009 (GROOVE MACRO) #100=#23 (GROOVE WIDTH) #101=#20 (INSERT WIDTH) IF[#20GT#23]GOTO99 IF[#20LT#23]GOTO10 IF[#20EQ#23]GOTO11 N10FUP[#23-#20]/[3-1]GOTO11 N11G0 X[#2 + 0.2] Z-#26 G01 X#19 F#9 G04 P500 G00 X[#2 + 0.2] Z-[#26 + #3] G01 X#2 X[#2 - 2 * #3] Z-#26 G00 X[#2 + 0.2] Z-[#26 - #3] G01 X#2 X[#2 - 2 * #3] Z-#26 G00 X[#2 + 0.2] N99#3000=100 (INSERT TO BIG) M99 B #2 1.375 stock dia. C #3 .175 chamfer size S #19 1.200 groove diameter z #26 .500 start point of groove z COORDINATE w #23 .500 groove width T #20 .250 insert width Last edited by jorgehrr; 06-13-2008 at 06:11 AM. |
|
#2
| |||
| |||
| Manual says 078 A program number or a sequence number which was specified by adress P in the block which includes and M98,M99, M65 or G66 was not found. The sequence number specified by a GOTO statement was not found. Otherwise, a called program is being edited in background processing. Correct the program, or discontinue the background editing.
__________________ No matter how good you are, there is always someone better!!! |
|
#4
| |||
| |||
| Take the GOTO11 out of the N10 line. It is not needed because N11 is the next line in the program. I have also never seen code written like that before. What are you trying to set in that line. Your not setting anything there. It probably can't calculate. Should be something like #?=FUP[#23-#20]/[3-1]. You will also have to put your N99 alarm insert to big after your M99 otherwise when the program runs through you will read the N99 everytime before the M99. |
|
#5
| ||||
| ||||
| Thank you for your comments. You are absolute right. * I corrected the M99 * FUP is my real problem, I'm trying to use this for when my groove is wider then the insert, In that case I will need more passes, but I know I'm way off, someone at work suggested the FUP function to calculate how many passes the tool needs to make, obviously I do not know how to use it. * I'm still working on it, for me it will be a very good tool, I have plenty of grooves in my parts. Thanks again. George |
| Sponsored Links |
|
#6
| |||
| |||
| This is a easy function to use. This rounds up to the whole number. #100=FUP[3.3]=4.(rounds up to the whole number) #100=FIX[3.3]=3.(rounds down to the whole number) #100=ROUND[3.4]=3.(typical rounding function less than 1/2 whole number) #100=ROUND[3.5]=4.(typical rounding function greater than or equal 1/2 whole number) I am trying to visualize what you are trying to do. I run mostly vertical turning lathes. Can you give me an idea of were you are putting the grooves and direction of your axis? I assume you are on a horizontal lathe. |
|
#7
| ||||
| ||||
| Yes, horizontal lathes. What I'm trying to do is make it easy for me when I need to program grooves. Here is an example. I have one part with three grooves: 1st .840 diameter .100 wide 2nd .980 diameter .187 wide 3er 1.125 diameter .225 wide all with chamfers .035x45 and .025x45 Inserts is .087 wide. As you can see I program the grooves step by step. (a lot of parts have .087 wide groove, that is why inserts are that size) I need to write a loop for when the groove is wider then the insert, and I need to overlap between passes. Again, thank you for your replay. George |
|
#8
| |||
| |||
| Agree with Stevo. Only thing block 10 is doing is subtracting tool width from groove width and then dividing by 2. This does nothing for you. Also why would you use [3-1] instead of just using 2 if you did need to divide by 2? As written, you are making a groove that is the same width as your insert. Does 'C' have radius compensation value figured into it? Or are you using an insert with no radii on the corners? Edit: As an aside for when you do figure out how to make multiple passes with the groove insert, I would divide by the insert width minus twice the radii on the insert corners...as a minimum. I don't like leaving little metal rings in the groove to be picked out later. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Does anyone know of any software that can lay out a number of parts on a specified sh | tomvaughan | Commercial CNC Wood Routers | 6 | 08-28-2008 10:29 PM |
| Question about model number. | l u k e | Haas Mills | 6 | 02-23-2008 04:18 PM |
| How do i get my program number not theirs | robertbair | Fanuc | 4 | 12-06-2007 12:13 PM |
| Number Counter | CI_182 | G-Code Programing | 3 | 09-01-2007 04:41 PM |
| Dx-32 auto N number for you | jtree83 | Bridgeport and Hardinge Mills | 4 | 09-26-2005 02:28 PM |