CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > Fanuc


Fanuc Discuss Fanuc controllers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 07-06-2006, 12:22 PM
 
Join Date: May 2005
Location: usa
Posts: 90
scubanick is on a distinguished road
Fanuc parts counter

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
Reply With Quote

  #2   Ban this user!
Old 07-06-2006, 02:57 PM
 
Join Date: May 2006
Location: Sweden
Posts: 265
M-man is on a distinguished road

Do your controll have the macro B option?
Otherwise you could use a subprogram and call the machining prg 50 times.

EX.
%
O1000
M98 P2000 L50
M30

O2000
Prog..
Reply With Quote

  #3   Ban this user!
Old 07-06-2006, 03:24 PM
 
Join Date: May 2005
Location: usa
Posts: 90
scubanick is on a distinguished road

im not sure about the B marco option

i was tryin to stay away from the subprogram deal
i was hoping there was a way for me to just specify a line of code
near the end of the program
Reply With Quote

  #4   Ban this user!
Old 07-07-2006, 08:47 AM
 
Join Date: May 2006
Location: Sweden
Posts: 265
M-man is on a distinguished road

I ve got the Part counter option, Just define number of parts at Mdi/settings and use M54 in program to count..
Reply With Quote

  #5   Ban this user!
Old 07-07-2006, 08:50 AM
 
Join Date: May 2006
Location: Sweden
Posts: 265
M-man is on a distinguished road

#100=0
N10
MACHINING
#100=#100+1
If[#100EQ50]goto500
goto10
N50M30


Mabe this will work
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-07-2006, 01:02 PM
 
Join Date: May 2005
Location: usa
Posts: 90
scubanick is on a distinguished road

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
Reply With Quote

  #7   Ban this user!
Old 07-07-2006, 02:38 PM
 
Join Date: May 2006
Location: Sweden
Posts: 265
M-man is on a distinguished road

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.
Reply With Quote

  #8   Ban this user!
Old 07-07-2006, 02:43 PM
 
Join Date: May 2006
Location: Sweden
Posts: 265
M-man is on a distinguished road

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
Reply With Quote

  #9   Ban this user!
Old 07-07-2006, 03:46 PM
 
Join Date: May 2005
Location: usa
Posts: 90
scubanick is on a distinguished road

ok now on the mid/setting page ???under macro??
i go to variables column and put 50 where at??
which variable #
Reply With Quote

  #10   Ban this user!
Old 07-07-2006, 08:59 PM
 
Join Date: Dec 2005
Location: USA
Posts: 3,319
NC Cams is on a distinguished road

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
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-08-2006, 08:09 AM
 
Join Date: May 2005
Location: usa
Posts: 90
scubanick is on a distinguished road

ill give it a try
thanks
Reply With Quote

  #12   Ban this user!
Old 07-08-2006, 08:53 AM
Jarwalcot's Avatar  
Join Date: Jun 2005
Location: USA
Age: 46
Posts: 184
Jarwalcot is on a distinguished road

Run Hours and Part Count Display: 907.4
__________________
JR Walcott
Georgia Machine Tool Resources, LLC
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -5. The time now is 01:26 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361