Help me wire CNC (stepper motor controller+driver)?

Hello I just bought some stuff to begin building my 3axis(at first) CNC milling machine.
I can'r figure out thw wiring/ connecting between the stepper driver and controller?
It's connected to the computer with a DB25 connector ("plug") and the terminals are named:
P1,P2,P3,P4,P5,....P15.

Is there a way to know what is what?
(please take a look at pictures)

BTW. it's for running/controlling 3pcs. Nema23 stepper motors and I got a bigger driver to run a Nema34 stepper (supposed to be the spindle)

hope you can help me, I'm in no rush, but it could be nice to see the motors running and such so I can make that work while I'm designing/redesigning/build the actual machine...

my controller.png
my driver.png
8 answers
sort by: active | newest | oldest
Feb 8, 2013. 7:14 PMiceng says:
IF you are writing the software then your software decides which output
is P1through P15 for motor direction phases and step clock times 3.

A
Feb 12, 2013. 12:52 PMiceng says:
You are writing the software to run three motors ?

It looks like each DQ542 drives a single motor and
requires an Enable, Direction and clock Pulse bit.

So, X-axis DQ545 you could use ;
  • P8=Enable
  • P7=Direction
  • P6=Pulse
Y-axis DQ545 you could use ;
  • P3=En
  • P2=Dir
  • P1=Clk
Z-axis DQ545 you could use ;
  • P11=En
  • P12=Dir
  • P13=Clk  or  P14=Clk  or  P4=Clk

I am surprised that the company that makes the electronics
you purchased does not also provide the software ?

A


Feb 15, 2013. 2:46 PMiceng says:
DIR is the nomenclature for the direction bit in software lingo.
CLK is for the clock is for PUL is for the pulse rate line ( wire ).

Stepper motors need to start with a slow pulse rate
and accelerate ( speed up ) to the desired travel velocity.
Then stepper motors need to decelerate ( slow down )
before stopping.

Simply starting a stepper motor at the full speed rate ( if it runs at all )
will make it slip intended steps making a CNC distortion of the target.

The software must anticipate the desired distance of each motor travel
in clock pulses and use a portion for speed up and a portion for slow
to a stop.

This requirement really gets involved when a simple 2D circle is
to be cut starting and stopping, now think 3D !!

Good Sadw writing luck.
Feb 12, 2013. 3:03 PMiceng says:
Several more items,

There must be a very good electrical ground wire connection
between the electronics.

The Nema23 ( a body size reference ) stepper motors come in
different torques, coil currents and voltages.

Your questions come off sounding like someone with no
machine language programming experience.

And I take back the z-axis because P10,P11,P12 & P15 are inputs
So z-axis can be P16=En, P9=Dir, P5=Clk and the Spindle=P17..

a

Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!