Mesa 7i76EU - how to enable mode 2?
- Christian
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
14 Feb 2026 09:37 #342929
by Christian
Mesa 7i76EU - how to enable mode 2? was created by Christian
Hello everyone,I’m looking for some help with my MESA 7i76EU configuration.I would like to use Mode 2. According to the manual, in this mode inputs 16–19 can be used for the encoder signals of an MPG handwheel, and inputs 00–03 are converted into analog inputs. I would like to connect potentiometers to these analog inputs to override the feed rate and spindle speed.At the same time, I would like to use the encoder interface of the MESA with an ABZ encoder to monitor the spindle speed. As far as I understand, the 7i76EU is designed for exactly this purpose.My question:
How do I switch the MESA to Mode 2?So far I have tried setting the parameterin the .hal file.
I also tried flashing a new bitfile that should change the mode, but that didn’t work either.Maybe it’s much simpler and the MESA detects analog signals automatically?
Or does the mode have to be changed via jumpers?At the moment I’m a bit stuck with my research (manual, internet, and AI didn’t get me any further), so I would really appreciate any advice or hints.Thanks a lot!
How do I switch the MESA to Mode 2?So far I have tried setting the parameter
sserial_port_0=20000000I also tried flashing a new bitfile that should change the mode, but that didn’t work either.Maybe it’s much simpler and the MESA detects analog signals automatically?
Or does the mode have to be changed via jumpers?At the moment I’m a bit stuck with my research (manual, internet, and AI didn’t get me any further), so I would really appreciate any advice or hints.Thanks a lot!
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17753
- Thank you received: 5190
14 Feb 2026 20:07 #342960
by PCW
Replied by PCW on topic Mesa 7i76EU - how to enable mode 2?
sserial_port_0=20000000
In the driver config string will set the mode to 2 which will enable both
the MPG encoder inputs and analog inputs.
Note that the encoder inputs are intended for MPG use and
1. Are fairly slow
2. Do not support index
You would normally use the 7I76EU high speed encoder input for the
spindle (TB3 pins 7..15)
In the driver config string will set the mode to 2 which will enable both
the MPG encoder inputs and analog inputs.
Note that the encoder inputs are intended for MPG use and
1. Are fairly slow
2. Do not support index
You would normally use the 7I76EU high speed encoder input for the
spindle (TB3 pins 7..15)
Please Log in or Create an account to join the conversation.
- Christian
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
21 Feb 2026 12:20 #343255
by Christian
Replied by Christian on topic Mesa 7i76EU - how to enable mode 2?
Hello everyone,
First of all, thanks to PCW for pointing out that `sserial_port_0=20000000` in the driver config **should enable Mode 2**:
> In the driver config string will set the mode to 2 which will enable both the MPG encoder inputs and analog inputs.
> Note that the encoder inputs are intended for MPG use and are fairly slow and do not support index.
> You would normally use the 7I76EU high speed encoder input for the spindle (TB3 pins 7..15).
I have a **brand new Mesa 7I76EU** for my Maho MH400 mill and I want to use **Mode 2**:
- Inputs 16–19 for an **MPG handwheel (ABZ encoder)**
- Inputs 00–03 as **analog inputs** for feedrate and spindle override
**What I have tried so far:**
- In the `.ini` under `[HOSTMOT2]` I set:
[HOSTMOT2]
DRIVER=hm2_eth
BOARD=7i76eu
CONFIG="num_encoders=1 num_pwmgens=0 num_stepgens=5 sserial_port_0=20000000"
- In the HAL, the card is loaded like this:
loadrt hm2_eth board_ip="192.168.1.121" config="num_encoders=1 num_pwmgens=0 num_stepgens=5 sserial_port_0=20000000"
setp [HMOT](CARD0).watchdog.timeout_ns 5000000
- LinuxCNC detects the card correctly:
hm2_eth: discovered 7I76EU
hm2/hm2_7i76e.0: Smart Serial Firmware Version 43
Board hm2_7i76e.0.7i76.0.0 Hardware Mode 0 = standard
Board hm2_7i76e.0.7i76.0.0 Software Mode 0 = io_spin
Board hm2_7i76e.0.7i76.0.0 Software Mode 1 = io_ana_spin
Board hm2_7i76e.0.7i76.0.0 Software Mode 2 = io_enc_ana_spin_fv
**Problem / Open Questions:**
- Despite this configuration, the card **does not automatically operate in Mode 2**.
- I want to use the analog inputs and the MPG handwheel simultaneously, and monitor the spindle with an ABZ encoder, but the Mode 2 functionality does not seem active yet.
- Is it possible that the mode must be **physically set via jumpers**, or is there another driver/firmware parameter I am missing?
- Attempts to flash a Bitfile did **not work**.
Any advice on how to reliably activate Mode 2 without LinuxCNC entering a fault state would be greatly appreciated.
Thanks in advance!
Christian
First of all, thanks to PCW for pointing out that `sserial_port_0=20000000` in the driver config **should enable Mode 2**:
> In the driver config string will set the mode to 2 which will enable both the MPG encoder inputs and analog inputs.
> Note that the encoder inputs are intended for MPG use and are fairly slow and do not support index.
> You would normally use the 7I76EU high speed encoder input for the spindle (TB3 pins 7..15).
I have a **brand new Mesa 7I76EU** for my Maho MH400 mill and I want to use **Mode 2**:
- Inputs 16–19 for an **MPG handwheel (ABZ encoder)**
- Inputs 00–03 as **analog inputs** for feedrate and spindle override
**What I have tried so far:**
- In the `.ini` under `[HOSTMOT2]` I set:
[HOSTMOT2]
DRIVER=hm2_eth
BOARD=7i76eu
CONFIG="num_encoders=1 num_pwmgens=0 num_stepgens=5 sserial_port_0=20000000"
- In the HAL, the card is loaded like this:
loadrt hm2_eth board_ip="192.168.1.121" config="num_encoders=1 num_pwmgens=0 num_stepgens=5 sserial_port_0=20000000"
setp [HMOT](CARD0).watchdog.timeout_ns 5000000
- LinuxCNC detects the card correctly:
hm2_eth: discovered 7I76EU
hm2/hm2_7i76e.0: Smart Serial Firmware Version 43
Board hm2_7i76e.0.7i76.0.0 Hardware Mode 0 = standard
Board hm2_7i76e.0.7i76.0.0 Software Mode 0 = io_spin
Board hm2_7i76e.0.7i76.0.0 Software Mode 1 = io_ana_spin
Board hm2_7i76e.0.7i76.0.0 Software Mode 2 = io_enc_ana_spin_fv
**Problem / Open Questions:**
- Despite this configuration, the card **does not automatically operate in Mode 2**.
- I want to use the analog inputs and the MPG handwheel simultaneously, and monitor the spindle with an ABZ encoder, but the Mode 2 functionality does not seem active yet.
- Is it possible that the mode must be **physically set via jumpers**, or is there another driver/firmware parameter I am missing?
- Attempts to flash a Bitfile did **not work**.
Any advice on how to reliably activate Mode 2 without LinuxCNC entering a fault state would be greatly appreciated.
Thanks in advance!
Christian
Please Log in or Create an account to join the conversation.
Time to create page: 0.125 seconds