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 > G-Code Programing


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 03-18-2007, 03:03 PM
 
Join Date: Mar 2007
Location: USA
Posts: 22
DonutSlayer is on a distinguished road
Automatic work shift on lathe, is it possible?

I run a Mori Seiki SL25 with a Fanuc 15T control, I often have to make short parts between .5 and 2" long from long stock, I'll hang as much stock as possible out of the chuck and then make and part-off as many part's as I can without pulling out more material, I've just been using the Input+ key to shift over the #00 Shift offset and make a new part, is there an easy way to automate this process other than using subprograms and G55/G59 offsets?
Reply With Quote

  #2   Ban this user!
Old 03-18-2007, 03:44 PM
holbieone's Avatar  
Join Date: Feb 2007
Location: usa
Posts: 523
holbieone is on a distinguished road

why not just bump the stock out each part

set up one tool station with a pin

program the tip of the pin to be located where the rough stock should be

open the chuck and move stock forward until it comes into contact with the pin
Reply With Quote

  #3   Ban this user!
Old 03-18-2007, 04:01 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

Originally Posted by DonutSlayer View Post
I run a Mori Seiki SL25 with a Fanuc 15T control, I often have to make short parts between .5 and 2" long from long stock, I'll hang as much stock as possible out of the chuck and then make and part-off as many part's as I can without pulling out more material, I've just been using the Input+ key to shift over the #00 Shift offset and make a new part, is there an easy way to automate this process other than using subprograms and G55/G59 offsets?
Use a G52 command to crreate a secondary work coordinate. You need to make your program into a subroutine called by what becomes your main program.

Your program starts with the command G52 Z0.0 and then calls the subroutine which does a complete part. Below the first subroutine call you have a G52 Z-z.z, where -z.z is the length of the part plus the parting loss plus a facing allowance, then call the subroutine again.

You do this for however many parts you can get out of a length and after the last subroutine call you have the command G52 Z0.0 to reset back to the original work coordinate.
Reply With Quote

  #4   Ban this user!
Old 03-18-2007, 04:01 PM
 
Join Date: Mar 2007
Location: USA
Posts: 22
DonutSlayer is on a distinguished road

Originally Posted by holbieone View Post
why not just bump the stock out each part

set up one tool station with a pin

program the tip of the pin to be located where the rough stock should be

open the chuck and move stock forward until it comes into contact with the pin

Too much trouble, especially when dealing with spincast SS stock that we use a lot, it doesn't like to run true when pulled out.
Reply With Quote

  #5   Ban this user!
Old 03-18-2007, 04:16 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

You can use G10 to shift your coordinate system, i.e.:

G10 L2 P1 Z-10.5; would set the G54 Z offset to -10.5

G10 L2 P1 W-0.5; would shift the G54 Z offset -0.500.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-18-2007, 04:22 PM
 
Join Date: Mar 2007
Location: USA
Posts: 22
DonutSlayer is on a distinguished road

Geof, can you write me an example, you can just add the proper commands to the top and bottom for me, I've never ran sub-routines. my normal program would look something like this...

O0001;
G0T0101 G50S2000;
G54;
G96S300M3;
X5.Z.04M8;
makes part
G0X10.Z6.M9;
M1;
M30;
Reply With Quote

  #7   Ban this user!
Old 03-18-2007, 04:50 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

Originally Posted by DonutSlayer View Post
Geof, can you write me an example, you can just add the proper commands to the top and bottom for me, I've never ran sub-routines. my normal program would look something like this...

O0001;
G0T0101 G50S2000;
G54;
G96S300M3;
X5.Z.04M8;
makes part
G0X10.Z6.M9;
M1;
M30;
Okay I am not sure exactly how the subroutine call would be on your machine. On a Haas it is M97 P1000 which says go to line N1000 and carry on from there. The return is M99 which says go back to the line below the one with the call command. On your machine it may be O1000 or something different. I have put in line numbers just to identify things.

From line N4 it goes to N1000, does the first part and returns from the M99 at N100n back to N5. Then having had the G52 move the work zero forwardit goes from N6 back to N1000, returns and move again at N7 then back again at N8, returns to N9 cancels all the G52 shifts, homes and stops.

O0001;
N1 G0T0101 G50S2000;
N2 G54;
N3 G52 Z0.0;
N4 M97 P1000;
N5 G52 Z-z.z;
N6 M97 P1000;
N7 G52 Z-2z.z;
N8 M97 P1000;
N9 G52 Z0.0;
N10 G28M9;
N11 M30;
N1000 G96S300M3;
N1001 X5.Z.04M8;
N1002 makes part;
;
However many lines needed
;
N100n G0X10.Z6.;
N100n M99;

You will notice I left the spindle command in what becomes the subroutine. Mostly I do this because there will be tool changes in the subroutine and maybe speed changes. I find it easier to read the program if all the stuff telling the machine what to do is in one section.
Reply With Quote

  #8   Ban this user!
Old 03-18-2007, 05:04 PM
 
Join Date: Mar 2007
Location: USA
Posts: 22
DonutSlayer is on a distinguished road

Thanks Geof, I may give that a shot,my machine uses a M98 to call a sub and a M99 for the end.
Reply With Quote

  #9   Ban this user!
Old 03-18-2007, 05:19 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

Originally Posted by DonutSlayer View Post
Thanks Geof, I may give that a shot,my machine uses a M98 to call a sub and a M99 for the end.
Just make sure that is the subroutine call not the sub program call. Doesn't make much difference because you can do the same thing using a sub program instead of a subroutine.
Reply With Quote

  #10   Ban this user!
Old 03-18-2007, 06:38 PM
 
Join Date: Mar 2007
Location: USA
Posts: 22
DonutSlayer is on a distinguished road

Originally Posted by Geof View Post
Just make sure that is the subroutine call not the sub program call. Doesn't make much difference because you can do the same thing using a sub program instead of a subroutine.
I guess I was confusing a subprogram with a subroutine, I've never had to use a subroutine, but I'll look up the proper code.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-18-2007, 07:12 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

Have a look at this thread:

http://www.cnczone.com/forums/showthread.php?t=34502

One of the posts mentions something about a Fanuc control only doing sub program calls, not subroutine. This may be applicable to you.
Reply With Quote

  #12   Ban this user!
Old 03-19-2007, 06:19 PM
holbieone's Avatar  
Join Date: Feb 2007
Location: usa
Posts: 523
holbieone is on a distinguished road

Originally Posted by DonutSlayer View Post
Too much trouble, especially when dealing with spincast SS stock that we use a lot, it doesn't like to run true when pulled out.
back when i was running a lathe i would hold the stock way out and then take a pass or two to clean the o.d.
then flip it and do the other end work great

then it was very easy to bump out
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
Need more work for cnc lathe R&B General Metalwork Discussion 7 10-15-2006 10:53 AM
offset shift and part off nitemare Daewoo/Doosan 1 03-03-2006 09:49 PM
CNC lathe work Crazy Phantom Employment Opportunity 8 02-05-2006 10:42 PM
Anyone need help on 3rd shift?? AMCjeepCJ Milltronics 0 12-22-2005 01:34 AM
Grid Shift scuba General Metal Working Machines 1 10-13-2004 03:50 PM




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