Hello Guest it is February 14, 2026, 05:20:26 PM

Author Topic: M 31 stepper wiring  (Read 381 times)

0 Members and 1 Guest are viewing this topic.

M 31 stepper wiring
« on: February 11, 2026, 08:24:41 AM »
I have nema 23 stepper motors , had to cut off plugs from harness to connect to m 31 control . Wires, red green blue white ,  where do they mount on the m 31 ( s+ s- etc ) . Also need wire diagram to vfd Chinese , have contacted support but no reply yet .

   Thanks

    Ed
Re: M 31 stepper wiring
« Reply #1 on: February 11, 2026, 01:15:16 PM »
Hi Ed,

The wiring for the M31 will depend on your drives common.

If your drive common is 24v then you will need to wire to S- D-.

If your drive common is 0v then you will need to wire to S+ D+.

I believe most drives are typically NPN so the drive common would be 0v, but that is Not all drives.. I would highly recommends checking the manual on your Motor Drives to determine what your wiring needs to be.

thanks,

Paul
Thanks,

Paul

Offline Tweakie.CNC

*
  • *
  •  9,342 9,342
  • Super Kitty
Re: M 31 stepper wiring
« Reply #2 on: February 12, 2026, 02:27:30 AM »
Hi Ed,

The details for connection of the M31 to your motor drives are here:
https://support.machmotion.com/books/motion-controllers/page/m31-motion-control-setup-manual

If you are still using the Gecko G540 for your motor drives then you will also need a suitable cable etc. to connect the M31 screw terminals to the G540 parallel port DB25 connector.
The Gecko G540 manual is here;
https://www.geckodrive.com/wp-content/uploads/2023/04/G540-MANUAL-REV8.pdf

Hope this helps,

Tweakie.
PEACE
Re: M 31 stepper wiring
« Reply #3 on: February 12, 2026, 05:32:41 AM »
I am not using the G540 any longer. Are all 4 wires from the motor used , I do not know where each colored wire should go on the connector
 that is my problem , the manual does not state that ( blue to ? red to ? etc) Also vfd wiring .

   Ed
Re: M 31 stepper wiring
« Reply #4 on: February 12, 2026, 03:27:33 PM »
Hi Ed,

Wire colors are superficial and thus tend to mean nothing. There is somewhat of a standard, but those standards can change from person to person or company to company. This makes going off of wire color VERY unreliable.

What Drives do you have?

thanks,

Paul
« Last Edit: February 12, 2026, 03:33:12 PM by paul.stephens »
Thanks,

Paul

Offline Tweakie.CNC

*
  • *
  •  9,342 9,342
  • Super Kitty
Re: M 31 stepper wiring
« Reply #5 on: February 13, 2026, 12:54:33 AM »
Hi Ed,

Perhaps I am misunderstanding your comments but you cannot connect stepper motors directly to the M31.
The M31 is a ‘Motion Controller’ in exactly the same way that the Warp9, ESS is a ‘Motion Controller’ – they each require drivers (such as the G540) to operate the motors.

Tweakie.
PEACE
Re: M 31 stepper wiring
« Reply #6 on: February 13, 2026, 05:23:37 AM »
How would the g540 get connected to the M 31 , the g540 is a 4 axis , how would you be able utilize the other 2 axis on the  M31
Re: M 31 stepper wiring
« Reply #7 on: February 13, 2026, 08:49:40 AM »
Hi Ed,

For your G540, you will need to break out your DB25(Parallel port) and connect the following pin wires to the following connectors.

X Axis
DB25 Pin 2 → M31 MTR0 S+
DB25 Pin 3 → M31 MTR0 D+
Y Axis
DB25 Pin 4 → M31 MTR1 S+
DB25 Pin 5 → M31 MTR1 D+
Z Axis
DB25 Pin 6 → M31 MTR2 S+
DB25 Pin 7 → M31 MTR2 D+
A Axis
DB25 Pin 8 → M31 MTR3 S+
DB25 Pin 9 → M31 MTR3 D+

Below is your manual for reference:
https://www.geckodrive.com/wp-content/uploads/2023/04/G540-MANUAL-REV8.pdf

You can use a Ohm meter to test continuity on your pins if needed to find which wire is which pin.
Alternatively, they make DB25 Breakout Boards.

Thanks,

Paul

Thanks,

Paul
Re: M 31 stepper wiring
« Reply #8 on: February 13, 2026, 10:07:08 AM »
Thanks Paul , I'll give it a try


    Ed