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! > MetalWorking Machines > CNC Swiss Screw Machines


CNC Swiss Screw Machines Discuss CNC Swiss Screw Machines here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 12-01-2009, 01:50 PM
 
Join Date: Feb 2009
Location: USA
Posts: 23
RC-CNC is on a distinguished road
G50 Shift?

Hi,

I am struggling with understanding exactly what is going on when doing a G50 shift. Here is an example of the code I am looking at the beginning of the program:

$1
M118
M9
G99M52M97M6
G50Z-.015
G0Z-.05X.285


So am I to believe that when G50 Z-.015 is called, that is setting the Z Axis at 0 at -.015 over the part or away from the part?

Then when I do a Z-.05 move, where is the tool? Where is the steel?

Thanks a lot, still learning these swiss machines.
Reply With Quote

  #2  
Old 12-01-2009, 08:19 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

If this is standard usage of G50 and you are running in absolute mode, the line:
G50 Z-.015
implies that a new Z0 datum was set .015" in front of the current position.
So, the next line
G0 Z-.05
will cause the tool to move the incremental remaining distance, Z-.035 further towards the chuck. This will satisfy the new Z0 datum that was set with the G50.
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #3  
Old 12-02-2009, 01:39 AM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Originally Posted by RC-CNC View Post
Hi,

I am struggling with understanding exactly what is going on when doing a G50 shift. Here is an example of the code I am looking at the beginning of the program:

$1
M118
M9
G99M52M97M6
G50Z-.015
G0Z-.05X.285


So am I to believe that when G50 Z-.015 is called, that is setting the Z Axis at 0 at -.015 over the part or away from the part?

Then when I do a Z-.05 move, where is the tool? Where is the steel?

Thanks a lot, still learning these swiss machines.
All Cuts in the Stock are going to be Z+ while Z- is the opposite, (away from the tool).

Think about where the Z Axis Spindle is in relationship to the Cartesian Coordinate Table.
__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

www.refractotech.com
Reply With Quote

  #4   Ban this user!
Old 12-02-2009, 06:15 AM
 
Join Date: Jan 2005
Location: USA
Posts: 237
cogsman1 is on a distinguished road

The G50 in THAT case is defining where the STOCK is as you start the program. There is a "theoretical" ZERO in your machine, the location of the the tool holder in the gang tool plate, and the cutoff tool you have in the machine has an insert that has an edge closer to the guide bushing by .010". You also need to have some material to face off, usually .005", so that is where the -.015" comes from. Now after this is read you will retract the cutoff tool and call the face tool into position. When you command "G0Z0" the stock will move OUT that .015" there by giving you .005" to remove during the facing operation. You should also note that at the END of the program after the cutoff you will see a line of code that sends the Main spindle BACK to that position WITH THE COLLET OPEN, "M6", "G0Z-.015". This is how you are able to run bar stock.
Reply With Quote

  #5   Ban this user!
Old 12-02-2009, 10:14 AM
 
Join Date: Feb 2009
Location: USA
Posts: 23
RC-CNC is on a distinguished road

Thanks for all replies!

Let me get this straight,

G50Z-.015 will do a GRID SHIFT (coordinate system set) setting the GRID 0 at .015 in the Z- direction. The machine will think that the end of the part (machine 0) is .015 away from the tool.

Z+ Z-
<- ->

Calling G0Z0 would then move the stock that .015 to make the shifted grid 0 be the same as the machine 0 thereby having the stock actually stick out .015 past the edge of the tool.

Doing a facing operation at Z0 would face .015 off the end of the part and establish the end of the part at machine 0.

The G0Z-.05 call moves the stock .050 away from the tool to allow for the tool to be retracted.



If I were to do a G50Z.015 (positive direction) shift, and then subsequently doing a G0Z0 call, the stock would actually retract .015 away from the tool and establish machine 0 as .015 AWAY from the tool (in space). Correct?
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-02-2009, 11:40 AM
 
Join Date: Jan 2005
Location: USA
Posts: 237
cogsman1 is on a distinguished road

You are correct. This method although it seems rather insane to a "non" swiss person, allows a much cleaner program result than using offsets for tool geometry.
Attached is a pdf that explains more.
Attached Files
File Type: pdf G50-uses.pdf‎ (133.3 KB, 121 views)
Reply With Quote

  #7   Ban this user!
Old 12-02-2009, 01:13 PM
 
Join Date: Oct 2008
Location: UK
Posts: 31
UK-Engineer is on a distinguished road

Hi

All the answers regarding your G50 query are correct but in case you were unaware (you did say you were a newbie) the M118 command is cancelling the collision detection at the start of the program. Although you often have to do this on the machines, (particularly when working close to the subspindle nut) you should be aware that you could potentially have a collision as the machine is not checking for this throughout the program.

I often thinks its best to cancel the alarm only when you need it. I find that depending on tool setup you can run programs on most Citizens (I assume your machine is probably a C16 or L20 machine?) without having to cancel the alarm at all.

Anyway good luck!
Reply With Quote

  #8  
Old 12-02-2009, 01:44 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Originally Posted by RC-CNC View Post
Thanks for all replies!

Let me get this straight,

G50Z-.015 will do a GRID SHIFT (coordinate system set) setting the GRID 0 at .015 in the Z- direction. The machine will think that the end of the part (machine 0) is .015 away from the tool.

Z+ Z-
<- ->

Calling G0Z0 would then move the stock that .015 to make the shifted grid 0 be the same as the machine 0 thereby having the stock actually stick out .015 past the edge of the tool.

Doing a facing operation at Z0 would face .015 off the end of the part and establish the end of the part at machine 0.

The G0Z-.05 call moves the stock .050 away from the tool to allow for the tool to be retracted.



If I were to do a G50Z.015 (positive direction) shift, and then subsequently doing a G0Z0 call, the stock would actually retract .015 away from the tool and establish machine 0 as .015 AWAY from the tool (in space). Correct?
YES!! Just remember that you can set a G50 (Coordinate Zero Anywhere in the Stroke of an Axis)

In theory you can set the A or B Axis Gang Slides for End Mills, Drills etc. If you do not want to use the Offset or Geometry Machine Positions.
You can do this when doubling and tripling operations using the same tool.
__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

www.refractotech.com
Reply With Quote

  #9  
Old 12-02-2009, 01:53 PM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Oh, also remember that it is the Bar Stock your Moving in the Z Axis not a Turret, unless your using one of the newer configurations. They have the Turrets I wanted, but the Boss didn't want to spend the extra $$$.
__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

www.refractotech.com
Reply With Quote

  #10   Ban this user!
Old 12-02-2009, 03:04 PM
 
Join Date: Nov 2009
Location: USA
Posts: 12
HSPMInc is on a distinguished road

Originally Posted by cogsman1 View Post
The G50 in THAT case is defining where the STOCK is as you start the program. There is a "theoretical" ZERO in your machine, the location of the the tool holder in the gang tool plate, and the cutoff tool you have in the machine has an insert that has an edge closer to the guide bushing by .010". You also need to have some material to face off, usually .005", so that is where the -.015" comes from. Now after this is read you will retract the cutoff tool and call the face tool into position. When you command "G0Z0" the stock will move OUT that .015" there by giving you .005" to remove during the facing operation. You should also note that at the END of the program after the cutoff you will see a line of code that sends the Main spindle BACK to that position WITH THE COLLET OPEN, "M6", "G0Z-.015". This is how you are able to run bar stock.
Why would you G50 the whole program for the part-off width? Why not Just G50 the part off tool.

For instance

T100
G50 W-.01

cutoff

G50 W.01
M99
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 12-03-2009, 06:07 AM
 
Join Date: Jan 2005
Location: USA
Posts: 237
cogsman1 is on a distinguished road

When you first turn on the machine the "work coordinate" for the "Z" axis would be some huge number like -8.4567 so when you start the cycle and tell the stock to go to "0" it would shoot out 8.4567. You MUST define your starting location which is different depending on the cutoff tool that is in front of the stock at starting.
FYI, the "G50" does NOT move anything just changes the work coordinate system numbers.
Reply With Quote

  #12   Ban this user!
Old 12-03-2009, 03:15 PM
 
Join Date: Nov 2009
Location: USA
Posts: 12
HSPMInc is on a distinguished road

Originally Posted by cogsman1 View Post
When you first turn on the machine the "work coordinate" for the "Z" axis would be some huge number like -8.4567 so when you start the cycle and tell the stock to go to "0" it would shoot out 8.4567. You MUST define your starting location which is different depending on the cutoff tool that is in front of the stock at starting.
FYI, the "G50" does NOT move anything just changes the work coordinate system numbers.
understood. So then just put a G121 or a G50Z0 in your header.
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
work shift teamus Hardinge Lathes 22 06-10-2009 05:32 AM
Newbie- Z-SHIFT RESET? mmussack G-Code Programing 0 05-07-2008 05:08 PM
Shift knobs hot knobs Trade Shows and Events 2 08-12-2007 07:34 AM
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 02:58 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