584,812 active members*
5,484 visitors online*
Register for free
Login
IndustryArena Forum > OpenSource CNC Design Center > Arduino > Universal gcode sender does not behave as expected on my machine
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2017
    Posts
    73

    Universal gcode sender does not behave as expected on my machine

    I have build a cnc machine and I'm controlling it using the Arduino uno and universal gcode sender. At least, I'm trying to control it. I'm trying to figure out how to set steps per mm and UGCS is not behaving like expected. I use standard 200 step/ revolution stepper motors and 1605 ball screws. My controllers are set for whole steps (no microstepping.) My screws have a 5mm pitch, so each full rotation advances the nuts 5mm. so 200 steps/ 5mm. For 1 mm, that would be 200/5=40 steps. When I input this on UGCS using the command "$100=40" (for x), all it seems to do is increase and decrease speed of the motors (with increasing or decreasing values). When I want to jog the x-axis by 1mm, it's closer to 200mm. Am I using the wrong calculations?

  2. #2
    Join Date
    Mar 2015
    Posts
    409

    Re: Universal gcode sender does not behave as expected on my machine

    Your setting seems OK.


    • Check the step size in the USG program, maybe it is not set to jog 1 mm
    • Check if the position as shown in the USG program changes 1 mm when you jog 1 mm.
    • Execute the next line in the UGS command window, your machine should jog Axis X, 1 mm at 10 mm/min
      G21G91X1F10


    Please report the results

  3. #3
    Join Date
    Nov 2017
    Posts
    73

    Re: Universal gcode sender does not behave as expected on my machine

    Thanks for your input. I've been a bit busy but I'll give it a try and report back.

  4. #4
    Join Date
    Nov 2017
    Posts
    73

    Re: Universal gcode sender does not behave as expected on my machine

    I think I've fixed it. Don't know what I did wrong but it works now. I had to set the steps per mm to 80 though, which would mean that my steppers are set for 1/2 microstepping (they aren't)
    I ran a test gcode file and the machine runs it just fine, The code is unmodified and probably meant for smaller machines(?) so it starts making quite the racket when the machine starts audibly going step by step at the end of some curve. Fun times. Time to get some actual work done on there.

    One more question: when I input a soft zero for the machine, should I use the maximum minus (-) travel or the maximum plus travel?

  5. #5
    Join Date
    Mar 2015
    Posts
    409

    Re: Universal gcode sender does not behave as expected on my machine

    Great to hear things are working!

    One more question: when I input a soft zero for the machine, should I use the maximum minus (-) travel or the maximum plus travel?
    I guess you mean soft limits. This value is the maximum travel from the reference point. It is a positive value. Look at this page for some explanation.
    https://github.com/gnea/grbl/wiki/Grbl-v1.1-Configuration#20---soft-limits-boolean

Similar Threads

  1. Replies: 0
    Last Post: 04-20-2017, 07:18 PM
  2. Arduino Uno + CNC Shield + Nema 17 Stepper + Universal GCode Sender
    By Arduino_Uno_Dyl in forum Open Source Controller Boards
    Replies: 2
    Last Post: 03-02-2016, 04:11 PM
  3. Help with Universal Gcode Sender
    By rfresh737 in forum Laser Engraving / Cutting Machine General Topics
    Replies: 0
    Last Post: 01-27-2016, 12:17 AM
  4. Universal Gcode Sender Z Axis Help
    By rfresh737 in forum Arduino
    Replies: 0
    Last Post: 01-26-2016, 06:46 PM
  5. Universal Gcode Sender Z Axis
    By rfresh737 in forum Laser Engraving / Cutting Machine General Topics
    Replies: 0
    Last Post: 01-26-2016, 05:10 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
  •