If you hear 1 click each time you jog one direction, and nothing when you jog the other direction, that usually means that you have the step and direction signals swapped (i.e. the step output from Mach3 is going to the "DIR" input on the motor driver). Try swapping the step & dir pins in Mach3 and see if that changes anything.
*** I get clicks in both directions when jogging in Mach3 with all axis***
If that doesn't fix things, lets go back to basics and go through things one step at a time. Some of this will be verifying things that you have already done. So please be patient and humor with me.
I recommend connecting the ES-DH1208's PUL- and DIR- to the PMDX-126's "PCgnd" terminals on J1, J2, J3 and J4. The connect the PUL+ and DIR+ to the step and dir terminals on the PMDX-126. For example, PUL+ to "Pin2" on J4, and DIR+ to "Pin3" on J4. Or you could have PUL+ to "Pin3" and DIR+ to "Pin2". It doesn't matter as long as you know which is which, and are consistent on all 4 motors (i.e. PUL+ to even pins and DIR+ to odd pins, or PUL+ to odd pins and DIR+ to even pins). This configuration corresponds to the "PNP (sinking)" configuration in the ES-DH1208 manual. It also allows you to set the "step polarity" in Mach3 to active high (i.e. a red "X" in the "Step Low Active" column).
***everything is now sinking***
Leave the ENA+ and ENA- terminals unconnected to enable the driver.
***never hooked these up***
Let me know exactly how you have the PMDX-126 wired to the ES-DH1208 for the "X" axis (we will concentrate on that for now).
For the following examples, I will presume that you have the "X" axis driver's PUL+ connected to the "Pin2" terminal on J4, and DIR+ to the "Pin3" terminal.
***correct***
For the PMDX-126's self-test mode, the DIP switches should be set as follows:
Config7: open or closed, your choice (for now, I suggest "closed" for "push and hold to run" mode)
Config6: Closed (switch towards the "Config6" silkscreen)
Config5: Closed (switch towards the "Config5" silkscreen)
Config4: Closed (switch towards the "Config4" silkscreen)
Config3: Open (switch away from the "Config3" silkscreen)
Config2: Open (switch away from the "Config2" silkscreen)
Config1: Open (switch away from the "Config1" silkscreen - sets STEP (i.e. PUL+) on "Pin2" and DIR on "Pin3",
change this to "Closed" if you have PUL+ connected to "Pin3
***DIPs all switched over***
Press the PMDX-126's "Test" button one time and release to enter test mode. When you release the "Test" button, the "Status" LED should turn off. If it remains on, or if it flashes, there is a fault.
***Status light off and no flashing***
Now each time you press the "Test" button, the LED next to "Pin3" should toggle on and off (i.e. press the button and the LED turns on, press the button again and the LED turns off). Do you see that?
***I do***
If you press and hold the "Test" button. After couple of seconds you should see a dim glow on the "Pin2" LED. Do you see that?
***I do***
Do you now get motion from the motor when pressing and holding the "Test" button?
***no***
You should hear 5 clicks about 1/2 second apart and then the motor should ramp up to whatever speed corresponds to 1000 steps/second. Release the "Test" button and the motor should ramp down to a stop.
***I get 5 clicks then a very disturbing buzzing sound, then when the test button is release there is a very light buzz. Almost like the a small motor is "rewinding", it might be my imagination but it appears to come from the encoder.***
Do you hear the 5 clicks at the start of the motion? If you hold the motor shaft, or place your finger against it, you may be able to feel the steps. But this depends on the "Pulses/Revolution" setting in the ES-DH1208. The default is 4000 steps/rev, which is equivalent to 20 step microstepping. You may or may not be able to feel that small of a motion.
***I hear the clicks and I marked the shaft relative to the body of the motor to detect movement and there is none.***
Does the motor ramp up in speed?
***just the buzzing after the 5 clicks***
If you hear and/or feel the 5 clicks but then the motor doesn't ramp up in speed, or if it starts to ramp up and then stalls (while making a whining or buzzing sound), that could mean that the motor stalled (or "cogged"). That *should* cause the ES-DH1208 to enter a fault state and display an error code and/or flash an LED.
***this is what I was thinking, but the drive does not have any error codes displayed***
If this works and the motor moves, then go verify that Mach3 has the "X" axis step and direction pins assigned to the pin numbers that match your actual wiring.
If this doesn't work, let me know the values of the following ES-DH1208 registers:
PA_07, 08, 09, 15, 17 and 18.
PA_07 = 1600
PA_08 = 4000
PA_09 = 5000
PA_15 = 1
PA_17 = 0
PA_18 = 0
I read in the driver manual that encoder resolution could be the issue to I took PA_08 to 1000 and there was still no change.
If I turn PA_28 from a 0 to a 1, the motor does 1 revolution CW and CCW.
My gut says it has to be the drive but I am at a bit of a loss.