![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Fanuc Discuss Fanuc controllers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
I have a miyano lathe with a Ge series Fanuc O-T controller i want to add into my program if possible a way to when it runs lets say 50 parts the machine will stop and wait for the operator to either hit cycle start again or clear the count then hit cycle start something to have them run only a certain number of parts to remove from the machine check the last one of that bactch then start back up again..i dont do macro programming so is there a way to do it in standard G-code. thanks Nick |
|
#6
| |||
| |||
| Lets Say This Is My Program And I Want It To Stop At 50 Parts Would U Mind Showing Me Where In This Program To Place What You Are Referrign To With The M54 67a7519ho1 7/7/2006) T0606m05(bar Stop) G00x0.1z0.0 M12 G00x2.z3. T0600 M01 N001 G50 S3000 N002 T0100 N003 G00 G96 S249 M03 T0101 N004 M08 N005 G00 X0.7 Z2. N006 G00 Z2.1 N007 X0.5988 N008 Z0.1 N009 G01 Z0 F0.007 N010 X-0.0312 N011 G00 Z2.1 N012 X0.7 N013 Z2. (cnmg .015) N014 X0.9 N015 Z0.0094 N016 X0.6452 N017 G01 X0.4452 S250 N018 Z-0.154 N019 X0.5938 N020 G03 X0.645 Z-0.1796 I0 K-0.0256 N021 G01 Z-0.2596 N022 G00 X0.845 N023 Z0.0094 N024 X0.595 N025 G01 X0.395 N026 Z-0.154 N027 X0.4452 N028 G00 X0.9 N029 Z0.0094 N030 X0.575 N031 G01 X0.375 N032 Z-0.164 N033 X0.5938 N034 G03 X0.625 Z-0.1796 I0 K-0.0156 N035 G01 Z-0.2596 N036 G00 X0.9 N037 Z2. N038 X0.7 (.25 Drill) N039 G00 Z2. M09 N040 T0100 N041 M01 N042 T0200 N043 G00 G97 S1528 M03 T0202 N044 M08 N045 G00 X0.7 Z2. N046 G00 X0 Z1. N047 Z0.1 N048 G01 Z-0.15 F0.003 N049 G00 Z0.1 N050 Z-0.1 N051 G01 Z-0.3 N052 G00 Z0.1 N053 Z-0.25 N054 G01 Z-0.45 N055 G00 Z0.1 N056 Z-0.4 N057 G01 Z-0.5751 N058 G00 Z1. N059 X0.7 Z2. (.125 Wide Part Off Tool) N060 G00 Z2. M09 N061 T0200 N062 M01 N063 T0500 N064 G00 G96 S250 M03 T0505 N065 M08 N066 G00 X0.7 Z2. N067 G00 X0.9 N068 Z-0.3199 N069 X0.8574 N070 G01 X0.6574 F0.02 N071 X0.6092 Z-0.344 F0.003 N072 X0.14 N073 G00 X0.9 N074 Z2. N075 X0.7 N076 G00 X0.64 Z2. M09 N077 T0500 N078 M30 |
|
#7
| |||
| |||
| If you got the M54 option for part count, then you could put out your code just before M30 and change M30 to M99 to repeat prog.. The number of parts must be sett manually in Mdi mode on the system/setting screen. (I think it is called so).. But if you dont got this option you got to use a macro and if you dont have the Macro B option you must use sub prog. |
|
#8
| |||
| |||
| 67a7519ho1 7/7/2006) #100=0 #101=50 -- 50 = part numbers N500 T0606m05(bar Stop) G00x0.1z0.0 M12 G00x2.z3. T0600 M01 N001 G50 S3000 N002 T0100 N003 G00 G96 S249 M03 T0101 N004 M08 N005 G00 X0.7 Z2. N006 G00 Z2.1 N007 X0.5988 N008 Z0.1 N009 G01 Z0 F0.007 N010 X-0.0312 N011 G00 Z2.1 N012 X0.7 N013 Z2. (cnmg .015) N014 X0.9 N015 Z0.0094 N016 X0.6452 N017 G01 X0.4452 S250 N018 Z-0.154 N019 X0.5938 N020 G03 X0.645 Z-0.1796 I0 K-0.0256 N021 G01 Z-0.2596 N022 G00 X0.845 N023 Z0.0094 N024 X0.595 N025 G01 X0.395 N026 Z-0.154 N027 X0.4452 N028 G00 X0.9 N029 Z0.0094 N030 X0.575 N031 G01 X0.375 N032 Z-0.164 N033 X0.5938 N034 G03 X0.625 Z-0.1796 I0 K-0.0156 N035 G01 Z-0.2596 N036 G00 X0.9 N037 Z2. N038 X0.7 (.25 Drill) N039 G00 Z2. M09 N040 T0100 N041 M01 N042 T0200 N043 G00 G97 S1528 M03 T0202 N044 M08 N045 G00 X0.7 Z2. N046 G00 X0 Z1. N047 Z0.1 N048 G01 Z-0.15 F0.003 N049 G00 Z0.1 N050 Z-0.1 N051 G01 Z-0.3 N052 G00 Z0.1 N053 Z-0.25 N054 G01 Z-0.45 N055 G00 Z0.1 N056 Z-0.4 N057 G01 Z-0.5751 N058 G00 Z1. N059 X0.7 Z2. (.125 Wide Part Off Tool) N060 G00 Z2. M09 N061 T0200 N062 M01 N063 T0500 N064 G00 G96 S250 M03 T0505 N065 M08 N066 G00 X0.7 Z2. N067 G00 X0.9 N068 Z-0.3199 N069 X0.8574 N070 G01 X0.6574 F0.02 N071 X0.6092 Z-0.344 F0.003 N072 X0.14 N073 G00 X0.9 N074 Z2. N075 X0.7 N076 G00 X0.64 Z2. M09 N077 T0500 #100=100+1 If[#100EQ#101]goto600 N078 Goto500 N600 M30 |
|
#10
| |||
| |||
| Please revisit post #8 as you read the following: The "counter" is essentially the 2 lines after N077. The "if" statement provides the count and stop/repeat logic "decider". This in concert with the two lines added at the very beginning of the program (the ones with the #) should count the parts and stop the program just as you asked. The amount of parts you want is done here: #101=50 -- 50 = part numbers |
| Sponsored Links |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |