![]() | |
| 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 looking for advice on g-code homing script that I'm going to use in machIII I have one z stepper, one y stepper, and 2 x steppers (typical 4 stepper gantry router X is one of the motors, A is the other) I've read the info from the sidebar on the home page (CNCzone.com-Machinist Community Forums - Magazine - CNC Basics And Using CNC - Using the Homing Commands (re-print from deskcnc.com)) and am attempting to wire all of the limit and homing switches into one input on my g540 controller. I want to wire the Limit/homing switches so low is not triggered and high is triggered. At least that is the plan for now. I guess the attempt is to use the g-code to make up for using one input but having two motors on the same axis. G92.2 G54 (Zero Work Coordinate Offsets) G30 X.5 A.5 F100 (Home the X Axis at a fast feedrate and offset by 0.5) G30 X.05 A.05 F1 (Re-Home the X Axis at a slower feedrate and offset) G30 X.05 F1 (Re-Re-Home X separately from A) G30 A.05 F1 (Re-Re-Home A separately from X) G30 Y.5 F100 (Home the Y Axis at a fast feedrate and offset by 0.5) G30 Y.5 F1 (Re-Home the Y Axis at a slower feedrate and offset) G30 Z.5 F100 (Home the Z Axis at a fast feedrate and offset by 0.5) G30 Z.5 F1 (Re-Home the Z Axis at a slower feedrate and offset) Concerning the X axis, the gantry initially will move itself near the home switches and home and when either side activates a switch it will consider it homed. Then it will come back and do each side separately in order to square itself up. I did the offsets a much lower amount the second/third time that I feel is an amount of out-of-square amount that is easy to induce in my gantry as it will be twisting while getting these sides homed. Does this make sense? any better way to go about this? |
|
#2
| ||||
| ||||
| Are you slaving the motors in Mach3? If so, when you move the X, the A will move with it. Imo, if you need to square the gantry, then use two inputs. One for X, Y, and Z, and one for A. If you can live without squaring the gantry, then lose the A switch, and in General Config, check the box that says "Home Slave with Master". Also, I don't think G30 will home the machine. I think you need to use G28.1 And maybe I'm not doing it right, but G92.2 G54 isn't zeroing the work coordinates. The manual says use G92.1, but that doesn't work for me either.
__________________ Gerry Mach3 2010 Screenset http://home.comcast.net/~cncwoodworker/2010.html (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
![]() |
| 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 |
| Problem- Z homing script? | antonzedd | Carken Products (Deskam, DeskCNC etc) | 0 | 12-09-2009 09:16 AM |
| Newbie- Run G-code from script | leif_brunosson | LinuxCNC (formerly EMC2) | 1 | 11-11-2008 01:39 PM |
| Newbie- Homing axis in G-Code | Des Jacobsen | Mach Software (ArtSoft software) | 0 | 10-21-2008 01:06 AM |
| Need help with VB script Syntax Please. | Adamj12b | Mach Software (ArtSoft software) | 6 | 09-18-2008 07:18 AM |
| Newbie- VB6,VB.net,VB script,What one??? | hydrospin01 | Visual Basic | 11 | 05-24-2008 08:09 PM |