587,964 active members*
3,446 visitors online*
Register for free
Login
Results 1 to 8 of 8
  1. #1
    Join Date
    May 2006
    Posts
    214

    078 alarm (number not found)

    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

  2. #2
    Join Date
    Mar 2006
    Posts
    153
    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!!!

  3. #3
    Join Date
    May 2006
    Posts
    214
    Man I am way off.....

    The trouble is the N10. I need more stuff in there to be able to make a groove bigger then the insert. I'm working on it.

    George

  4. #4
    Join Date
    Jun 2008
    Posts
    1511
    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. #5
    Join Date
    May 2006
    Posts
    214
    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

  6. #6
    Join Date
    Jun 2008
    Posts
    1511
    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. #7
    Join Date
    May 2006
    Posts
    214
    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. #8
    Join Date
    May 2007
    Posts
    1003
    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.

Similar Threads

  1. Replies: 6
    Last Post: 08-29-2008, 03:29 AM
  2. Question about model number.
    By l u k e in forum Haas Mills
    Replies: 6
    Last Post: 02-23-2008, 10:18 PM
  3. How do i get my program number not theirs
    By robertbair in forum Fanuc
    Replies: 4
    Last Post: 12-06-2007, 06:13 PM
  4. Number Counter
    By CI_182 in forum G-Code Programing
    Replies: 3
    Last Post: 09-01-2007, 09:41 PM
  5. Dx-32 auto N number for you
    By jtree83 in forum Bridgeport / Hardinge Mills
    Replies: 4
    Last Post: 09-26-2005, 07:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •