585,591 active members*
2,958 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > G-Code Programing > Starting script needed for home made cnc machine
Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2015
    Posts
    3

    Starting script needed for home made cnc machine

    Hi folks,

    I've just setup endstops of X and Y. For my Z I use a touch plate. I want to Home Z using the touch-plate (3.9mm thick) first, then I want it to home X Y before starting the job.
    One thing needs to be noted is that my Y homes 142mm past the start of
    my work area. So I can set an offset on my Y with something like M206 Y-142??? I think.

    This is what I have now but I'm very unsure if this will work as I want it to.

    ;Project <project>
    ;Created by Estlcam version <version> build <build>
    ;Machining time about <time> hours
    G28 X Y
    G1 Y150 F600
    M0 INSTALL TOUCH-PLATE
    G28 Z (Home Z to touchplate)
    G1 Z10 F120
    M17 (Enable Steppers)
    M0 REMOVE TOUCH-PLATE
    G1 Z-3.9 F120
    G92 X0 Y0 Z0
    G1 Z4 F120
    G28 X Y
    G90

    Thanks in advance,

    John

  2. #2
    Join Date
    Jan 2005
    Posts
    15362

    Re: Starting script needed for home made cnc machine

    Quote Originally Posted by solly747 View Post
    Hi folks,

    I've just setup endstops of X and Y. For my Z I use a touch plate. I want to Home Z using the touch-plate (3.9mm thick) first, then I want it to home X Y before starting the job.
    One thing needs to be noted is that my Y homes 142mm past the start of
    my work area. So I can set an offset on my Y with something like M206 Y-142??? I think.

    This is what I have now but I'm very unsure if this will work as I want it to.

    ;Project <project>
    ;Created by Estlcam version <version> build <build>
    ;Machining time about <time> hours
    G28 X Y
    G1 Y150 F600
    M0 INSTALL TOUCH-PLATE
    G28 Z (Home Z to touchplate)
    G1 Z10 F120
    M17 (Enable Steppers)
    M0 REMOVE TOUCH-PLATE
    G1 Z-3.9 F120
    G92 X0 Y0 Z0
    G1 Z4 F120
    G28 X Y
    G90

    Thanks in advance,

    John
    Z is never homed to a touch -plate machine Home is Z axes up to it's max travel or where ever you want it to stop by activating the Home/ limit switch

    Z axes offset and Touch-Plate is used for setting Tool length offset G43 Etc Tool offsets G43

    Work Offsets us G54 Etc

    G28 try G53 or just G0

    G92 X0 Y0 Z0 never do a Z axes move on the same line as a X and Y axes move Z axes move is always done before a X Y move
    Mactec54

  3. #3
    Join Date
    Jan 2005
    Posts
    15362

    Re: Starting script needed for home made cnc machine

    This is how Z axes Tool offset works
    Attached Thumbnails Attached Thumbnails G43 work tool Offset.PNG  
    Mactec54

  4. #4
    Join Date
    Mar 2015
    Posts
    3

    Re: Starting script needed for home made cnc machine

    Thanks for all this.

    Are you able to change what I have to what you recommend as a whole script? G53 is not supported by Marlin (sorry I should've said that's what I was using).

    Still trying to get my head around it all.

    Thanks again for the reply

  5. #5
    Join Date
    Jan 2005
    Posts
    15362

    Re: Starting script needed for home made cnc machine

    Quote Originally Posted by solly747 View Post
    Thanks for all this.

    Are you able to change what I have to what you recommend as a whole script? G53 is not supported by Marlin (sorry I should've said that's what I was using).

    Still trying to get my head around it all.

    Thanks again for the reply
    No I can't help you with your control, you are best to try where the Marlin software is used there may be some users on here, but in general that is what is happening when people get into a system with very little support
    Mactec54

  6. #6
    Join Date
    Jan 2005
    Posts
    15362

    Re: Starting script needed for home made cnc machine

    Quote Originally Posted by mactec54 View Post
    No I can't help you with your control, you are best to try where the Marlin software is used there may be some users on here, but in general that is what is happening when people get into a system with very little support
    This thread most likely has a better system than what you are working with https://www.cnczone.com/forums/uncat...cam-forum.html
    Mactec54

  7. #7
    Join Date
    Mar 2015
    Posts
    3

    Re: Starting script needed for home made cnc machine

    Quote Originally Posted by mactec54 View Post
    This thread most likely has a better system than what you are working with https://www.cnczone.com/forums/uncat...cam-forum.html
    Thanks mate

  8. #8
    Join Date
    Feb 2009
    Posts
    6028

    Re: Starting script needed for home made cnc machine

    Marlin is great for 3d printers, but not what you want on a CNC. Your way better off going with GRBL or Linux CNC or one of the other open source packages for CNC.

Similar Threads

  1. Home made machine vibration
    By vakeiros in forum DIY CNC Router Table Machines
    Replies: 11
    Last Post: 04-10-2017, 03:18 PM
  2. Home Machine before starting program
    By bensmed91 in forum Fanuc
    Replies: 6
    Last Post: 01-28-2016, 01:37 AM
  3. Home Made Injection Machine
    By Rob_M. in forum Moldmaking
    Replies: 95
    Last Post: 11-12-2012, 02:47 AM
  4. accuracy of home made CNC machine
    By spaltiel in forum DIY CNC Router Table Machines
    Replies: 20
    Last Post: 04-01-2010, 09:50 PM
  5. Home made encapsulating machine?
    By tybrenis in forum Community Club House
    Replies: 10
    Last Post: 01-15-2007, 11:04 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •