Gcode Z-axis

Results 1 to 8 of 8

Thread: Gcode Z-axis

  1. #1
    Registered
    Join Date
    Apr 2017
    Location
    Belgium
    Posts
    5
    Downloads
    0
    Uploads
    0

    Default Gcode Z-axis

    Hello,

    I'm making a cnc machine that can write. for that i'm using gcode and cambam.i have limit switches on my X and Y axis but not on my Z. I can't add switches there but now i can't home anymore because of that. Do you guys know how can can home without the Z-axis?

    Similar Threads:


  2. #2
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default Re: Gcode Z-axis

    What control software are you using?
    And why can't you home?

    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

    JointCAM - CNC Dovetails & Box Joints
    [URL]http://www.g-forcecnc.com/jointcam.html[/URL]

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  3. #3
    Registered
    Join Date
    Apr 2017
    Location
    Belgium
    Posts
    5
    Downloads
    0
    Uploads
    0

    Default Re: Gcode Z-axis

    Quote Originally Posted by ger21 View Post
    What control software are you using?
    And why can't you home?
    I'm using universal gcode sender for controlling the machine and Cambam for drawing things.When i press the homebutton he searches for the switches so that he knows where he is but my Z-axis has no hard limits, because of that he's stuck in homing because he can't find a switch and i can't add switches on my Z-axis.(srry if my English is not that good).



  4. #4
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: Gcode Z-axis

    Wire the X home switch to the Z home input also. That way when the X homes, the controller will think that the Z has homed also.



  5. #5
    Registered
    Join Date
    Apr 2017
    Location
    Belgium
    Posts
    5
    Downloads
    0
    Uploads
    0

    Default Re: Gcode Z-axis

    Quote Originally Posted by Jim Dawson View Post
    Wire the X home switch to the Z home input also. That way when the X homes, the controller will think that the Z has homed also.
    That doesn't work because he moves the Z-axis first to make sure he doesn't make contact with the paper after that he moves the X and Y. Any other suggestions?.



  6. #6
    Member mactec54's Avatar
    Join Date
    Jan 2005
    Location
    USA
    Posts
    15362
    Downloads
    0
    Uploads
    0

    Default Re: Gcode Z-axis

    Quote Originally Posted by ThatGuy2 View Post
    That doesn't work because he moves the Z-axis first to make sure he doesn't make contact with the paper after that he moves the X and Y. Any other suggestions?.
    Have a micro switch setup for the Z axes, that you can hit with your hand when the Z moves to where you think it is safe,

    Mactec54


  7. #7
    Registered
    Join Date
    Apr 2017
    Location
    Belgium
    Posts
    5
    Downloads
    0
    Uploads
    0

    Default Re: Gcode Z-axis

    Quote Originally Posted by mactec54 View Post
    Have a micro switch setup for the Z axes, that you can hit with your hand when the Z moves to where you think it is safe,
    Thx for the help.I will do that because it's the only solution.Hope the jury won't mind that i need to do it manualy.I'm making this for my integrated test.



  8. #8
    Activation process Bradnicent's Avatar
    Join Date
    Jul 2018
    Posts
    87
    Downloads
    0
    Uploads
    0

    Default Re: Gcode Z-axis

    Hi guys I'm trying to use a macro called m300 for my z axis for plasma and downloaded it here.. Plasma - detection of material I'm using mach3 for Cnc and sheetcam for nestings

    This is the m300 macro

    HeightOfDetect = 20
    SpeedOfDetect = 300
    Offset = 5
    HeightOfTransfer = 2
    HeightOfPierce = 5
    HeightOfCut = 1
    Delay = Param1()

    Dim MaterialPos As Double

    If (GetOEMDro(186)>HeightOfDetect) Or GetOEMDro(186) Then
    code "G00 Z" & HeightOfDetect
    While IsMoving()
    Wend
    End If

    message("Detecting of material pos.")
    code "G31 Z-10 F" & SpeedOfDetect
    While IsMoving()
    Wend
    If GetOEMDro(186)=-10 Then
    message("No material detected")
    code "G00 Z" & HeightOfDetect
    While IsMoving()
    Wend
    1: GoTo 1
    Else
    MaterialPos = GetOEMDro(186) + offset
    message("Material detected pos = " & MaterialPos)
    code "G00 Z" & MaterialPos + HeightOfTransfer
    While IsMoving()
    Wend
    DoSpinCW()
    If Delay>200 Then
    code "G00 Z" & MaterialPos + HeightOfPierce
    While IsMoving()
    Wend
    End If
    Sleep(Delay+1)
    code "G00 Z" & MaterialPos + HeightOfCut
    While IsMoving()
    Wend
    End If

    The m300s job is to lower the to torch till the tip touches the metal and closes a micro switch to zero it then reverses back up and opens the micro switch to reverse further up to a curtain distance before firing the plasma

    Before I do a test run of the m300 I need to manually zero the z axis in mach3

    I'm trying to add the m300 to the post processor of sheetcam so that I can create a g code from my nestings to call in mach3 to perform the m300 in it.

    I have added the m300 macro to the macro directory in mach3

    My questions are
    1)How and where do I add the m300 macro to sheetcam post processor?
    2) Are there codes that need to be removed from the sheetcam post processor?
    3) is there a code to zero the z axis after the m300 automatically?

    This is the only problem I have before building my Cnc table ,help will be highly appreciated.

    Thanx


    Sent from my iPhone using Tapatalk



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Gcode Z-axis

Gcode Z-axis