• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy

TronXY X5S-2e Calibration Code

DynaGen avatarDynaGen

July 27, 2019

thingiverse-icon
DescriptionCommentsTags

Description

TronXY X5S-2e
Using the stock 32-bit Chitu closed source board. As this board is currently not supported in Marlin, it is necessary to make changes to the original parameters without reflashing. Fortunately most things can be done through this GCode. Information has been sourced from various areas and translations clarified

I have enabled the Thermal Protection as it comes standard disabled.
It is necessary to replace 2 lines with
M8002 I1 ;X stepper motor direction
M8003 I1 ;Y Stepper motor direction
as I have modified the firmware to suit a CoreXY design, rather than the H-Bot design the X5S-2e ships as.
I have also updated the extrusion mm/step value to suit the extruder gear that came with it.

If you find any issues, or further information that could be added feel free to comment.

NOTICE: As always, backup your current settings before making changes
To backup: Insert an SD card in the machine and run
M8512 "ConfigBackup.gcode" ;

To run updated configuration or revert to backup, select onscreen "Print" and select the file. Then print the file. The machine won't move, but it will beep once updated.

EDIT: Confirmed with TronXY; there is no support for individual E-steps. E-steps is a global parameter. Which means there is no option to run different extruder drive gears, or geared extruders

;Standard Settings to suit X5S-2e
;Modified to enable thermal protection
;Modified by Lee Harris 27/07/2019
; https://cdn.thingiverse.com/assets/a3/bf/1b/27/1b/ChiTu_F_Plus_644_v4.0.5_V1.3.17_XYZ_HBOT_Ultimaker.txt
; https://github.com/altLab/photon-resin-calibration/blob/master/resin-xp-finder/print-mode.gcode
; http://www.customize-3d.com/chitu-g-code-explained.html
: Translated version of Original settings. See M8512

;The basic format is Mxxx Ixxx,Mxxx Txxx or Mxxx Sxxx
;Ixx :I Followed by integer or hexadecimal(starting with 0x)
;Sxx :S Followed by a floating point number

;;Version: V1.4.1RC16m4 LCD: 3

; M8998 I1 ;Enable configuration
;Power Loss Resume
M8000 I1
; I1 enabled
; I0 disable
;Printer Shutdown Control
M8001 I1
; I1 enabled
; I0 disabled

;Stepper Motor Direction Control
; I1 forward
; I-1 reverse
M8002 I-1 ;X stepper motor direction
M8003 I-1 ;Y Stepper motor direction
M8004 I1 ;Z Stepper motor direction
M8005 I1 ;E Stepper motor direction
M8005 I-1 E2 ;Set the second E stepper motor direction, I1 or I-1, if not set, the second E motor direction is opposite to the first motor direction
M8005 I-1 E3 ;Set the second E stepper motor direction, I1 or I-1, if not set, the second E motor direction is opposite to the first motor direction

;XYZ Manual movement configuration
; O: Print Head Moves
; 1: Print Bed Moves
M8005 X0
M8005 Y0
M8005 Z1

;Movement Settings
;(Speed/acceleration settings. Speed in mm/s, acceleration in mm/s^2)

M8006 I120	        ;Default Velocity movement speed X/Y/Z
M8007 I10	        ;Default JERK
M8008 I3000       	;Default Acceleration
M8007 E25
M8008 E1000

;Axis mm per step
M8009 S0.0125 ;XY: such as 20 teeth, pitch 2.032mm, 1.8 degree stepper motor, 1/16 microstepping. Equation [(20*2.032)/((360/1.8)*16)]
; M8009 X0.0127 Y0.0127 ;Independant X & Y as above
M8010 S0.0025 ;Z: Equation [lead / ((360/1.8)*16)]
M8011 S0.0105062712317677 ;Extruder Steps: Equation [(Extruder Gear circumference)/3200](calibrated X5S-2e)

;Maximum Movement Velocity
M8012 I200 ;XY maximum Movement Velocity mm/s
M8013 I30 ;Z maximum Movement Velocity mm/s
M8014 I120 ;Extruder Movement Velocity mm/s. Possibly duplicated with M8019

;Homing Speeds
M8015 S30 ;XY Initial homing speed
M8016 S5 ;XY Second (bounce) homing speed
M8015 I10 ;Z Initial homing speed
M8016 I5 ;Z Second (bounce) homing speed

;Priming filament before printing
M8017 I10 ;Priming filament length mm
M8018 I20 ;Priming velocity mm/s
M8489 T6 ;wire feed speed for loading consumables

;Retraction
M8019 I80 ;Maximum retraction velocity mm/s
; M8020 S6.5 ;Retract distance mm. Slicer ignored. (calibrated 6.5mm for X5S-e2)
M8020 S0 ;Retract distance obtained from slicer.
; M8033 S55 ;Retract velocity mm/s
M8033 S0 ;Retract velocity obtained from slicer
M8028 S0.00 ;Extra Prime after retraction

;Filament Diameter mm
M8021 S1.75

;Temperature - Hotend
M8022 I245 ;Maximum allowable temperature of hotend
M8022 T170 ;Minimum temperature to allow extrusion

;Temperature - Heated Bed
M8027 T1
; 1: enable hot bed
; 0: disable hot bed
M8023 I80 ;Maximum allowable temperature of heated bed
;M8521 I0 ;Hot Bed heating redefinition. Default 0

;Thermal Protection
M8023 T0
; 0: Enable temperature error detection
; 1: Disable ALL temperature error detection (TronXY default)
; 2: Disable hot bed temperature error detection only

;X/Y/Z Distance Limit mm
; Buzzer will sound when reached maximum
M8024 I330 ;X maximum movement distance
M8025 I330 ;Y maximum movement distance
M8026 I400 ;Z maximum movement distance

;Extruder Setup
M8027 I2 ;Number of Extruders
M8027 S1
; 0: Individual nozzle for each extruder
; 1: 1 nozzle for set # of extruders

;Set Offset of Second Extruder Head(if set in M8027)
M8031 S0.00 ;X offset direction
M8032 S0.00 ;Y offset direction
M8031 D-35.00 ;third extrusion head X offset
M8032 D180.00 :third extrusion head Y offset

;E2 Plug re-allocation to an axis
; The command forces the number of extruded heads to 1
; 0: Dual limit mode, second limit switch at Max
; 1: Single limit mode, only one limit switch
; 3: Three Z mode. Third axis would require expansion board
; M8027 Z0 ;E2 used as Z axis
;
; M8027 Y0 ;E2 plug used as Y-axis
; M8027 E0 ;E2 plug works with first extruder as dual motor on single filament

;Homing Direction
; For delta-type machines, this parameter is ignored and the limit switches are all received X+,Y+,Z+,
; 0:Limit switch position at Xmin,Ymin(0,0) : Front Left of bed
; 1:Limit switch position at Xmax,Ymax(0,0) : Rear Right of bed
; 2:Dual Limit Switches on both X & Y
; 3:Limit switch position at Xmin,Ymax : Rear Left of bed
; 4:Limit switch position at Xmax,Ymin : Front Right of bed
M8029 I0 ;XY
M8029 S0 ;Z
; 0:Limit Switch at Min z
; 1:Limit Switch at Max z (doesn't appear to second bump)

;Park Position
M8029 C0 ;
; 0 : Return to coordinate 0,0,0
; 1 : Stay on limit switches

;Limit Switch Parameters
M8029 T0 ;XYZ
; -1:Trigger Change
; 0: NO Normally Open (Triggered Low)
; 1: Trigger Change NC Normally Closed (Triggered High)

;Filament Detection
M8029 D0
; 0: Disabled
; 1: Enabled
M8029 P-1
; -1: NO Normally Open (Triggered Low)
; 1: NC Normally Closed (Triggered High)

;Fans
M8030 I0 ;Part Cooling Fan
; -2: On when printing
; -1: Always on
; 0:Controlled by slicer
; 1-255: PWM speed control
M8030 I50 T-1 ;Set speed and temp for extruder fan to automatically start
0:Always On
M8489 I256 ;Motherboard fan PWM

;SD Card
M8034 I1 ;Display SD Card on Screen
; 0: Disable
; 1: Enable

;AutoLeveling(compensation)
; M8083 I2
; 0:Disable
; 1:Enable
; 2:??

M8035 I7		;# of Leveling Points: Stock 7
	M8036 X0.1 Y0.1

; M8036 X60 Y20 ;X10.00 Y10.00 ; Setting each point does not give desired result
; M8036 X100 Y50 ;X50.00 Y50.00
; M8036 X310 Y310 ;X310.00 Y310.00
; M8036 X100 Y310 ;X50.00 Y310.00
; M8036 X310 Y310 ;X310.00 Y310.00
; M8036 X100 Y300 ;X50.00 Y50.00
; M8036 X310 Y100 ;X310.00 Y50.00
; M8036 X£» ; ends auto level

;Z Height Offset (available on-screen on TronXY X5S-2e)
M8083 Z200.00 ;Delta Z itinerary
M8083 S0.00 ;Delta rod length
M8083 D0 P0 ;Steering Start Angle and End angle
M8084 S0.000 ;Delta print radius
M8084 D0 ;Leveling Radius Difference
M8084 P0 ;Leveling mode, 0:7x7 square opening 1:37 points, regular hexagon
M8084 Z3.999996 ;Delta Z offset 0: Forbidden offset, the stroke is determined by setting Z to zero, non-zero, the stroke is triggered by the leveling trigger + offset value
M8489 S4 ;Speed of the delta model when it is leveled

;Manual Leveling
; M8520 T0 ;Functions related to manual leveling test functions
0: Disabled. Refelcted in leveling operation
1: Enabled

;Machine kinematics type
M8080 I2 ;CoreXY
; 0: Cartesian
; 1:?
; 2: CoreXY
; 3: SCARA
; 4: Excavator structure

;Thermistor Parameters(not specified on location)
M8081 I2
; 0: ideal NTC 100K 1% 3950 B
; 1:K type thermocouple
; 2:EPCOS NTC 100K 1% 3950 B,correspond marlin of the sensor type 2

;MISC
M8085 I3000 ;boot logo duration,min 100ms, max 6000ms
M8085 T0 ;Screen Saver(sec) 0:Disabled
M8085 P0 ;Time(s) in standby until shutdown
M8086 I1 ;software frequency, and some users use the 0.9 step angle from the motor or external 32 subdivision of the drive, hoping to achieve 1.8 step angle or 16 segment effect, you can set the frequency to 2, the default is 1, Do not divide the frequency
M8087 I0 T0 ;I:the direction signal is valid until the pulse signal is high on the settling time, the unit is ns T:the shortest hold time of the pulse signal is in units ns ,if you do not have an external drive dashboard, set it to zero

;Action after Printing
M8489 P0
; 0:Disable motors and heaters after printing
; 1:Disabled. Follow slicer instructions
; 2 = Home build plate, disable motors (Not recommended)
; 3 = Move to max Z, dissable motors
M8089 P0 ;Duplicates M8489

;PID Control (Extruder Only)
;
; M303 E0 S150 C5 ; PID Auto tune cycle : Extruder E0, Temp 150, 5 cycles
M301 P22.2000 I1.0800 D114.0000 ; Set new PID Settings

;Laser Engraver Support
M8520 I0
; 1:Enable Laser Engraver support
; 0:Disable Laser Engraver support

;WIFI Support
; M9005 '"Networkname","Password"'

;Save Parameters : Must be executed to save to EEPROM otherwise resets on restart
M8500 ; Save configuration permanently
; M8510 ; Make changes available immediately. Reset on restart
; M8512 "Configuration file.gcode" ; save the configuration to a file, the file is an absolute path

License:

Creative Commons - Public Domain Dedication

Related Models

T-nut M3 drop-in rotating V-Slot preview image

T-nut M3 drop-in rotating V-Slot

DaVinci2000 profile image

DaVinci2000

39,834

Hero Me Gen7 Platform Release4 preview image

Hero Me Gen7 Platform Release4

MediaMan3D profile image

MediaMan3D

2,659

tag preview image

tag

user_329147820 profile image

user_329147820

2

Working 5 speed transmission model for Toyota 22RE engine preview image

Working 5 speed transmission model for Toyota 22RE engine

ericthepoolboy profile image

ericthepoolboy

25,753

T-nut M3 drop-in rotating V-Slot preview image

T-nut M3 drop-in rotating V-Slot

DaVinci2000 profile image

DaVinci2000

563

Tag preview image

Tag

user_2301408581 profile image

user_2301408581

0

DIY Life-Size Terminator Arm Lamp preview image

DIY Life-Size Terminator Arm Lamp

OneIdMONstr profile image

OneIdMONstr

8,862

ATLAS - The universal strong spool holder preview image

ATLAS - The universal strong spool holder

Waikikiprod profile image

Waikikiprod

275