585,602 active members*
3,406 visitors online*
Register for free
Login
Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2017
    Posts
    4

    System Variables

    I am looking for the system variable that is used to store the "initial point" for canned cycles.
    I use several different Fanuc and Mazak controls but this system variable should be the same for all of them.

    Thanks in advance.

    John

  2. #2
    Join Date
    Feb 2006
    Posts
    1792

    Re: System Variables

    There is no such system variable on Fanuc.

  3. #3
    Join Date
    Jun 2017
    Posts
    4

    Re: System Variables

    Then where is the value for the initial point stored? It has to be stored some where as you can go back and forth from G98 to G99 and the control know what point to return to.

  4. #4
    Join Date
    Feb 2006
    Posts
    1792

    Re: System Variables

    When we call a canned cycle, control remembers the specified data. Storing data in some system variable is a different thing.

  5. #5
    Join Date
    Jun 2017
    Posts
    4

    Re: System Variables

    Ok. Let me rephrase what I am looking for. Maybe we can expand the answers by expanding the question.

    I am writing a custom drilling cycle using a modal call, "G66", and would like to return to the initial point or the R-plane depending on G98 or G99. In order to do that I need be able to recall both values.

    Does anyone know where the values are stored and how they can be recalled?

    Thank you,
    John

  6. #6
    Join Date
    Feb 2006
    Posts
    1792

    Re: System Variables

    #4010
    If G98 is active, it stores 98
    If G99 is active, it stores 99.
    After reading its value, appropriate action can be taken.
    IF [#4010 EQ 98] GOTO ...

  7. #7
    Join Date
    Jun 2017
    Posts
    4

    Re: System Variables

    Quote Originally Posted by sinha_nsit View Post
    #4010
    If G98 is active, it stores 98
    If G99 is active, it stores 99.
    After reading its value, appropriate action can be taken.
    IF [#4010 EQ 98] GOTO ...

    I understand all of that. I am hung up trying to take the appropriate action.

    IF [#4010 EQ 99] GOTO100
    G00 Z "Initial Point"
    GOTO150
    N100 G00 Z "R-plane"
    N150 M99

  8. #8
    Join Date
    Feb 2006
    Posts
    1792

    Re: System Variables

    If you are defining your own drilling cycle, you would define your R-point and initial point, which you would use.
    Several drilling macros are available on the net. Some of these might exactly suit your requirement. At least, the logic can be studied.

  9. #9
    Join Date
    Jul 2010
    Posts
    118

    Re: System Variables

    Hi John,
    the below example is in the fanuc manual:
    O9110;
    #1=#4001; .......................Stores G00/G01.
    #3=#4003;.........................Stores G90/G91.
    #4=#4109;.........................Stores the cutting feedrate.
    #5=#5003;.........................Stores the Z coordinate at the start of drilling.
    G00 G90 Z#18;.................Positioning at position R
    G01 Z#26 F#9;..................Cutting feed to position Z
    IF[#4010 EQ 98]GOTO 1; Return to position I
    G00 Z#18;.........................Positioning at position R
    GOTO 2;
    N1 G00 Z#5;........................Positioning at position I

    hope this help

    norbert

Similar Threads

  1. System Variables
    By zooloader in forum Mori Seiki lathes
    Replies: 3
    Last Post: 08-02-2012, 03:53 AM
  2. looking for system variables
    By chunkymonkey in forum Mori Seiki lathes
    Replies: 3
    Last Post: 10-26-2009, 09:27 PM
  3. System variables
    By cncwhiz in forum Fanuc
    Replies: 6
    Last Post: 01-18-2008, 05:27 AM
  4. System variables in a O-MD
    By AZDEN in forum Fanuc
    Replies: 1
    Last Post: 10-23-2007, 04:50 PM
  5. System variables
    By jorgehrr in forum G-Code Programing
    Replies: 8
    Last Post: 02-19-2007, 02:26 AM

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
  •