-
Notifications
You must be signed in to change notification settings - Fork 548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code 2 halts reported using 3.6.0-beta.2 #1071
Comments
In 3.6.0-beta.3 additional debugging information is output when movement errors occur. This should help us to track down the cause, in particular whether is it just small errors caused by FP rounding that can be corrected or ignored. |
Further debug information added to 3.6.0-beta.3+2 |
Report from a user, see https://forum.duet3d.com/topic/37388/3-6-0-beta-3-1-halted-mid-print: Error: Code 2 move error: info=-0.00195, seg: s=2467229762 t=11130 d=-29.00 u=-3.1414e-3 a=9.6290e-8 f=09 M122 report: 2/3/2025, 10:48:21 AM: M32 "0:/gcodes/FloatBowlSpacer.gcode": File 0:/gcodes/FloatBowlSpacer.gcode selected for printing Edited to add a second attempt to print: |
The above two reports indicate that the movement was halted because the first step in the segment was calculated to occur a tiny amount (0.00195 of a step clock) before the segment was intended to start. I have established that this can happen when the distance carried forward to the segment is almost a whole step, because of floating point rounding error. I have changed the code in RRF and D3E to allow the calculated step time to be up to 2 clocks before the start of the move, and in this case set the step time to the move start time. It is likely that other reported Code 2 halts (for which we don't have this amount of information) have the same cause. |
We have reports from an OEM that RRF occasionally halts with Code 2 movement errors.
The text was updated successfully, but these errors were encountered: