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 09-09-2008, 07:47 PM
 
Join Date: Dec 2007
Location: usa
Age: 57
Posts: 233
woffler is on a distinguished road
Exclamation G53 g code need a little help is the machine supposed to move?

i am having a little trouble with a G53z0. should this cause a z move its in a line of code as i understand it is a absolute call taking it to mean z 0 am i correct or all wet here ? What happens is the z will move up .45 and no where in the program did i call for this move and i can't find a reason in mach three for this move either. heck i am lost sure would appreciate a ya or nay on this here deal thanks .dusty
Reply With Quote

  #2   Ban this user!
Old 09-09-2008, 08:16 PM
 
Join Date: Jul 2003
Location: Kent,Wa.
Posts: 28
lsalme is on a distinguished road

Sounds like in the program the tool is .45 below the z0 of the machine coordinates before the line G53Z0 so it would move up .45 to machine coordinate zero.
Reply With Quote

  #3  
Old 09-09-2008, 08:37 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

G00 G53 Z0 should cause an axis move to machine zero. If the machine has a homing routine, make sure that you execute it first thing after power up so that all axis are at the reference positions. For Z this usually means tool all the way up and away from the work table.

A little bigger slice of your program code might be helpful.

Also, ensure that any drill cycles have been cancelled by using a G80 in the first line (the safety line) at the top of your program. Drill cycles that are aborted may leave the controller in a state where it is ready to execute another Z axis movement as soon as any axis makes another move.
__________________
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

  #4   Ban this user!
Old 09-09-2008, 09:12 PM
 
Join Date: Dec 2007
Location: usa
Age: 57
Posts: 233
woffler is on a distinguished road
thanks

thanks guys i am starting to see what your saying i just could not figure out where it was coming from i see it is related to machine cooridanates and homing i will home at start up.And go from there i just knew it was the nut behind the wheel .
Reply With Quote

  #5   Ban this user!
Old 09-09-2008, 09:26 PM
 
Join Date: Dec 2007
Location: usa
Age: 57
Posts: 233
woffler is on a distinguished road
re program

BobCAD1test two.txt here is the program file sorry i could not figure out how to do this .I think its in there but i am not sure
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-09-2008, 11:43 PM
 
Join Date: Dec 2007
Location: usa
Age: 57
Posts: 233
woffler is on a distinguished road
re the zero

i am still a little confused lets say that the g53zo. sends the z to machine cord. 0 now you are going to have to come back down and set your z part height to 0 by zeroing your dro and then its going to rapid from that height on its next line move? I'm still missing something here .thanks
Reply With Quote

  #7   Ban this user!
Old 09-10-2008, 06:57 AM
extanker59's Avatar  
Join Date: Mar 2008
Location: USA
Age: 53
Posts: 426
extanker59 is on a distinguished road

Looks to me as if that first G53 Z0 is a safety move unless your machine requires it. It's not rapiding down to set your DRO. I'm not sure what you mean by that but it's not. It's rapiding down to Z.1 above the work offset G54 which you have (hopefully) already set in your offset page. BTW, that program scares the cr*p out of me. It'll probably work but those G00 moves, that don't actually move, at the start of each section are a potential crash. Maybe its just me. I would say that your Bobcam post needs a bit more work. What kind of machine? What kind of experience on CNCs?
Reply With Quote

  #8   Ban this user!
Old 09-10-2008, 09:00 AM
 
Join Date: Dec 2007
Location: usa
Age: 57
Posts: 233
woffler is on a distinguished road
Red face know what you mean

i sent the program to bob cad and they are trying to say its fine it is scary .i was just trying to do a test on this software and every post does some scary stuff like rapiding at zero height and stoping and starting at each z height change.i was just looking for some confirmation it wasnt me that these post 's were a mess .i am running mach three controler on a sqaure coloum mill.the outher post i used would try to rapid at zero part height and get to cut position and then go to rapid height and then go back down to cut height.
Reply With Quote

  #9  
Old 09-10-2008, 09:13 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

Woffler,
It might help if you understood that there are two coordinate systems being used in your program.
G53 is the machine coordinate system and does not change. Simplistically, it is attached to your machine XYZ and corresponds to axis travels from the home position. So if you want to send the machine to X0Y0Z0, it is possible to do so very simply with the G00 G53 + whatever axis you want.

You can also use other values than zero if you want to part the table in a particular spot.

But, the G53 coordinate system does not typically apply to the part you want to cut. Suppose you had a piece of stock the same size as your table travels. You clamp it so that its one corner lies on X0Y0 of the machine coordinate system. If you want to take a profile cut around the outside of that part, you are screwed because you cannot back the tool off of the corner because the machine is already at max travel on that corner.

So then you must move the stock in at least the cutter radius, in order to just squeeze the tool down to graze the part.

If you think about all movements in the G53 coordinate system, then things become complex very rapidly. Now the corner of your part cannot be at G53 X0Y0 because there isn't room for the tool to do anything on two sides of the part.

So you need to offset the corner, but to keep your sanity, you'd still like to call the corner of the part X0Y0 because that is where you get to measure the print dimensions from.

The good news is that you can create a new X0Y0 point, but no longer in the G53 coordinate system, because that belongs to the machine. It is always there, unchanging.

So this is where your G54 work shift comes into use: this offsets the X0Y0 a certain distance from G53X0Y0. The controller recognizes this offset when you command G54, then it goes and looks at what is in your work shift register X,Y, Z and temporarily moves the work coordinate system to the point you have entered into the work shift register.

For simplicity sake, start with the G54 Z = 0, which means it will correspond to the G53 Z0. If you begin this way, then you set your tool length offsets as lengths measured from G53Z0 all the way down to the top of your part. This distance varies according to the length of each tool as measured from tool tip to the taper socket. But no matter, by jogging the machine in Z, you can use the machine to measure the distance of the tool from the part and that is what is important.
Line N05 calls your G54 work shift.
Line N06 calls for the length offset of T1 by means of G43 H1.
Line N07 calls for the tool to take a position .25" above Z0, but this Z0 is not G53 Z0 rather it is G54Z0 because it is the top zero of the part, not the machine. Because you set your tool length offsets to be the distance all the way from machine Z0 to the top of the part, you have effectively negated the need for a Z value in the G54 register. But the top of the work nonetheless, is still part Z0 or G54 Z0.

There are other things to understand about it, but maybe that will help you get a handle on the fact that there is one machine coordinate system called G53 and then we can shift it around and we call the shifted coordinate systems by new names, G54, G55 etc.
__________________
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

  #10   Ban this user!
Old 09-10-2008, 09:36 AM
 
Join Date: Dec 2007
Location: usa
Age: 57
Posts: 233
woffler is on a distinguished road
Red face thanks

i think i understand about the machine coordinates and g53 now a little .Now lets say i home machine it sets g53 at o now i have a prt at say 3 of the table when i jog down to part height and zero my dros it outputs a g54 offset in mach three telling the machine that this is now zero it still reads what ever i came down in the machine coodinates dros .And now will it go to the rapid height i set in the program .10 and then make its xy move is this the correct order of steps that should happen.i have two sets of dros machine coord. and the offset dros . so when i jog down and zero the offset dros running a g54 it should run the program from there am i correct in this?
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-10-2008, 12:31 PM
 
Join Date: Dec 2007
Location: usa
Age: 57
Posts: 233
woffler is on a distinguished road
thanks to all

I finally got it to go like it should all the info you gave me solved my inexperience problem with the g53 and g54 .I also got a different post processer and that helped evidently i had a bad file and it is okay now thanks to all for your most kind and generous help.
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
g code for repeat the previous move woffler G-Code Programing 6 03-26-2008 10:07 PM
HOW TO MOVE A MACHINE DONNYBRASS General Metal Working Machines 7 11-16-2007 06:56 PM
How to code a step motor axis move? Niggo OpenSource Software 3 08-13-2007 10:40 PM
Are they supposed to sound like this? cyclestart Stepper Motors and Drives 10 07-07-2007 12:25 PM
Will Jog but not Move Correctly in G code dafowfidy Mach Software (ArtSoft software) 5 03-29-2007 10:27 PM




All times are GMT -5. The time now is 12:04 AM.





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