585,753 active members*
4,015 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2007
    Posts
    67

    Extracting current line number using Macro B.

    Hello!

    Once again I'm coming to the CNC zone to help me solve an issue. I'm using a Fanuc 35i control.

    I have a creep-feed grinder that is encountering a spindle overload. I didn't write the program but I'm stuck fixing it. When the overload happens, a macro executes. This macro retracts the spindle to a safe location then does a soft-reset. When this happens, the program rewinds to the beginning, losing the place in the program where the fault occurs.

    My question is this: Does the control store the currently executing line number (N-number) in a parameter than can be extracted? My program has N-numbers on every line.

    If it does, I can modify the macro that retracts the spindle and rewinds the program to grab the current line number and put it in a variable before rewinding, letting me know exactly where the fault occurs.

    Thanks for reading...

    Glen

  2. #2
    Join Date
    Aug 2009
    Posts
    684

    Re: Extracting current line number using Macro B.

    Quote Originally Posted by grweldon View Post
    Hello!

    Once again I'm coming to the CNC zone to help me solve an issue. I'm using a Fanuc 35i control.

    I have a creep-feed grinder that is encountering a spindle overload. I didn't write the program but I'm stuck fixing it. When the overload happens, a macro executes. This macro retracts the spindle to a safe location then does a soft-reset. When this happens, the program rewinds to the beginning, losing the place in the program where the fault occurs.

    My question is this: Does the control store the currently executing line number (N-number) in a parameter than can be extracted? My program has N-numbers on every line.

    If it does, I can modify the macro that retracts the spindle and rewinds the program to grab the current line number and put it in a variable before rewinding, letting me know exactly where the fault occurs.

    Thanks for reading...

    Glen
    #4114 rings a bell. I use this variable to return to main program at a specific line number. #4314 may be more suitable though. I think 4114 is last N in buffer and 4314 is last N executed.

    DP

  3. #3
    Join Date
    Feb 2007
    Posts
    67

    Re: Extracting current line number using Macro B.

    DP,

    Thank you so much for your reply. #4114 does the trick. Exactly what I was looking for....

    Glen

Similar Threads

  1. POST 2 SEQUENCE NUMBER ON THE SAME LINE
    By MAINVIST in forum Post Processors for MC
    Replies: 3
    Last Post: 11-06-2013, 10:31 AM
  2. no line number in comment line in mpos
    By MSFAB in forum Surfcam
    Replies: 5
    Last Post: 02-13-2012, 11:51 PM
  3. omit line number
    By asjad in forum Mastercam
    Replies: 2
    Last Post: 05-10-2007, 12:18 PM
  4. G-code ploter with line number annotated?
    By webcruiser8 in forum G-Code Programing
    Replies: 3
    Last Post: 09-21-2006, 11:49 AM
  5. Line Number Range Error
    By gar in forum Haas Mills
    Replies: 2
    Last Post: 05-23-2006, 11:06 PM

Tags for this Thread

Posting Permissions

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