grblHAL / Plugins_spindle

grblHAL plugins for spindle control
Other
8 stars 12 forks source link

Stepper Spindle Enable signal to be isolated from axis enable #28

Closed karoria closed 6 months ago

karoria commented 6 months ago

I have just started testing the stepper spindle. The obvious practical issue I feel is spindle enable and axis enable both are hard bound somewhere in code, so I cant really move an axis to a precise location while rotating the spindle by hand to see if the tool touched the surface. All the other parameters like Spindle enable, direction, rpm, acceleration, works as expected.

karoria commented 6 months ago

That works. Thanks.

karoria commented 6 months ago

Hi @terjeio After these changes related to stepper spindle, I have noticed my default pwm spindle and modbus spindle both have issues. FYI, I use only 1 spindle in my machine. I checked above vfds one by one. Above vfds work well on table test but in machine it starts and stops without any notification. I observed message starting with grblHAL and version that time. That should also mean it is resetting when I start spindle. I just doubt on firmware part, it can be another issue also.

terjeio commented 6 months ago

You have more than one spindle active at the same time?

karoria commented 6 months ago

No. I use only one spindle. I have 3 machines now, each running different spindle configuration. PWM, Modbus and Stepper. My point is, after compiled for stepper spindle, when I compile for modbus or pwm spindle, it doesn't work smoothly. Pwm stops itself without any alarm or so. Modbus communication works intermittently in another machine. I think the grblHAL resets after I start spindle. With the same hardware, old builds run perfectly on pwm spindle.

terjeio commented 6 months ago

All are running on iMXRT1062?

karoria commented 6 months ago

Yes

terjeio commented 6 months ago

I have run bech tests for both PWM and VFD (Huanyang v1) spindles and cannot detect any issues. When PWM stops does the enable signal also change to off? Does it happen when the machine is just sitting idle? Or only when moving? Which old version works?

karoria commented 6 months ago

I think I must have mixed up some files as I am not good at git. I will start from scratch now and let you know in case I find same issue again. Thanks for your time and efforts. Regards, Ravi