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 02-04-2010, 10:28 AM
firekoe's Avatar  
Join Date: Dec 2009
Location: canada
Posts: 53
firekoe is on a distinguished road
how to get multiple parts from a bar

i know that u need to use a main program for the count and a sub program for the machining but could any one give me a Ex. i am using a yama seiki with a fanuc series oi-tc
Reply With Quote

  #2   Ban this user!
Old 02-04-2010, 01:34 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Are you asking how you code the program to count the parts?

Stevo
Reply With Quote

  #3   Ban this user!
Old 02-04-2010, 02:25 PM
firekoe's Avatar  
Join Date: Dec 2009
Location: canada
Posts: 53
firekoe is on a distinguished road

i have figured it out using a main and sub program but if u know how to do it in one program that would be helpful
thanks
Reply With Quote

  #4   Ban this user!
Old 02-04-2010, 02:29 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Originally Posted by firekoe View Post
i have figured it out using a main and sub program but if u know how to do it in one program that would be helpful
thanks
You still haven't told me what you are trying to do or what you figured out. Are you trying to setup something to count parts? Or are you coding the program to machine a part then index the bar and start over again?

You can also post your code so we can take a look at it and see about putting it into 1 program.

Stevo
Reply With Quote

  #5   Ban this user!
Old 02-04-2010, 02:36 PM
firekoe's Avatar  
Join Date: Dec 2009
Location: canada
Posts: 53
firekoe is on a distinguished road

the way i am doing it seems to work but would you know anything about a G84 for tapping and if so can you give a Ex for a M6x1 thanks
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 02-04-2010, 03:34 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

First you need to figure out your feed based on the speed you want to use. If your machine is in inch mode. Your thread is M6x1 so you need to take 1/25.4=.03937. multiply that by the speed you choose say 100. So your s&f are F3.937 S100.

G0G90X0Y0Z3.—position tool 3” above and sets “initial level”
M3S100---spindle on
M29---rigid tap mode
G98G84Z-.5R.1F3.937M8—G98 is "initial level" return(G99 is R-level return), Z tap depth
M30

Most fanucs default code is G98 so you may or may not need to use it depending on which your prefer.

I am still waiting and curious what your original issue/question actually was. What were you trying to do that now works?

Stevo
Reply With Quote

  #7   Ban this user!
Old 02-04-2010, 05:20 PM
firekoe's Avatar  
Join Date: Dec 2009
Location: canada
Posts: 53
firekoe is on a distinguished road

my original question was how do a get the machine to go to the top of the program and start again with out having to do anything. what i did to salve this to wright a little mane program with called up a sub and told the machine how many time to repeat the sub program. but was wondering if there is a way to do this with out having a sub and main program (all in one)


thank for the info on rigid tapping.

i am new to the cnc part of machining as the guy that used to run these machines left and i was elected to jump in and i great appreciate the help that you have given me today

Thanks
Kevin
Reply With Quote

  #8   Ban this user!
Old 02-04-2010, 05:57 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

Originally Posted by firekoe View Post
.....what i did to salve this to wright a little mane program with called up a sub and told the machine how many time to repeat the sub program. but was wondering if there is a way to do this with out having a sub and main program (all in one)....Thanks
Kevin
You want everything in one program? I think the only solution is buy a Haas.

The Haas allows you to do a local subroutine call, M97 Pnnnn where the nnnn is a line number in your main program. Normally I put them at the bottom after the M30 so a program looks like this:

O00000
Comments, etc, set work zero, enter tool diameters, whatever.
M97 P1000 L10
G28
M30
----
N1000
This is the program that does the part
M99 sends it back to the M97 line until L is counted to zero then to the line below.

Much, much more convenient than having two separate programs.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #9   Ban this user!
Old 02-04-2010, 07:18 PM
firekoe's Avatar  
Join Date: Dec 2009
Location: canada
Posts: 53
firekoe is on a distinguished road

that does not help as i don't have a haas TC and i don't like the haas machines as we have a hass tool room mill and from my experiences it a poor quality machine that is cheaply made will nosey swiss motor thanks any way
Reply With Quote

  #10   Ban this user!
Old 02-05-2010, 07:36 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Kevin,
You’re more than welcome for the help.

I got ya now. 2 programs are fine for what you are trying to do. The 2 main ways to accomplish what you are doing is the way you are doing it or writing some macro code to jump to the beginning of the program that way it can be in 1 program. An example of something like this would be.

#1=5(number or parts)
#2=0(counter)
N1

…your machining code here.
#2=#2+1
IF[#2LT#1]GOTO1
M30

#2 will count by 1 everytime that you run a part(your machining code). Once #2 has reached the same value as #1 the program will no longer jump to the N1 address and it will simply read the M30 and end the program.

Stevo
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 02-08-2010, 11:29 AM
PMT PMT is offline
 
Join Date: Mar 2004
Location: Wisconsin
Posts: 31
PMT is on a distinguished road

M99 instead of M30 at the end of the program will run it again.
Could you try M99 L10 at the end and see if it runs 10 times instead of indefinatley?

A quick experiment:
O0001;
G4 X2.;
M99 L5;

Also if you have "memory restart" mode. (I am pretty sure every Yama Seiki lathe I have seen has this) I believe you can preset your "parts required" on the settings page and it will run that many cycles. A quick call to Yama Seiki should verify this.

Note: this is not the "memory restart" mode used to continue in a program when you change a tool etc. this is the mode that would be run with barfeeders to continually restart program.
Reply With Quote

  #12   Ban this user!
Old 02-09-2010, 02:47 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

On Fanuc, you have system variables for no. of parts required and no. of parts produced, in the current machining session. You can store a desired value for no. of parts required. The no. of parts produced automatically increments whenever M02/M30/M-code defined in a parameter is executed (You can define, say, M100 for this purpose). You can compare the two variables, for terminating the program execution (which is run in a loop).
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple parts 1 stock cnckyle SolidCam 9 01-26-2010 05:07 AM
Newbie- Need help machining multiple parts greenweanie EdgeCam 4 05-22-2009 08:20 PM
Multiple parts in one set up...? Rot Iron Racer Dolphin CADCAM 1 08-15-2008 11:28 PM
Multiple Parts In M.C. stang5197 Mastercam 5 03-11-2007 07:13 PM
Multiple Parts nitemare G-Code Programing 2 12-21-2005 07:14 PM




All times are GMT -5. The time now is 11:53 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