![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| General Metalwork Discussion Discuss everything relating to metal work. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
I WAS WONDERING IF INSTEAD OF GIVING AN M30 COMMAND I COULD GIVE A COMMAND THAT WILL ALLOW THE MACHINE TO REPEAT THE PROGRAM X NUMBER OF TIMES BEFORE IT STOPS. IM USING A BAR PULLER SO IT WOULD BE VERY HELPFULL IF I COULD PUSH GO AND WALK AWAY. |
|
#2
| |||
| |||
| Make your program a subprogram or a subroutine and then call it with an L count. It depends on the machine which is easiest for instance on a Haas this works: O00000(Bar puller progra,) All the normal stuff to set up initial conditions M97 P1000 L10 G28 M30 ----- N1000 This is the part program including the bar pull operation. M99 This cycles through the part program 10 times and then stops.
__________________ An open mind is a virtue...so long as all the common sense has not leaked out. |
|
#3
| |||
| |||
| Below is the solution. Use macro call below codes will run the program for 10 times N0....start of the program . . G65 H02 P#100 Q#100 R1 ( this balock will add 1 input in the variable #100) G65 H82 P0 Q#100 R10 ( this block will see that variable #100 is equal to 10 or not if it is not equal then it will go to N0 if it is equal then it will go to next block) G65 H01 P#100 Q0 ( in this variable #100 is made equal to zero) M30 (end of the program) The above sample i had used for running the program 10 times i.e. for 10 jobs. H02 is for addition H01 is for equal H82 is for conditional divergence. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| program repeat | villiersterrace | G-Code Programing | 6 | 07-27-2010 07:55 PM |
| rewind program without stopping spindle | samu | Fanuc | 14 | 02-24-2009 06:45 AM |
| vickers 2100 - Tree J250 - program "rewind" | mblazenby | General CNC (Mill and Lathe) Control Software (NC) | 2 | 01-11-2008 09:39 AM |
| program repeat | heartlnd | Haas Mills | 3 | 08-19-2006 02:13 AM |
| How to repeat a EZ-Trac Program | Stoney372 | Bridgeport and Hardinge Mills | 4 | 02-16-2006 01:24 PM |