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 06-06-2009, 04:25 PM
Mihelich's Avatar  
Join Date: Apr 2009
Location: USA
Posts: 16
Mihelich is on a distinguished road
Part Home vs. Machine Home

I am currently running the EMC software and am running into an issue that I am hoping someone can steer me in the right direction.
I have homed out the machine at 0,0,0. (no issue here)
I then located the part home which can be seen in line N35.

My issue is when I run the code it heads from the machine home to the part home but then instead of staying at the part coordinates and moving to the next line of code it heads back up to the top of the Z axis.
It then tracks through the rest of the code way above the part.
Clearly it is not remembering the part home and instead is still using the machine home.
What in the heck am I doing wrong here?


N30 G00 X 0.000 Y 0.000 Z 0.000
N35 G54 X -2.757 Y -0.276 Z -9.507
N38 M3 S4000
N40 G00 X -7.037 Y -4.071 Z 0.250
N50 G01 Z -0.200 F5.0
N60 G01 X -0.463 F10.0
N70 Y -3.971
N80 X -7.037
N90 Y -3.871
N100 X -5.958
N110 X -5.960 Y -3.871
N120 X -5.969 Y -3.869
N130 X -5.994 Y -3.864
N140 X -6.019 Y -3.859
N150 X -6.024 Y -3.858
N160 X -6.044 Y -3.853
N165 M5
N170 G00 Z 0.250
N180 G00 X 0.000 Y 0.000
N190 M0
N200 M2

-Tom
Reply With Quote

  #2   Ban this user!
Old 06-06-2009, 05:12 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,565
Geof will become famous soon enough

Unless EMC is doing things very differently that is not how you enter the part home.

Those coordinates should be entered into a table somewhere then in your program you have the command G54 G00 X0. Y0. Z0. and the machines moves to thos coordinates because they are where the part zero is.

Actually having a Z value in the part zero is sometimes not good practice and it is better to leave that coordinate at zero and then bring your tool down under the tool length offset.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #3   Ban this user!
Old 06-06-2009, 05:29 PM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

Hi Mihelich

How much Z travel do you have I think you have set your Z axes/or tool #1 not correct you need to look at the tool offset page

Also with programing like this G0Z.250 then G0X---Y--- if you don't move the Z up before a X/Y move you will crash at some time & break your tool
__________________
Mactec54
Reply With Quote

  #4   Ban this user!
Old 06-06-2009, 05:35 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

I suspect it's the stored values for your g54 coordinate system. Take a look at section 3 here: http://wiki.linuxcnc.org/cgi-bin/emc...rdinateSystems
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #5   Ban this user!
Old 06-07-2009, 06:05 AM
Mihelich's Avatar  
Join Date: Apr 2009
Location: USA
Posts: 16
Mihelich is on a distinguished road

Thanks for the replies guys.

I sort of found a round about way to solve my problem.
Seems the G92 code starts the machine in the right part position after I do a machine home check then slew it to this position before I execute the code program. I do have a tech call in as to why the settings tab in my program menu is blank and thus prevents me from zeroing out the axis properly on the part.

N10 G92 X 0.000 Y 0.000 Z 0.000
N15 G00 Z 0.250
N20 M3 S5000
N25 G00 X -7.037 Y -4.071
N30 G00 Z -0.250
N35 G01 Z -0.200 F5.0
N40 G01 X -0.463 F10.0
N45 Y -3.971
N50 X -7.037
N55 Y -3.871
N60 X -5.958
N65 X -5.960 Y -3.871
N70 X -5.969 Y -3.869
N75 X -5.994 Y -3.864
Reply With Quote

Sponsored Links
  #6  
Old 06-07-2009, 10:05 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

It sure sounds like you don't quite understand how work offsets work. Yes, G92 can do anything, including screw you over if you abort the program and start at the wrong place

Calling G54 does not zero out anything. It invokes an offset of a work datum G54 X0Y0Z0 from the machine home G53X0Y0Z0.

So you measure the distance from machine zero to part zero via jogging motions and edge finders. When you have that figured out, then you enter those values into a G54work offset register in your control. Then within the body of your program, you simply call G54 to invoke the offset.

I don't know what EMC has for axis display options, but the machine position display will be different than the current work offset displayed position (by the amount in the G54 register), so you need to check out which is which, so you don't get confused.
__________________
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

  #7   Ban this user!
Old 06-07-2009, 01:56 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

Originally Posted by Mihelich View Post
Thanks for the replies guys.

I sort of found a round about way to solve my problem.
Seems the G92 code starts the machine in the right part position after I do a machine home check then slew it to this position before I execute the code program. I do have a tech call in as to why the settings tab in my program menu is blank and thus prevents me from zeroing out the axis properly on the part.

N10 G92 X 0.000 Y 0.000 Z 0.000
N15 G00 Z 0.250
N20 M3 S5000
N25 G00 X -7.037 Y -4.071
N30 G00 Z -0.250
N35 G01 Z -0.200 F5.0
N40 G01 X -0.463 F10.0
N45 Y -3.971
N50 X -7.037
N55 Y -3.871
N60 X -5.958
N65 X -5.960 Y -3.871
N70 X -5.969 Y -3.869
N75 X -5.994 Y -3.864
That makes sense, but you need to get an understanding of the coordinate systems and offsets or your going to be misarable. Your machine has absolute coordinates that you have defined in respect to HOME. Then there are relative coordinates which are typically used to redifine the coordinates based on the part to be cut location. If your using AXIS as the display in EMC, you can drop down one of the menu's and you can select which is displayed, relative or absolute. G92 in line 10 sets the relative coordinate offsets of X, Y and Z all to zero at the absolute position where the machine is located at that instant it is executed. G54, G55, etc are stored coordinate systems that can be recalled by executing those commands. So for example if you have a fixture that holds a part to be cut, rather than going through the motions of a resetup each time you can use one of the stored coordinate systems.
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
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 Help!- machine home traxxtito Fanuc 22 06-23-2011 05:07 AM
Need Help!- machine home traxxtito G-Code Programing 6 05-03-2009 12:22 PM
Pictures of first part off home built table barnon DIY-CNC Router Table Machines 2 04-23-2007 10:02 AM
Machine home vs part origin question yukonho Mach Software (ArtSoft software) 5 01-23-2006 08:05 AM




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