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.8k stars 1.15k forks source link

Spindle using other speed than in GCode, 2.8 #982

Open mydani opened 3 years ago

mydani commented 3 years ago

Here's a short clip about the behaviour: https://www.youtube.com/watch?v=7x6jb6AMuRA

Here are the steps I follow to reproduce the issue:

  1. Load a GCode with M3 and M4 commands using different spindle speed and place M1 after each command.
  2. Run it once.
  3. Re-Run it - check the speed of the spindle at 1st m3 - it's not what it is set to in GCode.

This is what I expected to happen:

Spindle always uses the speed given within the GCode.

This is what happened instead:

Spindle used the RPM last used in the previous program.

It worked properly before this:

No clue about the version, but it works properly if some axis movements happen before the M3/M4 command.

Information about my hardware and software:

andypugh commented 3 years ago

I think that this might be a Gmoccapy display problem.

I ran a test with Axis and got the result I expected (when watching the spindle.0.speed-out pin, as Axis does not have an on-screen speed command display)

Can you repeat your test with a halmeter on the spindle.0.speed-out pin and report if the problem is seen there too?

andypugh commented 3 years ago

Any update on this? Can I close the issue?

mydani commented 3 years ago

Hello Andy, Sorry for not getting back until now - I am currently rebuilding parts of my work shop. I will test until end of next week!