MESA 7i76U inputs changing state without changes to config

More
18 Jun 2025 16:54 #330457 by scsmith1451
I have a DIY RouterMill that I've been fighting with for many years. I recently ditched MACH3 and paraports for the MESA 6i25 <=> 7i76u combo.
After flashing the 6i25 with the 5i25/7i76u x 2 bitfile and updating LCNC to 2.94 and configuring with PNCConf, all of the steppers worked as expected and were tuned for optimum movements for my machine. Turning my attention to the INPUTS, based on what I understand from the docs, the INPUTS are sinking so I configured the machine with all INPUTS as follows:

VF(24v) -> switch(NC) -> 7i76.0.0.input_nn

After starting LCNC, I notice that the ESTOP was triggered but, the button was not closed. Checking the INPUT pins with halshow, I could see that the board was showing all INPUTS as TRUE, therefore I changes all of the INPUTS to input-nn-not and restarted LCNC. Now all of the INPUTS seemed to respond correctly. When I attempted a HOME_ALL, the Z moved to positive, so I reconfigured it to home negative with PNCConf. That worked and after more reading and adjusting of some parameters, I got the Z homing correctly backing off the trigger position by .050 in.  Then I directed my attention to X.  However, I had to adjust a few more parameters for the X axis then restarted LCNC. *)#$!! All of the inputs had switched and were now reporting as TRUE. Frustrated I changed all INPUTS back to input-00 and restarted LCNC. With this session I was able to get both the Z and X axes to home correctly, however, Y was now the problem child as it would not back off the trigger position. After several attempts I finally decided to swap DIR-/DIR+ at the microstepper so the Y config was exactly as the X config. (My Y axis is at the back of my machine so I had reversed the motor in the config for correct movement). After making the change and while running PNCConf I confirmed that the Y axis was now responding correctly then proceeded to resume verifying  the HOME ALL function, The attempt failed, so I tweaked the HOME parameters but, when I restarted LCNC all of the INPUTS had again switched their state (*)#$!!,*)#$!!). More bizarre was that now no matter how I set the PROBE input (input-nn or input-nn-not) the halshow remained the same.  After several additional restarts, the input pins again flipped the input state.

At this point I'm half inclined to suspect the 7i76 board as it has one INPUT, input-04, that is always stuck in the same status in halshow much as the PROBE input is now responding.

If anyone has any ideas that I can try, I would greatly appreciated the support.

Regards,
Stephen

Please Log in or Create an account to join the conversation.

More
18 Jun 2025 18:24 - 18 Jun 2025 21:03 #330464 by PCW
Very odd, the only thing I can think of is that
there's something wrong with the supplied
field voltage (not filtered?) or the field voltage
sensing on the card is faulty.

What is your field voltage and what does
the 7I76 field voltage hal pin read?

You would need to have the sserial mode set to 2 to
be able to read the field voltage hal pin, so in the
hal file, change:

sserial_port_0=00xxxxxx

to:

sserial_port_0=20xxxxxx
 
Last edit: 18 Jun 2025 21:03 by PCW. Reason: clarify

Please Log in or Create an account to join the conversation.

More
19 Jun 2025 12:38 #330500 by scsmith1451
I'm using a dedicated 24v switching power supply which is holding a constant 24.1 output. Setting the sserial_port_0=20xxxxxx and reading the fieldvoltage I'm seeing a constantly fluctuating value from 22.01 - 23.9 v

Please Log in or Create an account to join the conversation.

More
19 Jun 2025 12:58 #330501 by PCW
That does seem like a lot of ripple (nearly 2V)
that should not directly cause an issue but its
odd.

Probably the card should be returned for evaluation/repair/replacement

 One other clue might be to look at the analog input hal pins.
They should be very close to 0V with nothing connected.

The way the 7I76U digital inputs work is that they are read as
analog voltages and the threshold/hysteresis is set by the
field voltage. That's why I suspected a field voltage sensing issue.
 

Please Log in or Create an account to join the conversation.

More
19 Jun 2025 13:10 #330504 by scsmith1451
I did check the analog inputs which are not connected. All are sitting at exactly 0v.

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
19 Jun 2025 13:28 #330508 by tommylight

I'm using a dedicated 24v switching power supply which is holding a constant 24.1 output. Setting the sserial_port_0=20xxxxxx and reading the fieldvoltage I'm seeing a constantly fluctuating value from 22.01 - 23.9 v

Get a good quality power supply, that is way to much fluctuation, MeanWell or Delta preferably.
Or an old used original laptop power supply, they work just fine for everything 24V, and have clean power. Do not buy e-bay or aliexpress laptop supplies they are terrible.

Please Log in or Create an account to join the conversation.

More
19 Jun 2025 14:11 #330510 by scsmith1451
Thanks for responding Tommy.

As I mentioned the 24v power supply is holding steady at 24.1v. I've had my DVM connected for several hours without a single deviation, so I'm confident the PS is good. I've just sent the results of my findings to MESA tech support to get their input on the issues.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
19 Jun 2025 14:40 #330514 by tommylight

As I mentioned the 24v power supply is holding steady at 24.1v. I've had my DVM connected for several hours without a single deviation, so I'm confident the PS is good.

I am glad you are confident, but DVM will not show ripple and high frequency mess that supply is causing, scope does, and does require using AC and DC coupling for all the checks.
You can try adding a capacitor in parallel to power output and check LinuxCNC if it stabilizes at all, but if the power supply has no inductor filtering on the output still might not be enough.
Sorry for insisting on this, but all china power supplies are getting utterly useless, been dealing with those daily for the last 17 years and seen terrible implementations to the point where the output inductor would burn to a crisp after 2-3 hours of being on with 10-50% of rated load. These were made by Horoz and all failed the same, by the hundreds.

Please Log in or Create an account to join the conversation.

More
24 Jun 2025 00:28 - 24 Jun 2025 01:47 #330787 by PCW
Well, tested the card and found no issues.

All inputs read low at 50% of field voltage and high at 65% of field voltage
applied to an input.

Heated to +70C and cooled to -40C and still no issues. Ran at 5V to 32V field
voltage and no issues.

Here is an image of all disconnected inputs in halshow (@ 24V)

 

 
Attachments:
Last edit: 24 Jun 2025 01:47 by PCW. Reason: sp
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
25 Jun 2025 15:38 #330866 by pgf
I'm just tuning in to this discussion, so maybe I missed this, but: On my Mesa 7i96 the Mesa inputs aren't like most digital inputs. They're not self-referenced. They all share a "common" pin, which should be grounded if the inputs are active high, or pulled high if the inputs are active low. Is it possible your 7i76 inputs are the same? Have you done that? If you don't, the your input might not be floating, but its reference is, and could easily lead to erratic/intermittent behavior.

paul

Please Log in or Create an account to join the conversation.

Time to create page: 0.125 seconds
Powered by Kunena Forum