What's New In The 3D Printer World
Chitu G code Explained
Once again Scott Here to see if I can’t help you understand the something else I have seen questions about in the 3D printing community. This Time around I’ll go over the G-code used By Chitu on their F mini control board and other custom made control boards used by Tronxy and several other companies now. This control board comes on the Tronxy X5SA, X5ST, X5S-E2, XY-3 and XY-2 to name a few.
PLEASE NOTE CHANGING THESE SETTING WILL change your printers behavior. Therefore I do not recommend changing settings yourself without understanding what each setting your adjusting does.
So To start with G code files can not be written in word you are better off writing then in notepad because it does not leave artifacts in the background. Therefore any time you want to update the firmware you need to either edit the g code you have or start a new notepad document for it.
I am going to do my best to explain each of the G codes in every day terms If I can think of how. Then if you want you can copy each line into a notepad document and edit and save it. Once saved to the SD card put the SD card into the control board and run that G code file as if it was a print and done. Make sure ever g code file you make has the save g code at the end.
Please not that this is the first G code I have seen that is like this “ M8012 I200” in this case the M8012 is the code then “ I” is the actual settings your adjusting so in the above example it is 200. The this example M8012 is the code for X Y max movement speed then the 200 is the mms. So if you wanted to slow down the max speed you could change it to 120 or 300 to speed it up depending on your printer.
Resume on power Lose
M8000 I1 ; used if you have the resume on power lose module installed
M8000 I0 ; used if you do not have the resume on power lose module installed
Stepper Motor Direction
X stepper motor
M8002 I-1 ; current direction
M8002 I1 ; Reverse direction
Y stepper motor
M8003 I-1 ; current direction
M8003 I1 ; Reverse direction
Z stepper motor
M8004 I-1 ; current direction
M8004 I1 ; Reverse direction
E stepper motor
M8005 I-1 ; current direction
M8005 I1 ; Reverse direction
X axis Movement
M8005 X0 ; print head moves in X axis
M8005 X1 ; Bed moves in X axis
Y axis Movement
M8005 Y0 ; print head moves in X axis
M8005 Y1 ; Bed moves in X axis
Z axis Movement
M8005 Z0 ; print head moves in X axis
M8005 Z1 ; Bed moves in X axis
speed is in mm/s; acceleration is in mm/ s^2 start speed. When the moving speed exceeds this speed, it takes this speed as the starting speed and begins to accelerate.Otherwise, it is in constant motion at the moving speed
M8007 I10 ; Lower this is your getting ringing
Acceleration, the larger the value is, the greater the actual average moving speed is.
Axis Steps Per Millimeter
example, 1.8 degree stepper motor, pulley with 20 teeth, tooth pitch is 2.032mm, 1/16 microstepping are (20*2.032)/((360/1.8)*16)
Set X and Y the same
M8009 S0.0125 ; adjust the 0.0125 to correct both at once
independent X,Y stepper motor parameters
M8009 X0.0127 Y0.0127
value of each step of Z. The calculation formula: lead /((360/1.8)*16),
value of each step of E. This value is equal to the 1/3200 circumference of extruder gear. In addition
Max Movement / print speed
XY movement mm/s
Z movement mm/s
Home Speed settings
first home speed
X-axis and Y-axis
second home speed
X-axis and Y-axis
Pre-extrusion before print
max speed of pre-extrusion(mm/s)
Feeding by non-reduction gear, max speed always above 100.
E max speed
Not sure why this one is here because M8014 does the same thing
M8020 S1.5 ; will set the retract to 1.5mm no matter what the slicer says
M8020 S0 ; Follows slicer retract settings
M8033 S8 ; will set retract speed to 8mms
M8033 S0 ; Follows slicer retract speed settings
Max hotend temperature
Min Hotend Temperature for extruder to turn on
Maximum temperature of hot bed
Temperature error detection
M8023 T0 ; Enable temperature error detection
M8023 T1 ; Forbidding temperature error detection
Maximum distance of X, Y, Z,
exceeding the distance will cause the buzzer to buzz
number of extrusion head Or use of second E stepper driver If the second driver chip set is there. (tronxy E2 versions only)
Set the number of extrusion headat least 1, at most 3 at present
Whether it is 3 in 1 out nozzle or 2 in 1 out nozzle, these two nozzles share a temperature sensor, share a heating rod
0: not 3/2 in 1 out nozzle 1: 3/2 in 1 out nozzle
The second extrusion head will be used as Z. For some large equipment, two Z axes will be needed. Therefore E2 can be used as Z axis.
This order will force the number of extrusion heads to be 1 0: double Z double limit mode, the second limit connect to X+,
1£ºdouble Z single limit mode, only connect to one limit switch . if to enable this function, place a tick in front of the command.
the second extrusion head will be used as Y
if to enable this function, place a tick in front of the command.
The second extrusion head is used as the first one, because some machines use two motors to feed the wire
If you need to enable this feature, place a tick in front of the command
M8027 T1 ; enable hot bed
M8027 T1 ; disable hot bed
Extra pri after retract
M8028 S0.00 ; Add to the 0.00 to add extra length on the prime length after retract.
M8029 I0 ; front left
M8029 I1 ; Unilateral maximum point limit
M8029 I2 ; Bilateral limit
M8029 I3 ; Limit in the left rear of the machine
types for limit switch
M8029 T0 , limit switch normally open, when not triggered, the signal level is open
M8029 T1:XYZ limit switch normally closed, when not triggered, the signal level is closed
Filament out Detection
Uses same plus as auto bed level sensor
M8029 D0 ; ban fault detection
M8029 D1 ; enabled fault detection
Limit switch type for filament out detection
M8029 P1 ; same with XYZ limit type
M8029 P-1 ; opposite to XYZ limit type
part cooling Fan
M8030 I0 ; fan is controlled by slicing software
M8030 Ixxx ; setting a temperature that is larger than 0 fan controlled by firmware
M8030 I0 ; full speed from powering on control board
M8030 I50 T-1 ; allows you to set what speed and temp the coldend fan comes on at
SD card displayed on screen
M8034 I1 ; Yes
M8034 I0 ; No
Auto level point setup
The maximum is 5 as regard to leveling setting, X, Y are floating number, if X, Y are small than 1, then it indicates the corresponding proportion of journey. Otherwise, it indicates the absolute coordinates of X and Y, the unit is mm.
M8035 I3 ; the number of instruction is same with that of point
M8036 X-20 Y0 ; start point
M8036 X50 Y50 ; second point
M8036 X250 Y250 , Third point
M8036 X£» ; ends auto level
M8080 I0 ; Cartesian
M8080 I2 ; Corexy
M8081 I0 ; Ideal NTC 100K 1% 3950 B
M8081 I2 ; corresponding to the type 2 sensor of marlin
Auto leveling setting
M8083 I0 ; ban auto leveling
M8083 I1; enable auto leveling (leveling switch connect Z)
Z Height Offset(TORONXY HAS THE ONSCREEN)
I skipped this because Tronxy has it onscreen. Height difference of Z leveling limit = Z zero position-Z position for leveling limit. 0: forbid deviation, the route of Z is determined by¡°set Z as zero¡±,the printed
G code doesn’t need the automatic high leveling order. It's recommended to use this mode. Non 0:Z is automatically determined when the leveling limit is triggered. Under this mode,
G29 automatic leveling order must be after the return to zero of G28 and before begin print. If the extrusion head is near to main board during limitation, the value is positive.
The minimum is 100ms,the maximum is 6000ms
standby mode to shutdown
This function can only be used for the equipment installed with the power module. The unit is second(s). When the value is 0, it indicates forbidding the function of shutdown after standby.
Max Fan speed
Max 256 with more noise, which can be adjusted through this parameter
Disable steppers and turn off all heating after printing
M8489 P0 ; Turn off all
M8489 P1 ; G Code Controlled
I have not used these one will more than likely be hotend the other the bed
M301 P22.2 I1.08 D114 ; enables PID
M303 E0 S150 C5; enables PID
M8520 I0 ; do not support the laser engraving
M8520 I1 ; support laser engraving, there are more buttons inside to set speed
Replace the word networkname with your network's name leaving the quotation marks, Replace the word Password with your networks password leaving quotation marks.
MUST DO THIS IN EVER G CODE SET YOU SEND THE PRINTER
below is an example of a Gcode I personally used to do basic update to the X5SA.
;Speed settings: speed is in mm/s; acceleration is in mm/ s^2
;start speed.When the moving speed exceeds this speed, it takes this speed as the starting speed and begins to accelerate.
;Otherwise, it is in constant motion at the moving speed c3d
;maximum speed while turning a corner. There there will be a large number of reciprocating motion while filling.
;The noise is loud while this value is large. When the value is small, the speed is slow c3d
;acceleration, the larger the value is, the greater the actual average moving speed is.
;However, the noise is loud. The actual speed is small when the value is small c3d
;MAX MOVEMENT / PRINT SPEED.
;maximum speed of various parameters. In order to ensure the stabilization of the machine,
;please make settings according to the measured results
;maximum speed of XY movement mm/s
;maximum speed of Z movement mm/s
;maximum speed of the extruder mm/s
;Z-axis home speed.When using makerware software,the home speed will be ignored while slicing,
;because gcode specified the home speed
;first home speed when Z-axis returns to zero, higher
;first home speed when X-axis and Y-axis returns to zero, higher
;second home speed when Z-axis returns to zero, slower
;second home speed when X-axis and Y-axis returns to zero, slower
; Tronxy Has this turned off
;Forbidding temperature error detection. The default temperature error detection will pop up the warning when the temperature
;sensor is not well plugged in or the heating power is too small. Strongly suggest not forbidding this function
;1: Forbidding temperature error detection 0: Enable temperature error detection
;MAX TRAVEL (adjusted because I have bed lowering installed).
;maximum distance of Z
;the duration of the boot screen,the minimum is 100ms,the maximum is 6000ms c3d
M117 PRINTER NOW CUSTOMIZED
;¡¾Save command¡¿ This parameter must not be less, otherwise all parameters can not be saved to the device
;save the configuration
Hello! You have a good site. Thanks to you, I was able to understand the commands and settings of my X5SA. It prints, however, much slower than the mechanics of CoreXY could allow. My printer could not work with an acceleration greater than 250. It overloads when I try to print at a higher acceleration .... But I will tolerate this. Perhaps you know how to implement the "Linear advance" function? I was tormented by the curve print of the corners and the influx at the seams of the ring .....
Sorry there is no linear advance in chitu. It sounds like you have one of the newer control boards and I have been hearing issues with them printing fast but chitu and tronxy both have not given me any updated gcode list to see what has changed.
In your opinion, is it possible to fix the problem with blurry angles in some other way? I tried to change the speed dol very low, but the problem remains. The printer cannot smoothly reduce the pressure of molten plastic with a decrease in speed. I think this is the reason. But how to win?
Your slicer should have coasting and other options to handle this as well I have no problem printing at 150mms
Tomorrow I will show you the print photo and my settings. You might see my mistake. In general, I am inclined to think that I need to change the main board to another one that supports marlin on this printer. Now my old ANET A8 has great speed and accuracy of printing. Do you have experience in such a rework?
Just found this site, thanks for putting this together.
I've been trying to get it to work with my TronXY X5SA Pro, and while I think I have it sorted out now, I was driving myself crazy because after each "reflash" of the settings, I would try to home the machine and it would just crash into the home switches.
Turns out you have to power down and restart the machine for the settings to fully take effect.
Thanks again! -Drew
Hello good people! I have a question! I dug up the entire forum topic and didn't find an answer! Who has encountered the port configuration for ESP-01S? What command should I use to enable the port? Tell me who faced please! Thank you in advance!
Chitu says they only have it set up to work with their wifi modules not for all modules. Once a chitu wifi module is installed use the gcodes in the article to turn on the modules and set up your wifi access using your wifi name and password.
Thanks to your post I've understood how to change the E-Steps of my 3d printer. Thank you man! Great post
Not with the current list of thermistors in the settings code chitu has given out. If its not listed here chitu either does not have it in the firmware or has not given out the info needed. You might be able to if you switch over to marlin on the chitu board.
With looking at your settings, in Acceleration you have M8008 I3000.
Is this figure correct?
I know and as stated, it'll make a lot of noise, but seriouosly I thought my X5SA Pro was going to shake itself apart.
Yes thats what I use but as I say my printers are put together for it and I also adjusted the jerk down to 8. You can always use lower accel or jerk as needed for your printer
Yeah, I've strengthened mine too with corner bracket everywhere (except to the Y axis rails).
If I set the Jerk and Acceleration in Cura, will the Printer over rule these settings? (sorry on an Imac, so can't use the Tronxy software).
On another note. I'm about to start playing with PETG (waiting on painters tape). What's your preferred method of release agent?
I've also had the PETG filament out in the air for 24hrs, but next to a radiator that's on 24/7. The air temperature around the filament is a constant 25˚C. Will it need baking after this exposure?
Sorry I didn't say in my previous post;
THANK YOU so, so much for this information on Chitu Gcode Explained. This is so valuable and must have taken a long time to gather and publish.
Very grateful for your efforts.
You are the best!
We've struggled with an X5SA Pro for a long time... Finally I found all the answers here, this documentation has saved our project.
Thank you very much for all the efforts and the sharing!