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.81k stars 1.16k forks source link

MDI command S4000 turns the spindle ON #2781

Closed zmrdko closed 11 months ago

zmrdko commented 11 months ago

Here are the steps I follow to reproduce the issue:

  1. estop off
  2. turn machine on
  3. home all
  4. issue S4000 MDI command

This is what I expected to happen:

S4000 command only changes preset spindle speed

This is what happened instead:

S4000 command makes spindle FWD button appear as ON (halui.spindle.0.runs-forward is switched to ON state, but spindle.0.forward is OFF)

It worked properly before this:

a friend of mine declared, that in 2.7 it does not happen

Information about my hardware and software:

https://github.com/LinuxCNC/linuxcnc/assets/56800227/3078db1c-e95d-48aa-a550-269483afb872

jethornton commented 11 months ago

Running the Axis sim and watching the spindle pins in the watch window and nothing changes there. Seems like it's an issue with the gui and perhaps with the python interface.

JT

zmrdko commented 11 months ago

can you please double check? here is video of stock axis sim config and halshow spindle pins:

https://github.com/LinuxCNC/linuxcnc/assets/56800227/ef608f73-7007-4921-b8bf-41894842d172

You are right, that it does not affect spindle.0.froward pins, It affects only halui.spindle.0.forward pin.

andypugh commented 11 months ago

I think you mean the halui.spindle.0.runs-forward pin? Does it set the runs-reverse pin if you enter a negative speed?

Are you prevented from pressing the spindle-start pin (on the basis that it is already pressed)

zmrdko commented 11 months ago

Correct, my bad: halui.spindle.0.runs-forward as seen on screen capture. Entering negative Spindle speed is not permitted. I get error: Negative spindle speed used: image

I am able to press spindle FWD again, and it actually starts the spindle: image

c-morley commented 11 months ago

This sounds like a bug just fixed..try the latest code in 2.9

zmrdko commented 11 months ago

This sounds like a bug just fixed..try the latest code in 2.9

im using this apt source:

deb [arch=amd64,arm64 signed-by=/usr/share/keyrings/linuxcnc.gpg] https://www.linuxcnc.org/ bookworm base 2.9-uspace
deb-src [arch=amd64,arm64 signed-by=/usr/share/keyrings/linuxcnc.gpg] https://www.linuxcnc.org/ bookworm base 2.9-uspace

when this repository gets updated with bugfix you mentioned?

zmrdko commented 11 months ago

If I understand correctly, it will be fixed in version 2.10

c-morley commented 11 months ago

It should be fixed in 2.9.2 coming out soon ish. I always compile the code so can't advise how to try earlier. Usually the buildbot builds the currentest code.

zmrdko commented 11 months ago

Thanks!