Results 1 to 7 of 7

Thread: Comparison and program stop

  1. #1
    Registered guhl's Avatar
    Join Date
    Aug 2007
    Location
    Ukraine, Sevastopol
    Posts
    298
    Downloads
    0
    Uploads
    0

    Comparison and program stop

    Hi
    How to enforce my 10T controller makes fixed quantity of parts and stops until I push "cycle start" button?
    nothing to say under this line


  2. #2
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1,509
    Downloads
    0
    Uploads
    0
    Do you have Macro programming on your control? Is it a looping program or sub that just keeps running parts? I would use variables. Something like this. Let me know how your program runs consecutive parts because the varibables will have to be placed in the right parts of the program.

    Beginning of program
    #100=0(COUNTER)
    #101=500(NUMBER OF PARTS)
    ...
    ...
    #100=#100+1
    IF[#100EQ#101]GOTO500
    ...
    N500M0 ----you could use M0 or a #3006 message statement
    #3006=1(cycle start to continue)

    I have never used the timers or parts counters on the machines so I can't tell you anything on how to use them.

    Stevo


  3. #3
    Registered guhl's Avatar
    Join Date
    Aug 2007
    Location
    Ukraine, Sevastopol
    Posts
    298
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by stevo1 View Post
    Do you have Macro programming on your control? Is it a looping program or sub that just keeps running parts? I would use variables. Something like this. Let me know how your program runs consecutive parts because the varibables will have to be placed in the right parts of the program.

    Beginning of program
    #100=0(COUNTER)
    #101=500(NUMBER OF PARTS)
    ...
    ...
    #100=#100+1
    IF[#100EQ#101]GOTO500
    ...
    N500M0 ----you could use M0 or a #3006 message statement
    #3006=1(cycle start to continue)

    I have never used the timers or parts counters on the machines so I can't tell you anything on how to use them.

    Stevo
    Hi
    Thanks. My controller supports macros. I'll try to write down you program and let you know about results.
    Regards
    nothing to say under this line


  4. #4
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1,509
    Downloads
    0
    Uploads
    0
    If you don't know much about variable usage post your code or explain how it runs continous parts (loop, sub, etc.) and I can help you place the varibles in the proper spots.

    Stevo


  • #5
    Registered guhl's Avatar
    Join Date
    Aug 2007
    Location
    Ukraine, Sevastopol
    Posts
    298
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by stevo1 View Post
    If you don't know much about variable usage post your code or explain how it runs continous parts (loop, sub, etc.) and I can help you place the varibles in the proper spots.

    Stevo
    Thanks
    help me please, so I'm repairer. I know about special area for macros in memory of the controller, but never made it before.
    regards
    nothing to say under this line


  • #6
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1,509
    Downloads
    0
    Uploads
    0
    No problem. Can you post your program for the parts that you are running and want to stop after a certian amount? Or tell me how the program runs. Does it have a main program then run a sub for all the same parts?

    Stevo


  • #7
    Registered jamesweed's Avatar
    Join Date
    Jan 2007
    Location
    USA
    Posts
    82
    Downloads
    0
    Uploads
    0
    you could call your program the first time in MDI, then tell it to repeat X number times...

    M98P***L6;

    instead of M30 at end of program use M99. That way it will repeat/loop program 6 times then stop.


  • Similar Threads

    1. New Machine Build- EMC2 E-stop parallel port pinout and E-stop loop
      By GreenLead in forum LinuxCNC (formerly EMC2)
      Replies: 12
      Last Post: 08-03-2010, 01:05 PM
    2. Kit comparison
      By wjfiles in forum Stepper Motors and Drives
      Replies: 6
      Last Post: 06-27-2006, 07:02 AM
    3. Comparison
      By brtlatjgt in forum General CAM Discussion
      Replies: 3
      Last Post: 11-24-2004, 10:40 AM

    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.