- Posts: 532
- Thank you received: 327
Trajectory Planner using Ruckig Lib
- Joco
- Offline
- Platinum Member
-
Cheers - J.
Please Log in or Create an account to join the conversation.
- ihavenofish
- Offline
- Platinum Member
-
- Posts: 1029
- Thank you received: 286
0.3g acceleration.But what accelerations are you running? That’s where the challenges start to appear.
Please Log in or Create an account to join the conversation.
- Joco
- Offline
- Platinum Member
-
- Posts: 532
- Thank you received: 327
The concept of a following error is strange when talking about stepper motors. Since they are an open loop system, there is no position feedback to let you know if you actually are out of range. LinuxCNC calculates if it can keep up with the motion called for, and if not, then it gives a following error. Following errors usually are the result of one of the following on stepper systems.
Any of the above can cause the real-time pulsing to not be able to keep up the requested step rate.
- FERROR too small
- MIN_FERROR too small
- MAX_VELOCITY too fast
- MAX_ACCELERATION too fast
- BASE_PERIOD set too long
- Backlash added to an axis
Any advice/idea on how the runners would be potentially driving requests for too high an acceleration/velocity? Those being the ones most likely to be at issue? The min/max follow error look to be looser than the sim and also work just fine with the standard TP.
Thanks - J.
Please Log in or Create an account to join the conversation.
- smc.collins
- Offline
- Platinum Member
-
- Posts: 723
- Thank you received: 139
Please Log in or Create an account to join the conversation.
- Joco
- Offline
- Platinum Member
-
- Posts: 532
- Thank you received: 327
Yes I understand that. I have that on my mill. However that is not the issue. The problem is that for some reason the addition of the ruckig runner instances has somehow/somewhere generated a following error condition within in open stepper system. So we need to unpick where/why/how that is happening. As where things stand the code is great in the sim and dead in the water on physical kit, well specifically my phyiscal kit. Unless someone has tested this latest code line on physical kit and has it working. If so I REALLY want to see what their config setup is.You can use encoders for position feedback with Linuxcnc, there's a bunch of threads about it.
I believe following error is calculated, tested and flagged within src/emc/motion/control.c from lines 462 to 489. Extract post below:
Thanks - J.
Please Log in or Create an account to join the conversation.
- Joco
- Offline
- Platinum Member
-
- Posts: 532
- Thank you received: 327
Attached is the log file from this run.
Key info is the following error that was recorded on tripping the FERROR:
Please Log in or Create an account to join the conversation.