LinuxCNC · Mesa 7i76E
Mesa 7i76E from scratch: from the box to the first axis moving
The guide I wish I'd had for my first retrofit: what to connect, in what order, what to tick in PnCconf and what to check before anything moves. With real screenshots and the questions that come up most on the LinuxCNC forum.
Published on 26 November 2026. Revised on 29 November 2026.

I've fitted the Mesa 7i76E to three machines: my EMCO F1 mill, the EMCO Compact 5 lathe and the BF20L. The lathe used to run on an old PC with a parallel port, and moving to the Mesa was like getting a stone out of my shoe: no more jerks in the motors every time the computer did something in the background. The reason is simple. With the Mesa, the pulses that move the motors are generated by a chip on the card itself, with a precision the PC doesn't have, and the computer just tells it every millisecond how fast each axis should go.
If you're coming from the parallel port or a Chinese controller and your card has just arrived, this guide is for you. You don't need to be an electronics engineer. You do need to read calmly, measure before you plug anything in and not be in a hurry.
Before you start
What you'll need:
- The Mesa 7i76E card, or its successor, the 7i76EU.
- A PC with LinuxCNC installed and a free network port for the card. If you don't have it yet, in the first episode of LinuxCNC from scratch I explain the installation step by step.
- A 24 V DC power supply.
- An ordinary network cable.
- A multimeter. Really: don't plug anything in without measuring first.
If your card is a 7i76EU: Mesa no longer makes the 7i76E and sells the 7i76EU as its replacement. The method in this guide still applies, but there are differences that matter right when you wire it. Keep them in front of you and always check its manual:
| 7i76E | 7i76EU | |
|---|---|---|
| Field voltage | Up to 32 V | Up to 28 V according to its manual: 24 V is fine |
| Alternative 5 V input | P3 connector | P5 connector |
| IP address jumpers | W2 and W3 | Different names and location |
| Current per output | 350 mA | 500 mA |
| Diode on large coils | Yes, above about 60 mA | Not needed |
| Leadscrew | Enable and direction | Enable and direction, or forward and reverse |
Also use a recent version of LinuxCNC, because older ones don't recognise it.
Step 1. Power: where most cards die
The 7i76E has two power inputs you care about now:
- The logic, the brain of the card. The simplest way is to take the 24 V to terminal block TB3: positive to pins 21 and 22, negative to pins 23 and 24. The card makes its own 5 V. The other option is to feed exactly 5 V into connector P3, but one voltage mistake there kills it instantly, so I don't recommend it to start with.
- The field side, which powers the inputs and outputs. It goes to terminal block TB1: +24 V to pins 1 to 4 and 0 V to pin 8. With jumper W1 in its factory position (to the left, looking at the board with the network connector on the left) you need nothing else.
The Mesa manual allows a single 24 V supply for everything if you don't need to isolate the logic from the field side, and to start with it's the easiest. On machines with a lot of electrical noise (big VFDs, brakes, plasma) it's better to use two supplies and keep the isolation.
The golden rule: nothing between the power supply and the card
The manual says it, and Peter Wallace of Mesa says it again and again on the LinuxCNC forum: the 24 V field supply goes straight from the power supply to the card. No switch, no relay, no contactor and no E-stop in between. A fuse at most.
The reason is physical. The manual requires the voltage to rise slowly, at less than 10 volts per millisecond. A mechanical contact slams it on with bounce, and those spikes damage the chips that drive the outputs. It's the number one cause of the burnt or permanently-on outputs you see on the forum. Don't plug or unplug the terminal block with the supply on either, for the same reason.
If you want to switch the machine on and off with a switch (the normal thing), put it on the 230 V input of the power supply, never on the 24 V output. That way the voltage rises and falls as smoothly as the supply allows.
Two more rules that are not negotiable:
- Never go above 32 V or reverse the polarity on the field side. The card has a protection diode that, if you give it too much or wire it backwards, sacrifices itself and ends up as a short circuit. Use a good-quality 24 V supply, and measure first.
- A diode on big coils. The outputs protect themselves with small relays, but above about 60 mA (a big relay, a solenoid valve, a brake) you need a diode in antiparallel with the coil. Each output can handle up to 350 mA.
Switch on. The two yellow power LEDs (CR8 and CR13) must stay lit, and the two that signal a problem with the chip (CR1 and CR2) must stay off.
Step 2. The card's network address
The card's IP address is chosen with jumpers W2 and W3:
| W2 | W3 | Address |
|---|---|---|
| Down | Down | 192.168.1.121 (factory default) |
| Down | Up | 10.10.10.10 (the one stored on the card) |
I recommend 10.10.10.10: W2 down and W3 up. Almost all routers use addresses like 192.168.1.x, so this way the card won't clash with anything on your network. After moving the jumpers, power-cycle the card, because it only reads them at start-up.
Step 3. Connect and test the network
Connect the card to the PC with a direct cable, no switch. That network port is for the Mesa only. If the machine PC needs internet or a shared folder (I load my programs over the network), give it that some other way: Wi-Fi or a second network card.
Now give the PC a fixed address in the same range, for example 10.10.10.1. On Debian 12 the easiest way is the desktop network manager: edit the connection for that port, under "IPv4" choose the "Manual" method, address 10.10.10.1, netmask 255.255.255.0, and leave the gateway empty.
If you prefer the terminal, first check what your network port is called with ip link and create the connection with these two commands (replace enp1s0 with your port name):
sudo nmcli con up mesa
And now, three tests, in this order:
- Can I see the card?
ping -c 4 10.10.10.10. All four replies must come back. - Is the connection stable?
sudo chrt 99 ping -i .001 -q 10.10.10.10sends a thousand packets per second at real-time priority. Leave it for a couple of minutes and stop it with Ctrl+C. The summary must show 0 % packet loss. - What's inside the card?
mesaflash --device 7i76e --addr 10.10.10.10 --readhmidreturns its "ID card": how many step generators, encoders and ports it has loaded. If it shows up, the network is ready. There's no need to touch the firmware: the card ships with everything you need.
Step 4. Configure the machine with PnCconf
PnCconf is the LinuxCNC wizard for Mesa cards. It asks you questions and writes the configuration files from your answers. You'll find it in the applications menu, under CNC, or by typing pncconf in a terminal.
The screenshots are real: I took them while configuring a 7i76E with PnCconf 2.9.10. They're in Spanish because that's how my system is set up; the button names I quote here are the ones you'll see in English.
Start: tick "Show Advanced Option Pages"
On the first page choose Create a new configuration. And here's the first trick, which I haven't seen explained anywhere: tick "Show Advanced Option Pages". Without that box, PnCconf won't let you configure the 7i76E inputs and outputs (you'll see why further down). The two desktop shortcut boxes are optional.
Base information

- Machine Name: whatever you like, without spaces. It will be the name of the folder inside
~/linuxcnc/configs/. - Axis configuration: XYZ for a mill, XZ for a lathe.
- Machine units: mm. Don't miss it.
- Servo period: leave it at 1000000 ns, which is one millisecond.
- Mesa0 card: ticked.
Display
Keep AXIS, the classic LinuxCNC screen. It's the best one to start with: simple and with everything in view. You can change it later (I use Probe Basic). Skip the next page, the one for virtual panels.
The Mesa card
This is the important page. Under Board name choose 7i76e-Internal Data:

The default firmware is fine. Change the Card address to 10.10.10.10, leave the rest as it is and click Accept Components Changes. New tabs will appear at the top:

Assign the axes (TB2/TB3 tab)
This is where you say which motor goes on each of the five step outputs. Open output 0 and choose Axis → Main Axis → X Axis StepGen:

Do the same with output 1 for the Y axis and output 2 for Z:

In terms of wiring, that means the X driver goes to pins 1 to 6 of TB2, Y to pins 7 to 12 and Z to pins 13 to 18.
Enable the inputs and outputs: the trick nobody mentions
At the very bottom of that same tab there's a row showing 7i76 Mode 0 I/O Card. That's the part of the 7i76E that handles the 48 inputs and outputs. Open it, pick Mode 2 first and then go back to Mode 0. It looks silly, but it's what finally makes PnCconf show the 7I76 I/O (SS# 0) tab:

That drop-down can only be changed if you ticked the advanced options at the start. I found this by reading the PnCconf source code, because in version 2.9.10 the tab wouldn't appear any other way. If it happens to you, go back to the start, tick the box and come back.
Inputs: E-stop and limit switches
Go into the 7I76 I/O tab and, inside it, the TB6 sub-tab. On the left you have inputs 00 to 15; on the right, the outputs. For the E-stop, on input 00 choose External Control → E-STOP:

For the limit switches, if you use a single switch per axis that also acts as home (the most common setup to start with), choose Limits/Home Shared → Main Axis → X Minimum Limit + Home, and the same for Y and Z. You'll end up with this:

Now the Inv checkbox, which confuses everyone:
- E-stop button: if you wire it normally closed (the right way), don't tick Inv. PnCconf expects that input to be active when everything is fine, and that's exactly what a closed E-stop gives.
- Limit switches: if they are normally closed (recommended), do tick Inv. For LinuxCNC an "active" limit means "I've hit the end", and a closed contact gives voltage precisely when you haven't.
Why normally closed? Because if a wire breaks or a terminal comes loose, the machine detects it as a fault. With normally open contacts, a broken wire goes unnoticed until the day the limit switch fails to stop the axis.
Spindle with a VFD (TB4 sub-tab)
If your spindle is driven by a VFD with a 0 to 10 V input, in the 7i76-Analog Output TB4 sub-tab choose Spindle Output.
The motors
Now PnCconf takes you through one page for each motor and another for each axis. The motor page looks like this:

- PID Info: don't touch anything. The default values (P = 1000 and FF1 = 1) are the right ones to start with.
- Pulse timings (Step On-Time, Step Space, Direction Hold and Direction Setup): the defaults, 5000, 5000, 10000 and 10000 nanoseconds, are generous and work for almost any stepper driver. Leave them like that for the first test.
- Stepper Scale: it shows up in red until you calculate it. Click Calculate Scale.
The calculator is very handy. Tick the boxes that apply to you and fill in the data:

In the example, a 200-step-per-revolution motor, the driver at 8 microsteps and a 5 mm pitch ballscrew give 320 steps per millimetre. Below it also shows the pulse frequency at top speed (8 kHz) and the motor speed (300 rpm). If the motor is belt-driven, also tick "Pulley teeth".
Don't click "Test / Tune Axis" if the motors are connected and you are not standing at the machine: that button really moves it.
On each axis page you set the travel (for example, from 0 to 200 mm) and how it homes: which way it searches and how fast. The defaults are fine for the first test.
The spindle

An important detail: untick "Use +- voltage for direction". It comes ticked, but the 7i76E output is 0 to 10 V, with no negatives, and the direction of rotation has its own signal. Also enter your spindle's maximum speed, the one that corresponds to 10 V on your VFD. And don't click "Open Loop Test", which would spin the spindle.
Done
Skip the remaining pages (options and real time). On the last one click Done, and PnCconf will write your configuration to ~/linuxcnc/configs/ under the name you gave it.
If you ever need to change something, open PnCconf again and choose "Modify a configuration already created with this program". But careful: if you've edited the files by hand, PnCconf wipes your changes when it regenerates them. So when you start adding things of your own, put them in the custom.hal file, which PnCconf doesn't touch.
Step 5. Wire a driver and a limit switch
With the configuration done, connect a single axis for the first test.
The motor driver. The 7i76E step and direction outputs are differential: each signal travels on two wires and the driver looks at the difference between them, so noise, which hits both wires equally, cancels out. If your driver has PUL+ and PUL−, DIR+ and DIR− inputs, wire it like this, ideally with twisted-pair cable:
| 7i76E (TB2, X axis) | Driver |
|---|---|
| Pin 3, STEP+ | PUL+ |
| Pin 2, STEP− | PUL− |
| Pin 5, DIR+ | DIR+ |
| Pin 4, DIR− | DIR− |
If your driver only accepts a single-ended signal, connect one wire of each pair and leave the other free. Truly free, never to ground: it's an active output and you would short it. And make sure the cable shield or the chassis can't touch those wires, because that's a common way to burn the step outputs.
A limit switch. With a three-wire PNP inductive sensor: brown to +24 V, blue to 0 V and black to the 7i76E input. With a normally closed mechanical microswitch: one side to +24 V and the other to the input. The inputs are activated by positive voltage: with a 24 V supply, above about 14.4 V they count as active and below about 9.6 V as inactive. That band in the middle is what makes them so immune to noise.
Step 6. The first test
- With no power to the motors, start LinuxCNC with your configuration. There should be no communication errors.
- Test the inputs. In AXIS, under Machine → Show HAL Configuration, look for the card's inputs (
hm2_7i76e.0.7i76.0.0.input-00and onwards). Trip each limit switch and the E-stop and check that they change. The E-stop must also put the machine into emergency stop. - Power up a single motor, with the carriage in the middle and well away from the end stops. Release the E-stop (F1), switch the machine on (F2) and jog the axis 1 mm. Measure it with a dial indicator or a caliper.
- If it goes the wrong way, change the sign of
STEP_SCALEin the.inifile (from 320 to −320). Don't touch the wiring. - If it doesn't move, check the driver wiring and its enable signal. If the driver is picky, lengthen the pulse timings.
- Once one axis works, connect the next. Leave homing and the spindle until last, always with your hand near the E-stop.
Frequently asked questions
These are the questions and faults that come up most on the LinuxCNC forum with the 7i76E, with what Mesa says and what I've learnt in the workshop.
Can I put a switch or the E-stop on the card's 24 V supply?
No. It's the most repeated fault on the forum. Switching the field DC, or plugging in the terminal block live, creates spikes that destroy the output chips. The switch goes on the 230 V input of the power supply. The E-stop cuts power to the motors and the VFD, not the card's supply.
An output stays on all the time, even with LinuxCNC closed
Almost certainly the chip for that output is damaged. According to Mesa, there are three typical causes: switching the field supply on the DC side, driving a big coil without a diode, or applying too much voltage. Those chips can be replaced, and Mesa repairs them.
LinuxCNC won't start and says pin output-00 (or another 7i76 pin) does not exist
The card can't see the field supply. Without 24 V on TB1, the input/output section doesn't start and LinuxCNC can't find it. Check that the yellow LED CR8 is lit and measure the 24 V between pin 1 and pin 8 of TB1.
The card doesn't answer the ping
Check, in this order: jumpers W2 and W3, that you power-cycled the card after moving them, that the PC has the fixed address 10.10.10.1 on the right port, and that you're using a direct cable, no switch.
LinuxCNC stops with "hm2: error finishing read"
The card isn't getting the PC's commands in time. The usual causes are BIOS power saving, the network card grouping packets to save work (very common with Intel cards; ethtool -c tells you if yours does) and electrical noise near the network cable. With LinuxCNC running, halcmd show param *.tmax shows how long each read takes and helps you see whether the PC is the problem.
The spindle output is always 0 V
The 7i76E doesn't generate the 10 V: it works like a digital potentiometer and needs the VFD to give it its reference voltage, usually 10 V, between pin 3 (positive) and pin 1 (negative) of TB4. Without that voltage, the output is always 0. To test it without a VFD, apply 10 V from a supply to those two pins, start LinuxCNC, switch on the spindle and measure between pin 2 and pin 1.
The spindle runs forwards but not in reverse
If you have the signed-voltage option ticked, the command is negative in reverse and the output stays at 0 V. Untick it. If your VFD uses two inputs, "forward" and "reverse", instead of "run" and "direction", the 7i76E needs a relay to split the signal (the 7i76EU does it by itself).
The spindle speed wanders or won't go down to zero
It's usually VFD noise getting into the command cable. Keep that cable away from the power cables, use shielded cable and, if needed, a line filter on the VFD and ferrites on the motor cable.
A limit switch trips without being touched, or the machine won't come out of E-stop
It's the "Inv" box. With normally closed limit switches you must tick it; with a normally closed E-stop, you mustn't. Check it under Machine → Show HAL Configuration while you trip each one.
Inputs that trigger on their own
Noise from some coil: brakes, relays, contactors. On my EMCO F1, the motor brake was putting noise into the inputs, and I fixed it with a 100 nF ceramic capacitor right next to the brake, with no software filtering. Noise is best stopped where it starts.
My step and direction outputs have burnt out
Mesa nearly always points to the same thing: those wires accidentally touching the cable shield or the chassis, or poor grounding. Check that the driver housings and the negative of the card's 24 V supply go to the cabinet's earth.
Do I need to update the firmware?
To start with, no. The card ships with firmware that includes the five step generators, the encoder and the inputs and outputs. You only need to change it if you plug expansion cards into connectors P1 or P2.
Does this guide work with the 7i76EU?
The method, yes, but not to the letter: the maximum field voltage, the 5 V connector, the jumpers, the outputs and the spindle all change. You have the differences in the table at the start, and when in doubt, its manual rules.
What now?
With the axes moving and the E-stop working, you now have a CNC machine running LinuxCNC. From here on, every improvement is a small step: tuning speeds and accelerations, precise homing, the spindle and the probe.
There's also the LinuxCNC from scratch series, where I go step by step, my video setting up the Mesa 7i76E and the page for my EMCO F1 CNC, where you can see all of this applied to a real machine. The same card also drives my BF20L converted to CNC and the EMCO Compact 5 lathe I'm rebuilding.
Part two is now out: The 7i76E in depth, with step timing, scales, PID, DPLL and my F1's spindle servo, number by number.
Sources
Official documentation
- Mesa Electronics: 7i76E manual (PDF)
- Mesa Electronics: the 7i76EU in their shop
- LinuxCNC: the HostMot2 driver for Mesa cards
LinuxCNC forum
- Outputs burnt by switching the supply on the DC side
- Components burnt by a relay in the field supply
- Causes of output damage: switching, coils without diodes and overvoltage
- Protection diode shorted by overvoltage or reversed polarity
- Inputs and outputs disappear without field power
- Spindle output at 0 V without a reference voltage
- No spindle command in reverse
- VFD noise on the spindle speed command
- Diagnosing "error finishing read"
- Burnt step outputs and grounding