![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Machine Problems, Solutions , Wireless DNC, serial port Need help with your Machine or need a Machining solutions for , Serial Port, Cable problems between PC and all others DNC problems disucss them here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#3
| |||
| |||
| brtlatjgt, What I need to do is run the whole program 10 times. We have a bar puller set up but the operator is having to push cycle start after every part but we would like to loop the program 10 times because that is the number of parts we can get out of one stick of material then we could have him run another machine at the same time. Thanks for your help Tony |
|
#4
| ||||
| ||||
| Do you have custom macro option, G65? you can call a routing by (L)iteration number of times, the custom macro also accepts 'argument assignments' so it is possible to run the same sub-routine with values for different parts etc. Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
|
#5
| ||||
| ||||
I am not 100% sure if this would work on an OSP, but it works fine on FANUC. Change your main program to a sub by ending it with an M99 instead of the M30 (or M02). Now create a main program that looks something like this... O2005 M98 P2006 L10 M30 If you are not familiar with FANUC codes I will explain a bit more... O2005 - Program number of the main program - I don't know if OSP needs this M98 P2006 L10 - M98 Call subprogram, P2006 is the sub program number which is what used to be your main program - I am calling O2006, finally L10, calls the subprogram 10 times. M30 is the program end command. There are variations on the subprogram calling command even on FANUC controls. Some use the form of M98 P200610, in this case M98 is the same and the P address specifies two items.. P2006 is the program number as before, but the trailing two digits specify the number of loops - 10 in this example. You will of course need to look at your OSP programming manual to get their version of the codes - but I have a hunch they will be very similar. Hope this helps! Chris |
| Sponsored Links |
|
#6
| |||
| |||
| Thanks for all the help here is what I did to make it work. % N1 V1=0 N10(5/5/05)First line of the main program N11 V1=V1+1 Main body of the program goes in here. N401 IF [V1 LT 10] N10 N410 M2 % Last edited by dartplayer1; 05-05-2005 at 02:03 PM. |
|
#7
| |||
| |||
| You beat me to it but heres what we do at end of program V1=V1 +1 [IF V1 LT V2]N0100 V1=0 SET PARAMETER V1 TO 0 SET PARAMETER V2 TO 10 If you wanted to shift your z over you would insert vzshz=vzshz-v3 then set parameter v3 to amount of shift |
|
#9
| ||||
| ||||
| Dart, at the rear of the machine in the control panel you should find a document called "Data Management Card"... Take a look at it and see if you have an Option called: "User Task II"... If this option is active create the following program: Yourfilename.sdf (note that the created file is not a .min file) spselect: "YourFileName.min,,,q10 end And that's all it takes.. This is called a scheduled program and is called up just a little differently... In Auto Mode use your extend key F8 until you see the PSelect (I think F1 or F2) press the key and type * <write>... Your list of .SDF files will show just pick the file you want and follow the function key commands... It's been a few years since I've worked those keys so please refer to your Special Functions Manual to confirm key strokes... FYI: That file can run more than program if you need it to, as in: pselect: abc.min,,,Q10 pselect: def.min,,,Q10 End I hope this helps... If you can't find the info in your manual's let me know and I'll get it for you.
__________________ JR Walcott Georgia Machine Tool Resources, LLC |
|
#10
| |||
| |||
| JR....I imagine that your post refers to newer Okumas. We haven't been able to figure out how to loop the older controls so we've just created long programs as our memory allows. The job we're running now let's us run 8 parts before we run out of memory. If you know a better way I'd appreciate hearing how. |
| Sponsored Links |
|
#11
| ||||
| ||||
| stude8, Have you tried to use your tape drive rather than your memory? Using both the tape drive and a simple hard wired counter connected to your feed hold or e-stop circuits you should be able to gain additional throughput. I'll do a little research tonight. If I come up with a better way, I'll let you know. Do you know if you have CMOS or Bubble Memory on this machine? JR
__________________ JR Walcott Georgia Machine Tool Resources, LLC |
|
#12
| |||
| |||
| I'm not sure. Maybe someone else will know, but I think it's CMOS. We have exec tapes for all of them, but we've never had to reload them. A loop tape does make sense. When I get a free minute I can type up a dummy tape to try. We just loaded the same job on a twin spindle Wasino with an OTT control. That was easy. P(# of parts) plus the program #. Thanks for your help. |
![]() |
| 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 |
| help with thread 1/2-8 2star on okuma osp7000l lathe | plast744 | G-Code Programing | 5 | 06-16-2006 08:23 AM |
| Prototrak lathe question | micit0001 | General CNC (Mill and Lathe) Control Software (NC) | 3 | 03-02-2005 07:04 PM |
| HF lathe question | rs1300 | General Metal Working Machines | 0 | 01-19-2004 11:22 AM |
| 9x20 Lathe question | ccm | General Metal Working Machines | 13 | 09-25-2003 05:52 PM |
| Lathe question | CNCadmin | Benchtop Machines | 5 | 07-01-2003 12:20 PM |