Hi all, so this DIY pen plotter is coming a long way but I keep getting slowdowns in some of the gcode files that I feed to it. For example, one file is about 3Mb and it runs fine, but the other file is 87kb and it maxes out the buffer on the Mega2560.
Example video:
[
www.youtube.com]
As you can see the speeds vary a lot. It doesn't only slow down, but it also speeds up beyond the max acceleration settings somehow. I suspect it is the G02/G03 commands giving trouble.
The gcode file is also included in here. Maybe someone knows what could be the problem or how to fix it.
This is the file: [attachment 115065 antonio_grass__0001.gcode]
These are my arc support settings:
//
// G2/G3 Arc Support
//
#define ARC_SUPPORT // Disable this feature to save ~3226 bytes
#if ENABLED(ARC_SUPPORT)
#define MM_PER_ARC_SEGMENT 1 // (mm) Length (or minimum length) of each arc segment
//#define ARC_SEGMENTS_PER_R 1 // Max segment length, MM_PER = Min
#define MIN_ARC_SEGMENTS 24 // Minimum number of segments in a complete circle
//#define ARC_SEGMENTS_PER_SEC 50 // Use feedrate to choose segment length (with MM_PER_ARC_SEGMENT as the minimum)
#define N_ARC_CORRECTION 25 // Number of interpolated segments between corrections
//#define ARC_P_CIRCLES // Enable the 'P' parameter to specify complete circles
//#define CNC_WORKSPACE_PLANES // Allow G2/G3 to operate in XY, ZX, or YZ planes
#endif
// Support for G5 with XYZE destination and IJPQ offsets. Requires ~2666 bytes.
//#define BEZIER_CURVE_SUPPORT
Anyone has a hint of what to try to improve? Maybe change some arc support settings?