And when motors move in negative axis then direction LED on pmdx-126 ON.
Good. And when the motors move in the positive direction do the direction LEDs (pins 3, 5, 7 and 9) go off?
And step LED also ON in both positive and negative axis.
Is this the "step" LED(s) on the PMDX-126 (i.e. LEDs for pins 2, 4, 6 and 8)? Or is this the "steps" LED on the PMDX-410 or the PMDX-126 that flickers when generating step pulses?
I would not expect you to be able to see any LED activity for the step pulses on the PMDX126's pin 2, 4, 6 and 8 LEDs. The step pulses are too narrow. At best, you might be able to see a dim glow on those LEDs when that motor is moving.
If you ARE talking about the PMDX-126 LEDs for pins 2, 4, 6 and 8, *AND* if they are one (bright) always, then something is wrong.
Now today I checked the only x-axis motor which was moving before, showing the same behaviour like others. and also the motors are not moving in pmdx "test mode"
Are your motors connected to the drive mechanisms on your machine (such as ball screws, pulleys, gears, etc.)? Or can the motors rotate without moving the machine?
Do you know if the slave motor on your X axis gantry needs to rotate in the same direction as the master? Or in the opposite direction?
If the motors are connected to the drive mechanisms then you will not be able to move just the X master motor (or slave motor) very far before the gantry jams.
You currently have the Motor0 and Motor3 (the X master and slave motors) set to turn in the same direction. If you need the X slave motor to turn in the opposite direction from the X master motor, then you need to do one of these two things:
(1) Change the wiring between the motor driver and the motor such that the slave motor turns in the opposite direction. You can simply swap the two wires from one of the phases.
(2) Or, change the direction polarity for Motor3 (the slave) motor. Go into the "Configure" menu and select "Mach...". Click on the "Motors" tab. Click on the "Motor3" text in the upper right corner. Then check the "Reverse?" box down at the bottom. Then click on "OK" to save the changes.
For test mode for the X axis master motor (pins 2 & 3), the PMDX-126 DIP switches should be:
Config6 closed
Config5 closed
Config4 closed
Config3 open
Config2 open
Config1 open
For the Y axis motor (pins 4 & 5):
Config6 closed
Config5 closed
Config4 open
Config3 open
Config2 open
Config1 open
For the Z axis motor (pins 6 & 7):
Config6 closed
Config5 open
Config4 closed
Config3 open
Config2 open
Config1 open
And for the X axis slave motor (pins 8 & 9):
Config6 closed
Config5 open
Config4 open
Config3 open
Config2 open
Config1 open
When trying to have Mach4 move the motors, make sure the DIP switches are like this:
Config6 closed (presuming you are not using any of the PMDX-126 aux features)
Config5 closed
Config4 closed
Config3 closed
Config2 closed
Config1 closed
Config3 to Config1 "closed" selects "Run in Normal Mode" (without charge pump), since it looks like your Mach4 config does not enable the charge pump output.
Bob