585,759 active members*
3,820 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2010
    Posts
    10

    tip changing macro call

    hi
    I am interested in using macros to count number of parts per tip on a lathe and when the required number is reached displaying a message on the screen for the operator to change the tip. this is what i have so far from an old manual from years ago
    09001
    #502=#502+1
    if[#502ge40]GOTO900
    n900#502=0
    g28 uo w0
    t0800
    #3000=1(change cnmg tip in tool 7)
    my questions are do i have to use the pgm numbers 09001- ?
    the 09001-03 program is called up by m200,m201 and i understand these values have to be assigned in the parameters?
    would the #3000 call be control specific to display the message?
    is there a simpler way to do this?
    any help would be appreciated

  2. #2
    Join Date
    Sep 2010
    Posts
    1230
    Quote Originally Posted by paulus 2 View Post
    hi
    I am interested in using macros to count number of parts per tip on a lathe and when the required number is reached displaying a message on the screen for the operator to change the tip. this is what i have so far from an old manual from years ago
    09001
    #502=#502+1
    if[#502ge40]GOTO900
    n900#502=0
    g28 uo w0
    t0800
    #3000=1(change cnmg tip in tool 7)
    my questions are do i have to use the pgm numbers 09001- ?
    the 09001-03 program is called up by m200,m201 and i understand these values have to be assigned in the parameters?
    would the #3000 call be control specific to display the message?
    is there a simpler way to do this?
    any help would be appreciated
    If you aren't going to use a "G" or "M" code to call the Macro, or Subprogram, you can use any program number that's available. From the O9001 to O9003 program reference, I assume the control is an old Fanuc "0" series, or the manual you're referring to is for that control. Depending on the model of the control, and if it has a Message Page, you could use #3006 instead of the alarm variable. When using #3000, the number assigned to it (between 0 and 200), has 3000 added to it and displayed on the alarm screen along with the alarm message, up to 26 characters, that's enclosed in brackets in the same block. If #3006 is used, the program stops at the block before the #3006 and the message, up to 26 characters. enclosed in brackets in the same block as #3006 is displayed on the external operator message screen.

    Counting the number of times a tool is called doesn't equate to tool life unless you predetermine the number of times the tool can be used for a particular operation. Accordingly, such a Macro program is not very flexible. As its a reasonable assumption that a tool will be cutting for the majority of time the spindle is running, a better way is to accumulate the time the spindle is running for any particular tool. A prerequisite is that the spindle is started and stopped before and after each tool is used.

    1. A number of non-volatile variables (=> #500) equal to the number of tools you wish to monitor are reserved for use with these tools. For example, you could use variables #501 to #506 if you want to monitor tools only in the range of 1 to 6.

    2. A Macro program is created to be called with M03, M04 and M05. When M03 or M04 are executed in the Main program, a corresponding Macro Program will start the timer. When M05 is subsequently executed, its corresponding Macro program stops the timer and adds the expired time period to the non-volatile variable reserved for the current tool.

    3. This approach will monitor the time a tool is used and not just its frequency of use. A variable could be set to identify the type of material being used, thus taking into account for varying tool life when machining material of varying difficulty.

    Regards,

    Bill

  3. #3
    Join Date
    Oct 2010
    Posts
    10
    thanks for the reply. i will try it out
    paul

Similar Threads

  1. G65 macro call
    By ggborgen in forum Fanuc
    Replies: 19
    Last Post: 09-29-2014, 10:25 PM
  2. Replies: 2
    Last Post: 12-19-2012, 01:28 PM
  3. Can you do a macro call (M) and pass a string somehow?
    By alank2 in forum Mach Wizards, Macros, & Addons
    Replies: 3
    Last Post: 05-15-2012, 01:44 AM
  4. changing the programmable coolant from macro
    By pit202 in forum Haas Mills
    Replies: 10
    Last Post: 05-05-2009, 04:13 PM
  5. Macro for changing Z depth on a facemill
    By banshee1a in forum Fanuc
    Replies: 2
    Last Post: 05-05-2009, 03:23 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
  •