fra589 / grbl-Mega-5X

5/6 Axis version of Grbl, the open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on an Arduino Mega2560
https://github.com/fra589/grbl-Mega-5X/wiki
Other
344 stars 161 forks source link

Wrong movements while running #254

Closed LinusOakery closed 2 years ago

LinusOakery commented 2 years ago

Hey!

Now I have more problems unfortunately. When I run my current project, the machine makes completely unexpected movements. See pictures.

20220215_200322 20220215_194101 20220215_194048 20220215_194051 20220215_194055

The first picture is from my tests, it happens at about the same time, but there are variations, both on how the error forms, and where it starts.

here it is the code that is run in small band with the error. try 1

G1X311.884Y211.778 ok X312.222Y200.442 ok Y144.334 ok X117.999Y109.964 ok X90.441Y105.087Z-8.988F600 ok Y160.119Z-10.93 ok X91.333Y182.261Z-11.712 ok X92.621Y190.305Z-12 ok X94.498Y202.037F800 ok ok G2X116.905Y241.36I73.64J-15.917 ok G1X124.678Y247.73 ok X133.812Y253.639 X144.416Y259.086 ok X156.595Y264.07 ok X170.448Y268.588 ok X186.071Y272.637 X203.547Y276.216 ok X218.408Y278.482 ok X231.986Y279.71 ok X244.315Y279.922 ok X255.431Y279.148 ok X265.367Y277.418 ok ok G2X310.854Y222.246I-12.747J-56.846 ok G1X311.884Y211.778 ok X312.222Y200.442 ok Y144.334 ok X90.441Y105.087 Y160.119 ok X91.333Y182.261

try2 ok

X92.621Y190.305Z-12 ok X94.498Y202.037F800 ok ok G2X116.905Y241.36I73.64J-15.917 ok G1X124.678Y247.73 ok X133.812Y253.639 X144.416Y259.086 ok X156.595Y264.07 ok X170.448Y268.588 ok X186.071Y272.637 X203.547Y276.216 ok X218.408Y278.482 ok X231.986Y279.71 ok X244.315Y279.922 ok X255.431Y279.148 ok X265.367Y277.418 ok ok G2X310.854Y222.246I-12.747J-56.846 ok G1X311.884Y211.778 ok X312.222Y200.442 ok Y144.334 ok X90.441Y105.087 Y160.119 ok X91.333Y182.261

Machine settings:

[19:59:31] [ ] Grbl 1.2d ['$' for help]

[19:59:31] [ ] [MSG:'$H'|'$X' to unlock]

[19:59:32] [ $$ ] $0=10 ;Step pulse time, microseconds

[19:59:32] [ $$ ] $1=255 ;Step idle delay, milliseconds

[19:59:32] [ $$ ] $2=0 ;Step pulse invert, mask

[19:59:32] [ $$ ] $3=0 ;Step direction invert, mask

[19:59:32] [ $$ ] $4=0 ;Invert step enable pin, boolean

[19:59:32] [ $$ ] $5=1 ;Invert limit pins, boolean

[19:59:32] [ $$ ] $6=0 ;Invert probe pin, boolean

[19:59:32] [ $$ ] $10=1 ;Status report options, mask

[19:59:32] [ $$ ] $11=0.020 ;Junction deviation, millimeters

[19:59:32] [ $$ ] $12=0.001 ;Arc tolerance, millimeters

[19:59:32] [ $$ ] $13=0 ;Report in inches, boolean

[19:59:32] [ $$ ] $20=0 ;Soft limits enable, boolean

[19:59:32] [ $$ ] $21=0 ;Hard limits enable, boolean

[19:59:32] [ $$ ] $22=1 ;Homing cycle enable, boolean

[19:59:32] [ $$ ] $23=10 ;Homing direction invert, mask

[19:59:32] [ $$ ] $24=300.000 ;Homing locate feed rate, mm/min

[19:59:32] [ $$ ] $25=1000.000 ;Homing search seek rate, mm/min

[19:59:32] [ $$ ] $26=250 ;Homing switch debounce delay, milliseconds

[19:59:32] [ $$ ] $27=15.000 ;Homing switch pull-off distance, millimeters

[19:59:32] [ $$ ] $30=12000 ;Maximum spindle speed, RPM

[19:59:32] [ $$ ] $31=550 ;Minimum spindle speed, RPM

[19:59:32] [ $$ ] $32=0 ;Laser-mode enable, boolean

[19:59:32] [ $$ ] $100=100.000 ;X-axis steps per millimeter

[19:59:32] [ $$ ] $101=100.000 ;Y-axis steps per millimeter

[19:59:32] [ $$ ] $102=400.000 ;Z-axis steps per millimeter

[19:59:32] [ $$ ] $103=100.000 ;undefined

[19:59:32] [ $$ ] $104=400.000 ;undefined

[19:59:32] [ $$ ] $110=5000.000 ;X-axis maximum rate, mm/min

[19:59:32] [ $$ ] $111=5000.000 ;Y-axis maximum rate, mm/min

[19:59:32] [ $$ ] $112=800.000 ;Z-axis maximum rate, mm/min

[19:59:32] [ $$ ] $113=5000.000 ;undefined

[19:59:32] [ $$ ] $114=800.000 ;undefined

[19:59:32] [ $$ ] $120=300.000 ;X-axis acceleration, mm/sec^2

[19:59:32] [ $$ ] $121=300.000 ;Y-axis acceleration, mm/sec^2

[19:59:32] [ $$ ] $122=200.000 ;Z-axis acceleration, mm/sec^2

[19:59:32] [ $$ ] $123=300.000 ;undefined

[19:59:32] [ $$ ] $124=200.000 ;undefined

[19:59:32] [ $$ ] $130=400.000 ;X-axis maximum travel, millimeters

[19:59:32] [ $$ ] $131=200.000 ;Y-axis maximum travel, millimeters

[19:59:32] [ $$ ] $132=200.000 ;Z-axis maximum travel, millimeters

[19:59:32] [ $$ ] $133=200.000 ;undefined

[19:59:32] [ $$ ] $134=200.000 ;undefined

LinusOakery commented 2 years ago

This is the gcode file: issue254.gcode.txt

fra589 commented 2 years ago

Hi @LinusDerome,

Please, also post the $I command result to show your grbl-Mega-5X version and axis definition.

@++;
Gauthier.
P.S. It should be better to put your GCode file in an uploaded file rather than directly pasted in the comment.

LinusOakery commented 2 years ago

[19:22:23] [ GCODE Parser ] GCODE File Loaded, please wait while we render a preview...

[19:22:24] [ GCODE Parser ] GCODE Preview Rendered Succesfully: Total lines: 3647 / Estimated GCODE Run Time: 00h:21m

[19:22:31] [ $I ] [VER:1.2d.20210930:]

[19:22:31] [ $I ] [AXS:5:XYZYZ]

[19:22:31] [ $I ] [OPT:VNMGH,35,255,80]

[19:22:31] [ $I ] ok

LinusOakery commented 2 years ago

now i´m back att the workshop. I will now try to do the project from gcode generated in Freecad instead of fusion 360.

fra589 commented 2 years ago

Hi @LinusDerome,

This also may be due to loss of steps in the stepper motors...

Your GCode file seams to be right. But the working speed is may be too speed for cutting forces.
I think that your speed parameters and especially acceleration may be are too large!

Perhaps you can try lowest values in the parameters and also the F values in the GCode. And if it work, try to find the optimum for you.

@++;
Gauthier.