Skip to content

GCodeErrorMadChecker is a Java CLI application that checks a GCode file for suspicious lines based on the ASCII table or line length

License

Notifications You must be signed in to change notification settings

MadMan2k/GCodeErrorMadChecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GCodeErrorMadChecker

GCodeErrorMadChecker is a small Java CLI application that checks a GCode file for suspicious lines based on the ASCII table or line length.

This application can protect you from blobs like this:

blob1

or like this:

blob2

Unfortunately, your machine most probably will not alert you about these problems and start the task, but will stop trying to read the occurred code. So, you will not only fail your model but also risk damaging your machine

Requires

Java 17

Usage

Download GCodeErrorMadChecker

Open your terminal or command prompt on your computer (Windows/Mac/Linux) ang go to:

GCodeErrorMadChecker/src/main/java/

First, you need to compile GCodeErrorMadChecker.java by running the following command:

javac GCodeErrorMadChecker.java

This command will create the file GCodeErrorMadChecker.class. This is your application, and you can move it wherever you want on your computer

To run your GCodeErrorMadChecker.class use

java GCodeErrorMadChecker <filepath>

where <filepath> is the path to your GCode file.

Features

Checks for suspicious lines based on the ASCII table and line length. Allows customization of markers to specify the range for checking. Customization You can customize the markers used for the start and end of the checking range by modifying the constants in the code:

private static final String START_MARKER = ";GCodeErrorMadChecker_Start";
private static final String END_MARKER = ";GCodeErrorMadChecker_End";

Start and End Markers

The application uses markers to specify the range for checking.

Add the Start Marker

;GCodeErrorMadChecker_Start

to the end of your Machine Starting Gcode in your slicer.

Add the End Marker

;GCodeErrorMadChecker_End

to the beginning of your Machine Ending Gcode in your slicer.

GCodeErrorMadChecker will not check your code without Start and End Markers

Customization (optional)

You can customize the markers used for the start and end of the checking range by modifying the constants in the code:

private static final String START_MARKER = ";GCodeErrorMadChecker_Start";
private static final String END_MARKER = ";GCodeErrorMadChecker_End";

Result

The application prints the result, including:

  • Total lines checked
  • Number of suspicious lines found
  • List of line numbers with suspicious content

License This project is licensed under the MIT License - see the LICENSE file for details.

About

GCodeErrorMadChecker is a Java CLI application that checks a GCode file for suspicious lines based on the ASCII table or line length

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages