-
Notifications
You must be signed in to change notification settings - Fork 10
Runaway after switching rotation direction #118
Comments
When you say runaway, you mean that it kept on moving past the opposite directions distance? What I mean is, when commanded to move clockwise, does it move clockwise first, then turn double that distance back counter-clockwise? I think that I know what the issue is (the hardware counter isn’t inverted when switching direction). The motor counts step pulses in the event that it cannot carry them out at that moment. I think that the motor is moving in the opposite direction like it should, but the hardware step counter is still counting in the standard direction. |
Well sort of, this is what I can figure out. After changing "Dir. Logic" via the set up menu to "Inverted" and giving it a command (not sure if it CW of CCW - I didn't keep track of the direction - Sorry). The motor moves a commanded direction (I think it is correct as commanded and the distance is as commanded, but more testing would be needed to confirm, I used a short 10mm commanded distance, which should have been a partial motor rotation). After the move, the motor reverses direction and continues to run the opposite direction (I think it is a runaway - I never had it stop when it was going the wrong direction). |
I think that I fixed the counter issue in 30e565a. I can't believe that I didn't think to test the direction inversion, that's such a basic feature. I'm probably going to set up an automated testing bench if I have time due to the amount of testing for the different features. Probably not going to happen anytime soon :). Take your time on testing, there's no rush. Calibration shouldn't be affected by the direction logic. Let me know the results when you have the time to test. |
OK, testing is tough, I have to disassemble the printer and reinstall the BTT motor adapter on the mother board. Right now the MKS-42SERVOC's are running a print job. |
Did you use the latest commit? |
the latest version 0.1.0 is used |
@svsergo I think that the issue that you’re seeing is a result of incorrect overflow handling of the timer itself. I’m going to have to do some work with my board there, so is it possible for you guys to switch the direction of the motor in Marlin or whatever other board firmware you’re using for the time being? I don’t want to leave you guys stuck without a solution because I don’t know when I’ll have time to work on it |
The error occurs regardless of the set direction of rotation in the firmware configuration. And disappears if you press the RESET button on the device. And it occurs again only after disconnecting and powering on the device. |
FYI, I am fine for now, no pressing time line. |
Had to switch default direction when I swapped from X to Y axis on printer. After switching direction via the set up menus, I commanded a short jog motion via the printer interface, it made a short move correct direction then reversed and ran away at a slow speed. I can't duplicate right now as motor isn't on printer any more.
Maybe you can check on your bench.
The text was updated successfully, but these errors were encountered: