CNCRouterParts
Search:
What's New: RSS FeedFind us on FacebookYouTube
Shopping Cart:
0 items
PRO CNC

Standard CNC

Benchtop CNC

Electronics

Tooling

Other Products

Plans & Info

Tell A Friend
Tell someone you know about this product.
Plans & Info » Instructions & Configuration » G540 Nema 23 Wiring Instructions
G540 Nema 23 Wiring Instructions
G540 Nema 23 Wiring Instructions
While the G540 makes hooking up motors and getting them working a breeze, it can still be a bit daunting for those new to electronics and CNC. We created this handy step by step guide to help get you going with our products. Read on to see how it's done using our components.

The first step is to insure you have all of the parts needed -- these are shown below. You'll need an AC power cable, a DC power supply, some 18 AWG or larger wire to connect the power supply, a motor, a motor cable, a parallel port cable, and of course a G540. Note, this guide shows a 7.3A power supply for a 3 axis system, but the process is the same for the 4 axis system, you'll just be using the larger 12.5A supply. It's also recommended to have an emergency stop, but if you don't have one, you can jumper this out initially while you're testing motors off of your machine. We'll show you how to hook the system up both jumpered and with an e-stop.

Next you will want to make sure you have a few tools handy -- a Philips head screwdriver for the power supply, a small Philips for the G540 connections, and a set of wire strippers will be needed. For a professional install, ferrules and crimps can be used on your wire ends, but this isn't strictly necessary.

Start by cutting the female end off of an AC power cord. Almost any cord will suffice, as the G540 does not draw excessive amounts of current. Do not plug the cable into the wall.

Strip the ends off of the wires, and crimp on ring or spade terminals if desired.

Next, locate the AC input terminals on the power supply.

Install the wires per the colors below. Green is ground, black is hot (or "line") and white is neutral.

Next up, you'll need to connect DC power to the G540 using your 18 AWG or larger cable. Keep these as short as feasible (less than 12" if possible), as the G540 can be finicky about inductance if they get too long. We suggest red for the 48V+ and black for common (48V-). Crimp on spade and ferrules are shown, but are not required.

Connect these wires to the V+ and V- terminals on the power supply as shown.

Connect the other end of the wires to the power terminals on the G540, pin 11 for 48V+, and pin 12 for common.

Next up, you'll need to either install an emergency stop, or a jumper for the emergency stop if you don't have one. Either way basically shares the same terminal 12 with the black wire for common, and runs over to terminal 10. An emergency stop is recommended, but we'll show both methods. The jumper method:

Or the emergency stop method (again between terminals 10 and 12):

Your setup should now look (roughly) like this:

All that's left is to plug in the motors and a parallel port cable and you're ready to go! If you're using one of our parallel port cables, you'll be in good shape. Make sure any DB25 cable you use is fully populated -- many cheap printer cables do not have all of the pins going through, and is often missing conductors that are assigned to step and direction signals on the G540.

Plug into Mach3 or EMC2 and start CNCing, and revel in your new electronics know-how :)

We hope you found this guide helpful and informative. Now the mandatory disclaimer: Working with electricity can expose you to dangerous or lethal AC currents. While this guide contains helpful information, you are responsible for keeping yourself safe. If you are at all unsure about completing any aspect of your electrical wiring, hire a licensed electrician or qualified electrical contractor to do the work for you. Users of this content agree that use of this guide and all products or content contained herein are at your own risk, and there is no warranty expressly made or implied herein.



Nema 23 Proximity Wiring

While it's not necessary to get your machine moving, the G540 does support limit and home switches. For limit switches, you will need your 5 cables, an AC adapter, and some sort of terminal blocks to connect up to the G540.



To begin with, you will need to cut the ends off of your 12V AC adapter, and strip the individual wires back. Check with a multimeter to see which wire is V+ and which is common. Typically, 12V is on a red wire, while common is black. Connect each of these wires to individual terminal blocks, where you will be attaching power and common from the sensor cables.



Next, you will need to do the following:
  1. Wire all of the blue wires (12V Common) from the sensors into the same terminal block as the common from your AC adapter (black in this example). Note, for this terminal block, we have jumpered together the 3 sets of terminals so all wires coming into the block are connected.
  2. Run an additional wire from this terminal block to the V- on the 48V supply powering the G540 so that these supplies have the same ground reference (shown below coming out of the upper right corner of the terminal block with the blue wires).
  3. Wire all of the brown wires (12V) from the sensors into the same terminal block as the 12V from your AC adapter (red in this example). Note, for this terminal block, we have jumpered together the 3 sets of terminals so all wires coming into the block are connected.
  4. Pair up the black wires (Signal) for the X+/X- and Y+/Y- sensors, while running A separately into the first 3 inputs of G540. In the picture below, these wires are shown going into an intermediate terminal block and then on to the G540, which makes wiring a bit easier. Note also that in this terminal block, we have not jumpered together the 3 terminal sets, so the 3 wires going out to the right are all discrete signals.




From here, you can plug your sensors in and follow the instructions for Mach setup from the Nema 34 instructions. When assigning signals in Mach, assuming you have the X sensors in the first pin of the G540, the Y sensors in the second, and the A sensor in the 3rd, use the following pin numbers:

X+/X-/X Home = Pin 10

Y+/Y-/Y Home = Pin 11

A Home = Pin 12

Pin 13, the remaining input pin, can be used for a z touch plate or other application as needed later on.