Page 1 of 2 12 LastLast
Results 1 to 12 of 18

Thread: Need help on Part Counter

  1. #1
    Registered
    Join Date
    Mar 2010
    Location
    India
    Posts
    8
    Downloads
    0
    Uploads
    0

    Need help on Part Counter

    I am using a CNC Lathe with a bar feeder attachment and the cycle time for a part is 1minute 33 seconds, My problem is its a mass production and when I place M30 at the end of the program I have to press "CYCLE START" after a component falls off, I loose some time there since time is very important,

    If I replace M30 with M99, the program runs over and over again after parting, but the problem here is when I press the "POS" button on the controller, Part Count = 0, Cycle time = How much time the machine has run after I hit the "CYCLE START",

    I need the program to run without hitting the cycle start button over and over again and see how many parts have fallen and also the cycle time for each part not the whole session.


  2. #2
    Registered Ashish B's Avatar
    Join Date
    May 2009
    Location
    India
    Posts
    380
    Downloads
    0
    Uploads
    0
    I doubt that you cannot get individual cycle time, because cycle time counter is restarted only when u command M30 & as in your case u command M99...So can't get the individual cycle time.

    For the Part Count, follow the instructions -



    Before pressing cycle start, turn the Part Counter to 0


    In your program command,


    #xxxx = #xxxx+1;
    M99;

    (Where xxxx is the Parameter number which traces the Part Count...)

    (Consult your Machine Dealer to know about the parameter which stores PART COUNT).


  3. #3
    Registered
    Join Date
    Mar 2010
    Location
    India
    Posts
    8
    Downloads
    0
    Uploads
    0
    I use a Galaxy Midas 0 machine, In the Parameters I could see in Help of the mahcine its shows 6700~, But when I used 6700, I get a error, illegal parameter used.


  4. #4
    Registered Ashish B's Avatar
    Join Date
    May 2009
    Location
    India
    Posts
    380
    Downloads
    0
    Uploads
    0
    U have to ask to machine dealer...Or do post a new thread asking about parameter number which traces part count in forum of


    "Paramteric programming".


    But i suggest to ask to machine dealer...

    Ash

    According to my knowledge, the program mentioned is right...

    Ash


  • #5
    Registered beege's Avatar
    Join Date
    Feb 2008
    Location
    USA
    Posts
    546
    Downloads
    0
    Uploads
    0
    I use macro variables as a part counter. How you would use it depends upon what control you are using. Mine is a Fanuc 10TF. At the end of the program, just before the M99, I have a "#549=#549+1. I can adjust that number while in MDI mode if necessary, like when first setting up a job,I can adjust to zero, or subtract bad cycles. Do you know which control you have, and whether you have Macro B installed?


  • #6
    Registered
    Join Date
    Mar 2010
    Location
    India
    Posts
    8
    Downloads
    0
    Uploads
    0
    I use a "FANUC 0i mate-TC", Could you help me in detail how do you set that parameter in MDI mode. I have never used the MDI mode.


  • #7
    Registered Ashish B's Avatar
    Join Date
    May 2009
    Location
    India
    Posts
    380
    Downloads
    0
    Uploads
    0
    Simply Program the following code in MDI.


    #xxxx = 0,

    (where xxxx is Parameter which traces the Part count


  • #8
    Gold Member dertsap's Avatar
    Join Date
    Oct 2005
    Location
    canada
    Posts
    3,873
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by fahed View Post
    If I replace M30 with M99, the program runs over and over again after parting, but the problem here is when I press the "POS" button on the controller, Part Count = 0, Cycle time = How much time the machine has run after I hit the "CYCLE START",

    .
    setup so that your main program is a sub routine then loop it to the number of parts/bar
    A poet knows no boundary yet he is bound to the boundaries of ones own mind !! ........
    http://microcarve.microcarve.biz/


  • #9
    Registered
    Join Date
    Mar 2010
    Location
    India
    Posts
    8
    Downloads
    0
    Uploads
    0
    I called up the dealer, He gave me this code "M90" before m99, & this worked, Thanks all for your help.


  • #10
    Registered Ashish B's Avatar
    Join Date
    May 2009
    Location
    India
    Posts
    380
    Downloads
    0
    Uploads
    0

    Lightbulb

    Hey what's M90 ??


  • #11
    Registered
    Join Date
    Mar 2010
    Location
    India
    Posts
    8
    Downloads
    0
    Uploads
    0
    My Machine dealer says its a code to add 1 to the part counter, so if I put M90 10 times in my program, I would a part count of 10, Can you tell me what is Macro B and what is the advantage of it.

    Thanks in Advance.


  • #12
    Registered beege's Avatar
    Join Date
    Feb 2008
    Location
    USA
    Posts
    546
    Downloads
    0
    Uploads
    0
    M90 is a machine-builder added in feature not available on most makes of machines unless they too want to build in that M code. They would add it to the PLC side of the control. Don't expect to be able to use it on other makes of tools.

    Macro B is a programming tool that allows you to have changeable parameters within your program. If you have a family of parts, for example, with different bore sizes, one program could be written that would suffice for all, with a simple change in the macro variable table that would modify what the program would do. There are conditional branch commands, calculating functions, I/O testing (if you know the address for that I/O). Counting is one of the simpler things you can do with Macro B. You could also set up the macro to stop the machine (M30) when a certain number of parts is reached. Powerful tool.


  • Page 1 of 2 12 LastLast

    Similar Threads

    1. using a counter
      By gravy in forum Parametric Programing
      Replies: 10
      Last Post: 05-26-2012, 07:05 AM
    2. Part Counter Reset
      By Outlaw6700 in forum Milltronics
      Replies: 3
      Last Post: 02-26-2010, 06:00 PM
    3. turn on part counter in eia on MAZAK nexus vertical mill
      By Denis13 in forum Mazak, Mitsubishi, Mazatrol
      Replies: 0
      Last Post: 01-30-2008, 09:49 PM
    4. Changing Fanuc part counter increment?
      By gearsoup in forum Fanuc
      Replies: 4
      Last Post: 06-23-2007, 08:50 AM
    5. Part Counter
      By ParadiseIsle in forum FlashCut CNC
      Replies: 1
      Last Post: 06-13-2007, 09:04 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.