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 08-10-2006, 03:18 PM
 
Join Date: Jun 2003
Posts: 1,984
turmite is on a distinguished road
G54 offsets questions

Hey guys,

There was a thread a few days back that asked about G92 and immediately the thread went to why it shouldn't be used and the G54 up codes should be used instead. I have used the G92 for three years now but see an immediate need to move on. I'm gonna need some help on this.

Let me set the stage. I do not have an industrial strength machine, but it is all I have presently. I use Mach2/3 for my controller and it basically supports all the offset codes. I have a 4th axis that runs parallel to my x axis and I have to be dead centered over the a axis center or my parts are trash. Here's the problem. I use limit switches to set my home positions and for the most part they are within about .005" which is close enough. You will notice I said " for the most part"! My y axis seems to move from time to time and this is the axis that has to be centered over the a axis centerline. I have a known distance from the faceplate of the a axis in the x, which the tolerence really doesn't matter as long as the machine returns to 0 each time after the initial reference move. So far that is the case. Z is set using a tool set switch with is within the .005" range too. To get around the y problem I have written a small program that cuts a slot 1" long from either side of a piece held in the a axis and rotated 180 for cuts to be made from either side. I then measure the difference of the cuts, divide by 2 and move the y axis to the correct dro reading.

Now for sake of time let's assume my known correct position is:
x27.200y108.4724z-2.125a0.000 BTW this is my know position today.

The tool length set switch uses a G92 to set the tool tip at a know distance from the centerline of the a axis. This macro also sets the z axis dro to 0.000 G92 is modal so it is in effect till it is canceled, but presently only in the z axis.

All my programs are written from x0.00y0.00 with whatever z I need, and there is a G92X0.00Y0.00Z0.00A0.00 used about 5 lines into my programs to set all dro's to zero.

With this info, can anyone take the time to explain in very plain English how to do this with the offsets other than G92. It is possible to have a new tool set macro that does not use G92, so please take that into consideration.

I know this is more like a book, but I only want to have to learn this stuff one more time! Thanks in advance to anyone willing to help.

Mike
__________________
No greater love can a man have than this, that he give his life for a friend.
Reply With Quote

  #2  
Old 08-10-2006, 07:00 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

In the situation you have described, I don't think there is anything wrong with using a G92, indeed, it is almost necessary to do so, because of the 'float' in your machine whenever it homes on starting up.

It might be an idea to create a fixed reference point on your machine that you could dial in with a dial indicator. Suppose you were to permanently drill an accurately round hole in the table somewhere, but on purpose

After starting up your machine, you could check this location by centering the spindle over the hole with a swing indicator.

Even then, once you have done that, you will have to use a G92 X0Y0 command in MDI to set the machine position at that location. Essentially what you have done is renamed the coordinates in the machine coordinate system, which is G53.

Now, the location of your part, A axis or whatever, will be certain, and repeatable from that point onwards. Assigning a work offset simply becomes a matter of measuring the exact XY displacement of your desired work zero, back to the machine reference "hole".

You might also need a fixed height bar to set the machine's Z axis to zero. For instance, this could be almost the maximum distance from your spindle nose to the tabletop. Tool length offsets take care of the individual tools, of course.

Your Z axis work offset might be set differently. If you set all your tool length offsets off the table top (or a guage block sitting on the table, same diff), then the Z axis work offset would be the distance from the table top to the part's Z zero surface. In the case of 4th axis work, this would typically be the centerline height of your A axis. I am assuming that you call the centerline height Z zero in your part program, but that is your option and could be set somewhere else.
__________________
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

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 08:12 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