plugins icon indicating copy to clipboard operation
plugins copied to clipboard

VFD does not stop spindle when gcode stopped

Open rvalotta opened this issue 3 years ago • 6 comments

I have a HY 1.5K Spindle that works perfectly. I can start and stop the spindle from io sender without any problems. From time to time when i have to abort the program the spindle does not stop. IO Sender says its off and the rpm is 0 but its still spinning. I'm not sure what else you would like to help debug this but will answer any questions and provide any data you need.

rvalotta avatar May 30 '22 00:05 rvalotta

Is this with the latest version?

terjeio avatar May 31 '22 05:05 terjeio

Sorry for taking a bit to get back to you life has been crazy

[VER:1.1f.20220325:] [OPT:VNM0SL2,191,1024,3,0] [NEWOPT:ENUMS,RT+,HOME,ES,TC,SED,ETH] [FIRMWARE:grblHAL] [NVS STORAGE:*FLASH] [DRIVER:iMXRT1062] [DRIVER VERSION:220325] [DRIVER OPTIONS:USB.1] [BOARD:GRBLHAL2000 - PRINTNC] [AUX IO:4,1,0,0] [IP:192.168.5.1] [PLUGIN:MODBUS v0.12] [PLUGIN:VFD SELECTOR v0.02] [PLUGIN:HUANYANG v1 v0.07] [PLUGIN:KEYPAD v1.3 INTERTEST] [PLUGIN:Macro plugin v0.02] [PLUGIN:RGB Indicator Lights v1.0]

rvalotta avatar Jun 12 '22 19:06 rvalotta

In doing some more testing A reset seems to stop the spindle while a stop does not. Not sure if that helps any.

rvalotta avatar Jun 15 '22 01:06 rvalotta

I have seen this before as well, all the way up to current version. It is consistent when using a VFD spindle. I have looked for the cause of this in the spindle/vfd code a couple of times but have not found the issue. I have tried adding a spindleSetState call (with null state and 0 rpm) in the VFD plugin to the driver reset function, but this didn't solve the problem.

andrewmarles avatar Jun 15 '22 18:06 andrewmarles

I can confirm that there is a bug in the sequencing of commands on a driver reset when a stop command is issued. I have not managed to fix it yet - will switch to a STM32 driver for easier debugging.

terjeio avatar Jun 15 '22 19:06 terjeio

Fix comitted - there are changes both in the core and the modbus code. Note that I have only tested with my simulator as I do not have a VFD.

terjeio avatar Jun 16 '22 07:06 terjeio