1HCL Brake delay
-
@highfreq thanks for reporting this. I will see if Ican reproduce it (my setup on X and Y does not have brakes)
-
@t3p3tony Our does it on z axis and has 4 motors, the gantry weights about 100kg, not easy to reproduce i guess.
If you have any more suggestions or test to make please let know. -
@highfreq I will look at the control signals coming from the board using a scope and see the timing between them
-
@t3p3tony This morning it did it in open loop too. Not as often as in closed loop but it does it in open too.
-
@highfreq it sounds to me that there are two issues:
- When the motor is already energised and you switch from open loop to closed loop mode ready to perform tuning, there is a current drop that causes position to be lost if the motor is under load.
- When you first energise the motor using M17 in open loop mode, occasionally there is a short delay between brake release and energising the motor.
Is this correct?
-
@dc42 From my point of view is difficult to make a distinction, all i see is that both in open and closed loop sometimes one or two of the z motors fall by about 100mm.
But your statements are correct, on those two occasions is when it happens.We monitored the power output from power source and there isn't any voltage sag to justify what happens, so we think is a firmware related issue.
-
@highfreq I've built a version of the EXP1HCL firmware that adds a 50ms delay between enabling the driver and disengaging the brake when M17 is used, and a 100ms delay between engaging the brake and disabling the driver when M18 is used. Here it is:
-
@dc42 thanks, we tested but still have the same problem at random times. maybe it needs a bit more delay?
-
@highfreq when are these "random times" when the gantry drops: are they when you enable the motors, or when you disable them; or both?
-
@dc42 when we enable them.
-
@highfreq I notice from the config.g file in your other thread that you enable the Z motor (and hence disable the brake) using a M17 Z E command in config.g. I think the problem may be that when this command is executed, the supply voltage has not been high enough and the EXP1HCL not running for for long enough for the motor driver to have finished initialising. Therefore, please try one of the following:
- Either move the M17 Z command and the Z motor tuning commands to the start of the Z homing sequence;
- Or insert a G4 delay command in config.g immediately before the M17 Z command. One or two seconds should be sufficient.
If the driver has finished initialising by the time the M17 command is executed then I would not expect to need any delay between enabling the driver and releasing the brake, because the motor phases should be energised almost instantly whereas the brake will take a significant amount of time to release. It's different when powering down the motor because of the time that the brake takes to engage.
-
@dc42 will try and let you know.
thank you.