600,887 active members*
2,914 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2023
    Posts
    0

    UGS/GRBL Jogging Problem

    Hello. I need help understanding how the “jog controller” in the Universal G-coder Sender works.
    First of all, this is my first time here and if I'm posting this in the wrong place, please let me know and I'll go to a different forum. Here is what I have: 1.8 degree Nema 23 stepper motor with Rated Current/phase of 2.8A, DM542T driver, Arduino uno, GRBL 1.1, UGS 2.1.9 So, I’m focusing on my Z axis. Don’t have it connected to the machine yet-just trying to test if I have it wired correctly. I will be using a 1204 ball screw on my Z axis-so, that’s supposed to travel 4 mm / revolution. I have the driver set for single stepping (dip switches 5,6,7,8 are all on).
    200 steps / revolution. Should translate to 50 steps / mm. I have the $102 variable set to 50. I have the UGS jog controller Z step size set to 4 mm. I expect when I press the Z jog button the Z stepper motor should turn 1 revolution. But it does not. It only turns a little more than 3/4 of a revolution. What am I doing wrong?

  2. #2

    Re: UGS/GRBL Jogging Problem

    Quote Originally Posted by steveries View Post
    Hello. I need help understanding how the “jog controller” in the Universal G-coder Sender works.
    First of all, this is my first time here and if I'm posting this in the wrong place, please let me know and I'll go to a different forum. Here is what I have: 1.8 degree Nema 23 stepper motor with Rated Current/phase of 2.8A, DM542T driver, Arduino uno, GRBL 1.1, UGS 2.1.9 So, I’m focusing on my Z axis. Don’t have it connected to the machine yet-just trying to test if I have it wired correctly. I will be using a 1204 ball screw on my Z axis-so, that’s supposed to travel 4 mm / revolution. I have the driver set for single stepping (dip switches 5,6,7,8 are all on).
    200 steps / revolution. Should translate to 50 steps / mm. I have the $102 variable set to 50. I have the UGS jog controller Z step size set to 4 mm. I expect when I press the Z jog button the Z stepper motor should turn 1 revolution. But it does not. It only turns a little more than 3/4 of a revolution. What am I doing wrong?
    You mentioned you have the DM542T set for single stepping,
    but depending on your driver and motor combination,
    microstepping settings could cause unexpected behavior.
    Double-check the dip switches on the DM542T to confirm
    you’re indeed running single-step mode and not inadvertently using microstepping.
    http://cncmakers.com/cnc/controllers/CNC_Controller_System/CNC_Retrofit_Package.html

  3. #3
    Join Date
    Jan 2023
    Posts
    0

    Re: UGS/GRBL Jogging Problem

    Thanks for you advice. I double checked the dip switches for single stepping and switches 5, 6, 7 and 8 are all set to "ON" which is what the microstepping table on the driver indicates they should be.
    I have determined that my problem is related to my enable/disable wiring. When I remove all ena+/ena- connections, the stepper motor functions as I would expect it to - when I ask it to job 4mm, the motor makes 1 revolution (1204 ballscrew, $102=50, single stepping). I have wired the ena+/ena- as per info I have found on the web, but, I have also found what seems to be conflicting information when it comes to wiring enable/disable.
    What I had wired was: dm542t ena+ ----> arduino/grbl ena (pin 8), dm542t ena- ----> arduino/grbl gnd. I found this on several places on the web, but it does not seem to work for me. I have also found this setup: dm542t ena+ ---> arduino/grbl 5v, dm542t ena- ----> arduino/grbl ena (pin 8). I have not tried this second set up as of yet. Still confused about the whole enable/disable thing.

  4. #4
    Join Date
    Mar 2015
    Posts
    441

    Re: UGS/GRBL Jogging Problem

    Quote Originally Posted by steveries View Post
    I have also found this setup: dm542t ena+ ---> arduino/grbl 5v, dm542t ena- ----> arduino/grbl ena (pin 8). I have not tried this second set up as of yet. Still confused about the whole enable/disable thing.
    This setting should work on an arduino UNO that has default settings.

    If you don't connect the enable signals, this driver (and most other drivers) will be enabled all the time. That can solve a lot of enable timing problems.

    For your current setting to work, you have to invert the enable pin ($4=1).

    You have setup the enable signals correctly, if you can turn the motor by hand when no axis is running.

    Some closed loop (servo) drivers require a long (0.1 sec) time between the activation of the enable pin and the first step pulse.

  5. #5
    Join Date
    Jan 2023
    Posts
    0

    Re: UGS/GRBL Jogging Problem

    Thanks for you help, but, I can't seem to get the enable/disable working, so, I'm just going to not connect it. All 3 of my steppers seem to work ok without it. Maybe sometime in the future, I'll try again, but for now, I can't spend any more time on it.

Posting Permissions

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