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, 07:21 PM
 
Join Date: May 2005
Location: USA
Posts: 66
titchener is on a distinguished road
Machine Z0.0 location on various controllers

I'm writing some macro code that I would like to be capable of running on as many different controllers as possible, and it makes some assumptions about the location of machine zero.

On my machine (Mach3 controller), the location for Z0.0 in machine coordinates is with the spindle fully raised.

Is that also true on commercial machines (Haas, Fanuc, ...), ie machine Z0.0 is always with the spindle fully up, or do some of these machines use a different convention?

Is this something the user can change or is it always fixed on the machine?

Thanks,

Paul T.
Reply With Quote

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

The conventional location for Z machine zero is with the Z axis raised as high as possible or at the tool change position.

On Haas machines with the carousel tool changer Z zero is at the tool change position and the Z axis can actually go positive far enough to left clear of the tool. On some other makes of machines I think Z zero is as high as the Z axis can go and the tool change position is a few inches below this.
__________________
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, 09:58 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

On Brother and Okuma machines, I believe Z0 is the top of the table. So when you "Home" Z, it goes to the + travel limit, and shows a Z position of whatever the distance from the gage line to the table top is.
Reply With Quote

  #4   Ban this user!
Old 06-07-2009, 11:54 AM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

Adding to dcoupar's remarks, there are some exceptions. Toshiba also puts the 0 at the table and Niigata has done this as well.

To answer the question "can it be changed?". Yes, it can but it's not necessarily simple especially as the machine gets more complex or has more automated features that depend on that particular axis. It's probably more tedious than complex and you just have to be sure you get all of the parameters. Then adjust any mechanicals, and correct the programs or macros that rely on this as well.

I've moved the machine 0 positions on several machine types, models and builders. Some were a snap... others took some time.
__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

  #5   Ban this user!
Old 06-07-2009, 12:46 PM
 
Join Date: May 2005
Location: USA
Posts: 66
titchener is on a distinguished road

Thanks for the info fellas, that was helpful.

Paul T.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 06-07-2009, 02:00 PM
 
Join Date: May 2009
Location: USA
Posts: 10
Allen Thompson is on a distinguished road

Originally Posted by titchener View Post
I'm writing some macro code that I would like to be capable of running on as many different controllers as possible, and it makes some assumptions about the location of machine zero.

On my machine (Mach3 controller), the location for Z0.0 in machine coordinates is with the spindle fully raised.

Is that also true on commercial machines (Haas, Fanuc, ...), ie machine Z0.0 is always with the spindle fully up, or do some of these machines use a different convention?

Is this something the user can change or is it always fixed on the machine?

Thanks,

Paul T.
Never make any assumptions with your macros. G2 CW G3 CCW should be read from a Machine Parameters sub-routine. From which end of the spindle were they looking when they were looking at a clock? Especially true of lathes but you did say "as many different controls as possible". And if there is one exception, you must always program around it. Mechanical things as well. Each axis travel distance as well as max and min spindle speeds;too low a spindle speed often gives an alarm. I guess you could say that macros that make assumptions are just hard coded programs.

I've changed parameters in Yasnac MX3s and Hitachi lambda controls to tell the machine that the tool length in Z comes from a spindle gauge point and not the tip of the tool. I think this parameter is the number one would fiddle with if one chose to move how the CNC interpreted Z0.

Any hooo..... just put a variable in your machine independent macro (god love you. you must be young) that asks for the amount and sign of z motion from home. If all the way up is zero then -(minus) and 25.oo inches should give you the working envelope you desire. But what if someone made z-zero all the way up and the motion down is more plus....like Hurco does in their mills....
Macros can keep you up nights

And in closing I must mention M codes. And different G-Code Series. A G94 is not always a G94 sometimes it is a G98. And G76's Canned Threading Cycle on FANUCs are not always G76s but they do require only one line to execute - except for the FANUC versions that require two G76 lines to execute. Unless the Canned Threading Cycle is not a G76.
Ever programmed G-Codes for a FAGOR ?

I must say that I could not sleep nights if I ever left a macro some where that said it would run on several machines. The crash potential is almost limitless. Make everything universal for the machine you are standing in front of; the portability will then be built in. Mostly....
Reply With Quote

  #7   Ban this user!
Old 06-08-2009, 04:16 PM
 
Join Date: May 2005
Location: USA
Posts: 66
titchener is on a distinguished road

Wow, as I'm getting a better understanding of this (thanks for the help fellas) its pretty clear that writing a g code macro that has any complexity at all and expecting it to run reliably on more than one controller type is not going to happen.

I'm surprised that the consumers of machine tools allowed the machine manufacturers to diverge so much on the G code language. Its like the old days of machine tools where every manufacturer had their own proprietary collet and tool holder type. Eventually the market forced them to adopt standards for the tool holders, I wish that would have happened with the controller language.

Oh well, thats the way it goes.

Paul T.
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
Training on your machine at your location jetski Employment Opportunity 8 03-17-2009 05:50 AM
Need Help!- Upgrading CNC controllers for an Anton Engelhardt CNC Metal Milling Machine drosscr General CNC (Mill and Lathe) Control Software (NC) 1 11-16-2008 06:47 PM
Learning CNC Mill Machine Models and Controllers? Which to buy etc Rich05 General Metal Working Machines 0 05-26-2007 05:32 PM
Map your location Rekd CNCzone Club House 20 10-20-2005 09:49 PM
location? fastolds Surfcam 11 12-02-2004 01:58 AM




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