Marlin post processor

Hello all,

I use aspire 10.512 i have a marlin machine
i did install the marlin pp from this forum
strange thing is my machine dont start

the gcode produced :

; grof 3
; Safe Z height: 5.000
; Tools: 1 = Vlakke frees (3 mm)
; Notes: 
; Generated Sunday April 07 2024 08:35 PM
 
G90
M84 S0
M03 S16000
G21
G00 X0.000 Y0.000 Z0.000
G1 Z5.000
G1 X0.000 Y0.000 F889.0
 
; Tool 1: Vlakke frees (3 mm)
; Path: grof 3 G:\edwin\test\grof 3.gcode
; 
G0 X-21.393 F2000 Y-58.644 F2000 Z5.000 F500
G1   Z-13.000 F254.0
G1 X-21.597 Y-58.524  F889.0
G1 X-22.037 Y-58.198 
G1 X-22.410 Y-57.845 
G1 X-22.795 Y-57.371 
G1 X-22.938 Y-57.136 
G1 X-23.055 Y-56.886 
G1 X-23.144 Y-56.626 
G1 X-23.221 Y-56.272 
G1 X-23.255 Y-55.911 
G1 X-23.259 Y-55.306 
G1 X-23.244 Y-54.912 
G1 X-23.170 Y-54.415 
G1 X-23.073 Y-54.112 
G1 X-22.935 Y-53.826 
G1 X-22.709 Y-53.484 
G1 X-22.364 Y-53.084 
G1 X-21.951 Y-52.722 
G1 X-21.731 Y-52.570 
G1 X-22.557 Y-51.699 
G1 X-22.956 Y-52.013 
G1 X-23.341 Y-52.450 
G1 X-23.869 Y-53.122 
G1 X-24.231 Y-53.988 
G1 X-24.331 Y-54.295 
G1 X-24.403 Y-54.608 
G1 X-24.477 Y-55.156 
G1 X-24.468 Y-56.387 
G1 X-24.419 Y-56.668 
G1 X-24.342 Y-56.945 
G1 X-24.216 Y-57.280 
G1 X-23.999 Y-57.752 
G1 X-23.829 Y-58.076 
G1 X-23.700 Y-58.284 
G1 X-23.551 Y-58.483 
G1 X-23.304 Y-58.767 
G1 X-22.792 Y-59.278 
G1 X-22.474 Y-59.071 
G1 X-22.263 Y-58.980 
G1 X-22.041 Y-58.916 
G1 X-21.812 Y-58.881 
G1 X-21.583 Y-58.875 
G1 X-21.393 Y-58.644 
G0  F2000  F2000 Z5.000 F500
G0 X-16.213 F2000 Y-57.518 F2000  F500
G1   Z-13.000 F254.0
G1 X-15.990 Y-57.677  F889.0
G1 X-15.792 Y-57.866 
G1 X-15.730 Y-57.937 
G1 X-15.431 Y-57.429 
G1 X-16.213 Y-57.518 
G0  F2000  F2000 Z5.000 F500
G0 X-21.393 F2000 Y-58.644 F2000  F500
G1   Z-14.000 F254.0
G1 X-21.597 Y-58.524  F889.0

G0  F2000  F2000 Z5.000 F500
G1 5.000 ;goto safe z

the postprocessor:
+================================================
+                                                
+ G Code - Vectric machine output configuration file   
+                                                
+================================================
+                                                
+ History                                        
+                                                
+ Who    When       What                         
+ ======== ========== ===========================
+ MikeK     13/12/2015 Written   
+ JohnP     02/03/2017 Added multi-tool with pause                   
+================================================

POST_NAME = "Marlin (mm) (*.gcode)"

FILE_EXTENSION = "gcode"

UNITS = "MM"

+------------------------------------------------
+    Line terminating characters                 
+------------------------------------------------

LINE_ENDING = "[13][10]"

+------------------------------------------------
+    Block numbering                             
+------------------------------------------------

LINE_NUMBER_START     = 0
LINE_NUMBER_INCREMENT = 10
LINE_NUMBER_MAXIMUM = 999999

+================================================
+                                                
+    Formating for variables                     
+                                                
+================================================

VAR LINE_NUMBER = [N|A|N|1.0]
VAR SPINDLE_SPEED = [S|A|S|1.0]
VAR FEED_RATE = [F|C|F|1.1]
VAR X_POSITION = [X|C|X|1.3]
VAR Y_POSITION = [Y|C|Y|1.3]
VAR Z_POSITION = [Z|C|Z|1.3]
VAR X_HOME_POSITION = [XH|A|X|1.3]
VAR Y_HOME_POSITION = [YH|A|Y|1.3]
VAR Z_HOME_POSITION = [ZH|A|Z|1.3]

+================================================
+                                                
+    Block definitions for toolpath output       
+                                                
+================================================

+---------------------------------------------------
+  Commands output at the start of the file
+---------------------------------------------------

begin HEADER

"; [TP_FILENAME]"
"; Safe Z height: [SAFEZ]"
"; Tools: [TOOLS_USED]"
"; Notes: [FILE_NOTES]"
"; Generated [DATE] [TIME]"
" "
"G90"
"M84 S0"
"M03 [S]"
"G21"
"G00 X0.000 Y0.000 Z0.000"
"G1 Z[SAFEZ]"
"G1 [XH] [YH] [F]"
" "
"; Tool [T]: [TOOLNAME]"
"; Path: [TOOLPATH_NAME] [PATHNAME]"
"; [TOOLPATH_NOTES]"


+---------------------------------------------------
+  Commands output for rapid moves 
+---------------------------------------------------

begin RAPID_MOVE

"G0 [X] F2000 [Y] F2000 [Z] F500"


+---------------------------------------------------
+  Commands output for the first feed rate move
+---------------------------------------------------

begin FIRST_FEED_MOVE

"G1 [X] [Y] [Z] [F]"


+---------------------------------------------------
+  Commands output for feed rate moves
+---------------------------------------------------

begin FEED_MOVE

"G1 [X] [Y] [Z]"

+---------------------------------------------------
+  Commands output for tool changes
+---------------------------------------------------

begin TOOLCHANGE

"; Tool change:"
"; Tool [T]: [TOOLNAME]"
"M05"
"M25"

+---------------------------------------------------
+  Commands output for toolpath changes
+---------------------------------------------------

begin NEW_SEGMENT

"; Path: [TOOLPATH_NAME] [PATHNAME]"
"; [TOOLPATH_NOTES]"
"M03 [S]"


+---------------------------------------------------
+  Commands output at the end of the file
+---------------------------------------------------

begin FOOTER

"G1 [SAFEZ] ;goto safe z"

annyone anny idea?
thx in advance

The thing that stands out to me is that your X range is only about 3mm, and your Y range is only 6mm. My first thought is that your CAM is outputting your coordinates in inches, but Marlin is treating them like millimeters. Note the G21 towards the top of your g-code file indicates that the postprocessor is indicating millimeters, not inches as the units.

Note that the V1 maintained versions of Marlin don’t have inches support enabled. For most CAM systems, you can output in millimeters even if you did your CAD/CAM in inches, so it is not necessary. If for some reason you want the g-code to work in inches, you can enable inch support by uncommenting the setting in the following line in configuration.h, recompiling, and reflashing your board:

//
// G20/G21 Inch mode support
//
//#define INCH_MODE_SUPPORT

Its just a partial gcode (i could not post more caracters)

Is it an option to change the postprocessor?

What should change?

Help this fast highly prieciated

I did upload files in reprap forum also :

https://reprap.org/forum/file.php?131,file=120884,filename=Marlin_mm_test5.pp,download=1

https://reprap.org/forum/file.php?131,file=120885,filename=grof_3.gcode,download=1

Your links don’t work for me…probably because I’m not a member of the forum. I don’t see anything in the g-code above that would cause Marlin to fail. We need more information to sort this out. There are a number of different failure points.

  • What control board are you using?

  • Do you have a display with your setup?

  • Does your machine respond to a g-code sender?

I use a robin nano whith a 3.5 inch tft
I run malin 2.x
I can give gcode commands true my tft screen

Im pulling my hair out

this one DONT run

this one DOES run

why???
i go get crazy

same digits no arc and still…

if someone know pleaaaase tel me!

I took the first file, the one you labeled as “this one DONT run”, put it on an SD card, and ran it on my machine. It ran just fine. I cannot say it was doing the job it was designed to do since I ran my router in the air, but the router was moving around.

Unless you are doing laser work, your feedrate is really fast at 8000mm.

G1 X-0.045 Y-4.190  F8000.000

I ran your second file, the one you said “DOES run” and it also ran on my machine. Again, the F15000 is beyond MPCNC machines. In addition, the S values for fan codes on Marlin go from 0 to 255. Your g-code goes to 3000.

; Set Fan Speed
M106 S30000

So thats indeed my problem
I can run it in my software preview also but my Marlin cnc router doesnt do a thing.
And i cant find why… drive me nuts