![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
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. |
|
#2
| |||
| |||
| 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. |
|
#4
| |||
| |||
| 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.... |
|
#6
| |||
| |||
![]() 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.... |
|
#7
| |||
| |||
| 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. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
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 |