Open daxliniere opened 1 year ago
I wrote a python script to blast the jog commands from your pastebin log, using the line oriented ok ack flow control. With your config file on a DLC32 V1.1, everything worked fine so long as the motors were being run within their limits. One of the motors that I had attached would not go as fast as your config and jog commands specified, and it would stall when the speed got too high. When I dialed back the max_rate to something that motor could handle, your jog sequence ran with no apparent problems.
I cannot duplicate your driver/motor/machine setup, so I cannot prove this, but my best guess is that you might be pushing something harder than it can go and it is getting into a weird state.
I know that the controller is not dropping out because I hooked up my new MKS SERVO57 motor and set steps_per to 804, max_rate to 9000 for a step rate of 120K and it went like gangbusters.
Hey Mitch, thanks for testing that. I'm not 100% certain how exceeding the motor/system limits would cause the steps/mm to increase, but I'll take your more experienced word for it.
Those Servo57 boards look really interesting! And it seems they can be retrofitted to other steppers, so I'm thinking of adding them to my X and Y motors. Is there anything different I need to do in my FNC config?
The config is just like any other standard_stepper config. You can set the microstepping level via the button menu.
One consideration is that the MKS SERVO57 is rated at 24V so if you have a higher voltage power supply that would be a problem. The capacitors on the servo board are 35V types so I wouldn't want to try overvolting beyond 24V; you need some margin. It is possible/likely that there are other components with voltage limits too.
The MKS TMC2160_57 - not a servo - that I put on the other motor is rated for 36V which is what I have on that machine. That board has 50V capacitors.
SWOLE runs at 24v, so that seems fine to me. The SERVO57 boards are so cheap, it seems crazy not to add closed-loop facilities. Thanks for putting them on my radar.
I see this as a crossover point in what I expect is a market shift. ST506 disk drives with outboard controllers gave way to SCSI and IDE drives where the electronics is integrated, matched and tuned to the mechanical components. That opened up so many possibilities for improvement. In a very short time, outboard controllers were just a bad memory.
Controller Board
DLC32
Machine Description
SWOLE CNC
Input Circuits
No response
Configuration file
Startup Messages
User Interface Software
UGS
What happened?
fluidnc-v3.6.5-pre4-win64 Mid-way through a jog, I heard a clunk sound then jogging axes became very slow. I tried it with a rapid (g0 x150 y150) and get the same slow movement. I can't jog all the way back to physical x0y0 because soft limits kick in, thinking that it has moved further than it actually has. Restarted with CTRL+R and tried again. Same thing happened shortly after. Also during jogging.
Roll back to 3.6.4-local1 installed without power cycling my controller (which conatins the stepper drivers) and it was still stuck in the wrong-step-size state. Is it possible that the stepper controllers themselves might be getting into a funky state because of a signal they've received? Or is it more likely that when the ESP32 goes into that wrong timing state, it requires a full power cycle rather than just a CTRL+R reset? Tested again after a full power-cycle: happened again, part-way through this: G53 G0 Z0 $J=G53 X0 Y0 F1800
There's one other thing that springs to mind.. my PS4 joypad has noisy analog pots, so occasionally I get a tiny unwanted jog. UGS has a deadband control, so I've increased that. I have an inkling that maybe 'jogging while jogging' triggers the problem.
Another power-cycle later...
Fired up the machine again, jogged around and it got stuck in a weird state of jogging Z-axis up at an excrutiatingly slow rate. It was stuck in this slow-moving state and wouldn't accept new commands, including when I pressed my door switch button. This is obviously a larger concern. I have video if it helps.
More interestingly, After I turned off the main power switch of my controller, I got about a thousand INFO: Check door messages https://pastebin.com/q1pivsuC
I had no idea if it was related, but I don't recall having this issue between when the original issue was suspected solved and when Mitch(?) suggested disabling the motor-disable by changing idle_ms to 255. So for now, I am on the latest released firmware and idle_ms is 150.
Let me know if you need any more info or want me to run some tests.
Other Information
No response