LinuxCNC / linuxcnc

LinuxCNC controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more.
http://linuxcnc.org/
GNU General Public License v2.0
1.79k stars 1.15k forks source link

Hostmot2 #2869

Closed JTrantow closed 8 months ago

JTrantow commented 8 months ago

2860 was prematurely closed. The fix works for the halrun script that demonstrated the problem but the issue still exists when you run a full configuration in linuxcnc.

Here are the steps I follow to reproduce the issue:

  1. Load a mesa config with at least one encoder and the following connections net machine-is-on <= halui.machine.is-on => hm2_7i92.0.encoder.00.quad-error-enable net estop-x-encoder <= hm2_7i92.0.encoder.00.quad-error => joint.0.amp-fault-in
  2. Create a quad error on the x encoder by toggling the input a/b simultaneously.
  3. Click the power button which sets the machine-is-on and enables the quad-error-enable.

This is what I expected to happen:

Any quad errors that occur when the encoder quad-error-enable is false should be discarded.

This is what happened instead:

Quad errors that occur when quad-error-enable is false immediately pop up when quad-error-enable is set true by machine-is-on.

pcw-mesa commented 8 months ago

Should be fixed in 2.9 and master now

JTrantow commented 8 months ago

Thanks, I will give it a try in the next hour or two.

On Wed, Jan 31, 2024 at 10:58 AM pcw-mesa @.***> wrote:

Should be fixed in 2.9 and master now

— Reply to this email directly, view it on GitHub https://github.com/LinuxCNC/linuxcnc/issues/2869#issuecomment-1919522155, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHDVLO4NUX2ONXTIHICYCDYRJZ4RAVCNFSM6AAAAABCQBSMMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJZGUZDEMJVGU . You are receiving this because you authored the thread.Message ID: @.***>

JTrantow commented 8 months ago

Latest fix by PCW tested on my lathe and mill resolve this issue.