586,437 active members*
3,726 visitors online*
Register for free
Login

Thread: loop count

Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2009
    Posts
    6

    loop count

    If i am running a loop in a program is there a spot to look to see how many time it has looped this is on an older sl20 if not how would a person set something up

  2. #2
    Join Date
    Dec 2008
    Posts
    717
    Are you just using M99?

    If you reset the tool count you could count them that way (provided you only call a tool once per part...
    Tim

  3. #3
    Join Date
    Jan 2010
    Posts
    62
    what we do on ours is run a subprogram. so, with your m99 command at the end of your regular program you then send that program to the memory or it actually should be in there anyways unless youre running it as an FNC. but, lets say your program name atthe top is O01234.nc you then create a new program called O05678.nc you then make program O05678.nc your current program and it should look like this...

    O05678 (loop) ;
    M98 P1234 L37 ;
    M30;

    now, the O05678 is the current program name (your loop program that allows you to loop it X number of times. the M98 is the loop command when selecting a stored program. the P1234 is the program you wish to loop. the L37 is how ever many times you want it to loop. i put in 37 as an arbitrary number. it could be 2 or 3,875,000 or whatever your heart desires. then, the M30 obviously ends the program after the loop counter sees 37 loops or 3,875,000 etc... it will automatically stop after it sees 37 loops or whatever your number is and go back to the top of the loop program and as soon as you press cycle start the loop count will reset and start over and stop when it reaches that number again.

  4. #4
    Join Date
    Aug 2010
    Posts
    579

    Haas Factory Support

    Starting with mill software M16.01A and lathe software L9.01A, a loop counter was added to the Timers and Counters Pane/Window. You can also use macros, tool offsets (G10), M30 counters (setting 118), and various other ways to count the loops.
    Thanks,
    Ken Foulks

Similar Threads

  1. Open Loop to Closed Loop Stepper Conversion
    By beamhome in forum Stepper Motors / Drives
    Replies: 11
    Last Post: 03-09-2014, 11:27 PM
  2. CNC conversion typically open loop or closed loop?
    By foobar42 in forum Benchtop Machines
    Replies: 8
    Last Post: 10-30-2009, 01:21 AM
  3. Mach EMC Maximum Encoder Count Closed Loop Servo EMC/MACH3
    By bad bearings in forum Open Source Controller Boards
    Replies: 11
    Last Post: 05-28-2009, 05:44 PM
  4. question on closed loop vs open loop (servo systems)
    By boonie in forum Servo Motors / Drives
    Replies: 20
    Last Post: 11-09-2007, 07:30 PM
  5. Lathe conversion - open loop vs closed loop
    By bhowden in forum Uncategorised MetalWorking Machines
    Replies: 7
    Last Post: 03-21-2006, 10:56 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
  •