586,121 active members*
3,758 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2006
    Posts
    214

    Help with macro Fanuc T18 Miyano Lathe

    Hi everybody

    Is it possible to have a macro as a sub program that counts parts and turn machine off after it reaches an specific number. Any samples????? please.

    Any other idea to shut off machine to avoid cutting air will be appreciated.

    Bar feeder switch (out of stock light) is not working, waiting for parts.

    Thank you in advance.

    Jorge

  2. #2
    Join Date
    Feb 2006
    Posts
    992
    Can you be more clear? you want to shut the machine off like power it off or stop the cycle only.
    The best way to learn is trial error.

  3. #3
    Join Date
    May 2006
    Posts
    214
    Ohhh...you are right, I messed up.

    I wanted the machine to stop after an specific number of pieces, so the operator sees a red light and can restock the machine, out of stock switch is not working, new one will take two weeks.

    So I wrote at the end of the program:

    #500=#500+1
    IF[#500EQ85]GOTO10
    M30
    N10#500=0
    M00 (MACHINE WILL STOP HERE AFTER I MADE 85 PIECES)

    M00 display a red light in the panel, so we know is out of stock. May not be the right way to do it, but is working.

    Regards

    Jorge

  4. #4
    Join Date
    Feb 2006
    Posts
    992
    Quote Originally Posted by jorgehrr View Post
    Ohhh...you are right, I messed up.

    I wanted the machine to stop after an specific number of pieces, so the operator sees a red light and can restock the machine, out of stock switch is not working, new one will take two weeks.

    So I wrote at the end of the program:

    #500=#500+1
    IF[#500EQ85]GOTO10
    M30
    N10#500=0
    M00 (MACHINE WILL STOP HERE AFTER I MADE 85 PIECES)

    M00 display a red light in the panel, so we know is out of stock. May not be the right way to do it, but is working.

    Regards

    Jorge
    You are doing just fine, instead 85 you need define another variable that's all and operator will input how many part can get out from stock.
    The best way to learn is trial error.

Similar Threads

  1. Miyano JNC-35 Lathe Parameters
    By MildBill in forum Uncategorised MetalWorking Machines
    Replies: 2
    Last Post: 11-05-2020, 01:54 AM
  2. RS-232 Setup for Miyano w/Fanuc OT
    By JerryH in forum Fanuc
    Replies: 17
    Last Post: 01-20-2012, 02:17 PM
  3. Convert Fanuc Macro to Fadal Macro
    By bfoster59 in forum Fadal
    Replies: 1
    Last Post: 11-09-2007, 06:41 AM
  4. Macro for Boring lathe Jaws - Fanuc 21i-T
    By CNCSport in forum Uncategorised MetalWorking Machines
    Replies: 5
    Last Post: 10-17-2007, 11:07 PM
  5. Miyano lathe with Fanuc 3T Controller
    By engineerbill in forum Uncategorised MetalWorking Machines
    Replies: 0
    Last Post: 04-10-2007, 02:22 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
  •