# CONFIG FOR bushing finishing
#
# NOTE Lines must not exceed 132 characters, and '#' characters mean what follows is ignored
## Robot module configurations : general handling of movement G-codes and slicing into moves

######################## Basic motion configuration ########################

single_head   				     			  true

#default_feed_rate                            8000            			# Default speed (mm/minute) for G1/G2/G3 moves
default_feed_rate_mmps                        80             			# Default speed (mm/sec) for G1/G2/G3 moves

#default_seek_rate                            8000             			# Default speed (mm/minute) for G0 moves
default_seek_rate_mmps                        80              			# Default speed (mm/sec) for G0 moves

#mm_per_arc_segment                           0.25             			# Fixed length for line segments that divide arcs, 0 to disable
#mm_per_line_segment                          5                			# Cut lines into segments this size
#mm_max_arc_error                             0.01             			# The maximum error for line segments that divide arcs 0 to disable
																		# note it is invalid for both the above be 0
																		# if both are used, will use largest segment length based on radius
																		
# Arm solution configuration : Cartesian robot. Translates mm positions into stepper positions
arm_solution                                  cartesian		  			#  
alpha_steps_per_mm                            80               			# Steps per mm for alpha ( X ) stepper
beta_steps_per_mm                             80               			# Steps per mm for beta ( Y ) stepper
gamma_steps_per_mm                            1600             			# Steps per mm for gamma ( Z ) stepper

# Planner module configuration : Look-ahead and acceleration configuration
acceleration                                  3000             			# Acceleration in mm/s^2
z_acceleration                                15              			# Acceleration for Z only moves in mm/s^2, 0 uses acceleration which is the default. DO NOT SET ON A DELTA
junction_deviation                            0.1             			# 
z_junction_deviation                         0.01              		# For Z only moves, -1 uses junction_deviation, zero disables junction_deviation on z moves DO NOT SET ON A DELTA

# Cartesian axis speed limits
#x_axis_max_speed                             6000            			# Maximum speed in mm/min
x_axis_max_speed_mmps                         200            			# Maximum speed in mm/sec

#y_axis_max_speed                             6000            			# Maximum speed in mm/min
y_axis_max_speed_mmps                         200            			# Maximum speed in mm/sec

#z_axis_max_speed                             250             			# Maximum speed in mm/min
z_axis_max_speed_mmps                         5             			# Maximum speed in mm/sec

alpha_acceleration                            3000						# Acceleration in mm/s^2
beta_acceleration                             3000						# Acceleration in mm/s^2
gamma_acceleration                            200						# Acceleration in mm/s^2


######################## Stepper module configuration ########################
# Pins are defined as  ports, and pin numbers, appending "!" to the number will invert a pin

# X Axis stepper configuration
alpha_step_pin                                d.13              		# Pin for alpha/X stepper step signal
alpha_dir_pin                                 d.14              		# Pin for alpha/X stepper direction, add '!' to reverse direction
alpha_en_pin                                  d.15              		# Pin for alpha/X enable pin
#alpha_max_rate                               9000.0          			# Maximum rate in mm/min
alpha_max_rate_mmps                           200           			# Maximum rate in mm/sec

# Y Axis stepper configuration
beta_step_pin                              	  e.8              			# Pin for beta/Y stepper step signal
beta_dir_pin                               	  e.7!              		# Pin for beta/Y stepper direction, add '!' to reverse direction
beta_en_pin                                	  e.10              		# Pin for beta/Y enable pin
#beta_max_rate                                9000.0          			# Maximum rate in mm/min
beta_max_rate_mmps                            200           			# Maximum rate in mm/sec

# Z Axis stepper configuration
gamma_step_pin                                d.3             			# Pin for gamma/Z stepper step signal
gamma_dir_pin                                 d.7             			# Pin for gamma/Z stepper direction, add '!' to reverse direction
gamma_en_pin                                  d.4             			# Pin for gamma/Z enable
#gamma_max_rate                               900.0          			# Maxmimum rate in mm/min
gamma_max_rate_mmps                           5.0          				# Maxmimum rate in mm/sec

# Dual Z Axis stepper configuration
#gamma_sec_step_pin			       			  c.5 						# Pin for second gamma/Z stepper step signal
#gamma_sec_dir_pin                            b.0						# Pin for second gamma/Z stepper direction, add '!' to reverse direction
#gamma_sec_en_pin                             b.1						# Pin for second gamma/Z enable


######################## Extruder module configuration ########################

extruder.hotend.enable                        true          			# Whether to activate the extruder module at all. All configuration is ignored if false
extruder.hotend.steps_per_mm                  148.50           			# Steps per mm for extruder stepper
#extruder.hotend.default_feed_rate            3000          			# Default rate ( mm/minute ) for moves where only the extruder moves
extruder.hotend.default_feed_rate_mmps        100            			# Default rate ( mm/sec ) for moves where only the extruder moves
extruder.hotend.acceleration                  10000           			# Acceleration for the stepper motor mm/s^2
extruder.hotend.max_speed                     100            			# Maximum speed in mm/s

extruder.hotend.step_pin                      c.2          				# Pin for extruder step signal
extruder.hotend.dir_pin                       c.1          				# Pin for extruder dir signal ( add '!' to reverse direction )
extruder.hotend.en_pin                        c.0          				# Pin for extruder enable signal

# Extruder offset
extruder.hotend.x_offset                      0           				# X offset from origin in mm
extruder.hotend.y_offset                      0           				# Y offset from origin in mm
extruder.hotend.z_offset                      0            				# Z offset from origin in mm
extruder.hotend.tool_number                   0  

#extruder.hotend.clean_x_point                100  
#extruder.hotend.clean_y_point                100
#extruder.hotend.clean_iterations             3 
#extruder.hotend.clean_x_move                 -5
#extruder.hotend.clean_y_oscil                -15


######################## Temperature control configuration ########################

# First hotend configuration
temperature_control.hotend.enable            	true             		# Whether to activate this ( "hotend" ) module at all.
temperature_control.hotend.sensor            	thermistor
temperature_control.hotend.thermistor_pin    	a.0              		# Pin for the thermistor to read
temperature_control.hotend.heater_pin        	e.14             		# Pin that controls the heater, set to nc if a readonly thermistor is being defined
temperature_control.hotend.thermistor        	Semitec		  			# Thermistor type 
#temperature_control.hotend.beta              	4375             		# Or set the beta value
temperature_control.hotend.set_m_code        	104              		# M-code to set the temperature for this module
temperature_control.hotend.set_and_wait_m_code 	109            			# M-code to set-and-wait for this module
temperature_control.hotend.designator        	T0               		# Designator letter for this module
temperature_control.hotend.max_temp          	300              		# Set maximum temperature - Will prevent heating above 300 by default
temperature_control.hotend.min_temp          	5                		# Set minimum temperature - Will prevent heating below if set
minimal_extrusion_temp			    		    50						# ,      

# Safety control is enabled by default and can be overidden here, the values show the defaults
temperature_control.hotend.target_temp_safezone         	2			#             

#       
temperature_control.hotend.heating_watch_temp_period      	40			#        xx .  .
temperature_control.hotend.heating_watch_temp_increase    	2			#  ,  C.

#    ,    . 
temperature_control.hotend.thermal_protection_period      	60			#           
temperature_control.hotend.thermal_protection_hysteresis  	5 #4			#   

temperature_control.hotend.runaway_heating_timeout      600     		# How long it can take to heat up, max is 2040 seconds.
temperature_control.hotend.runaway_cooling_timeout      0     			# How long it can take to cool down if temp is set lower, max is 2040 seconds
temperature_control.hotend.runaway_range                0    			# How far from the set temperature it can wander, max setting is 63?C


# PID configuration first hotend
temperature_control.hotend.p_factor         	21.0 #22.2             		# P ( proportional ) factor
temperature_control.hotend.i_factor         	1.029 #1.08            		# I ( integral ) factor
temperature_control.hotend.d_factor         	107 #114              		# D ( derivative ) factor
temperature_control.hotend.pidtype2            	true                	# Proportional on Measurement  not on Error!
temperature_control.hotend.pid_distance         30               		# PID distance -    
#temperature_control.hotend.max_pwm          	64               		# Max pwm, 64 is a good value if driving a 12v resistor with 24v.

# Second hotend configuration
#temperature_control.hotend2.enable            	false          			# Whether to activate this ( "hotend" ) module at all.
#temperature_control.hotend2.thermistor_pin    	a.1            			# Pin for the thermistor to read
#temperature_control.hotend2.heater_pin        	e.13           			# Pin that controls the heater
#temperature_control.hotend2.thermistor        	Semitec        			# Thermistor type
#temperature_control.hotend2.beta             	4375           			# or set the beta value
#temperature_control.hotend2.set_m_code        	104            			# M-code to set the temperature for this module
#temperature_control.hotend2.set_and_wait_m_code 109          			# M-code to set-and-wait for this module
#temperature_control.hotend2.designator        	T1             			# Designator letter for this module
#temperature_control.hotend2.max_temp          	315              		# Set maximum temperature - Will prevent heating above 300 by default
#temperature_control.hotend2.min_temp          	5                 		# Set minimum temperature - Will prevent heating below if set

# Safety control is enabled by default and can be overidden here, the values show the defaults
#temperature_control.hotend2.target_temp_safezone         	2			#    ,     

#       
#temperature_control.hotend2.heating_watch_temp_period      	20			#        xx .  .
#temperature_control.hotend2.heating_watch_temp_increase    	2			#  ,  C.

#    ,    . 
#temperature_control.hotend2.thermal_protection_period      	30			#           
#temperature_control.hotend2.thermal_protection_hysteresis  	4			#   

#temperature_control.hotend2.runaway_heating_timeout      600     		# How long it can take to heat up, max is 2040 seconds.
#temperature_control.hotend2.runaway_cooling_timeout      0     			# How long it can take to cool down if temp is set lower, max is 2040 seconds
#temperature_control.hotend2.runaway_range                0    			# How far from the set temperature it can wander, max setting is 63?C

#temperature_control.hotend2.p_factor          	80.2           			# P ( proportional ) factor
#temperature_control.hotend2.i_factor          	4.596          			# I ( integral ) factor
#temperature_control.hotend2.d_factor          	350            			# D ( derivative ) factor

#temperature_control.hotend2.max_pwm          	64              		# Max pwm, 64 is a good value if driving a 12v resistor with 24v.

# Heating bed configuration
temperature_control.bed.enable               	true             		# Whether to activate this ( "hotend" ) module at all.
temperature_control.bed.thermistor_pin       	a.2              		# Pin for the thermistor to read
temperature_control.bed.heater_pin           	c.8              		# Pin that controls the heater
temperature_control.bed.thermistor           	EPCOS100K    	  		# Thermistor type
#temperature_control.bed.beta                	4267             		# Or set the beta value
temperature_control.bed.set_m_code           	140              		# M-code to set the temperature for this module
temperature_control.bed.set_and_wait_m_code  	190              		# M-code to set-and-wait for this module
temperature_control.bed.designator           	B                		# Designator letter for this module
temperature_control.bed.pidtype2             	true 					# Fast PID type
temperature_control.bed.pid_distance         	6               		# PID distance -    
#temperature_control.bed.max_pwm              	70 
temperature_control.bed.max_temp             	120              		# Set maximum temperature - Will prevent heating above 300 by default

# Bang-bang ( simplified ) control
temperature_control.bed.bang_bang            	false            		# Set to true to use bang bang control rather than PID
temperature_control.bed.hysteresis           	0.5              		# Set to the temperature in degrees C to use as hysteresis

# PID Bed control
temperature_control.bed.p_factor          		178.3 #138.5  #80.2           			# P ( proportional ) factor
temperature_control.bed.i_factor          		20.256 #14.581 #4.596          			# I ( integral ) factor
temperature_control.bed.d_factor          		392 #329    #350            			# D ( derivative ) factor

# Safety control is enabled by default and can be overidden here, the values show the defaults
temperature_control.bed.target_temp_safezone         	2			#    ,     

#       
temperature_control.bed.heating_watch_temp_period      	60			#        "heating_watch_temp_increase" . .
temperature_control.bed.heating_watch_temp_increase    	2			#  ,  C.

#    ,    . 
temperature_control.bed.thermal_protection_period      	60			#           
temperature_control.bed.thermal_protection_hysteresis  	5			#   

temperature_control.bed.runaway_heating_timeout      	600     	# How long it can take to heat up, max is 2040 seconds.
temperature_control.bed.runaway_cooling_timeout      	0     		# How long it can take to cool down if temp is set lower, max is 2040 seconds
temperature_control.bed.runaway_range                	0    		# How far from the set temperature it can wander, max setting is 63?C



# automatically toggle a switch at a specified temperature
# useful to turn on a fan or water pump to cool the hotend
temperatureswitch.hotend.enable	             	true             		# enable this module
temperatureswitch.hotend.switch                 fan_h             		# select which MOSFET to use, must match a switch configuration (fan2 below)
temperatureswitch.hotend.designator             T                		# first character of the temperature control designator to use as the temperature sensor to monitor
temperatureswitch.hotend.threshold_temp         50.0             		# temperature to turn on (if rising) or off the switch
temperatureswitch.hotend.heatup_poll            5               		# poll heatup at 15 sec intervals
temperatureswitch.hotend.cooldown_poll          15               		# poll cooldown at 60 sec intervals

# Auto start the cooler of the electronics compartment
temperatureswitch.elc.enable	             	true             		# enable this module
temperatureswitch.elc.switch                 	fan2             		# select which MOSFET to use, must match a switch configuration (fan2 below)
temperatureswitch.elc.designator             	T                		# first character of the temperature control designator to use as the temperature sensor to monitor
temperatureswitch.elc.threshold_temp         	50.0             		# temperature to turn on (if rising) or off the switch
temperatureswitch.elc.heatup_poll            	5               		# poll heatup at 15 sec intervals
temperatureswitch.elc.cooldown_poll          	15               		# poll cooldown at 60 sec intervals


## Switch modules

# Switch module for servo control
#switch.servo.enable                            true             		# Enable this module
#switch.servo.input_on_command                  M280             		# M280 S7.5 would be midway
#switch.servo.input_off_command                 M281             		# Same as M280 S0 0% duty cycle, effectively off
#switch.servo.output_pin                        d.12             		# Must be a PWM capable pin
#switch.servo.output_type                       hwpwm            		# H/W pwm output settable with S parameter in the input_on_comand
##switch.servo.pwm_period_ms                    20               		# set period to 20ms (50Hz) default is 50Hz

# Switch module for HotEnd fan control
switch.fan_h.enable                          	true					# Enable this module
switch.fan_h.output_type                     	pwm						#
switch.fan_h.output_pin                      	e.13					#  .  Head2   Cherry3d
switch.fan_h.max_pwm                         	255						# Set max pwm for the pin default is 255
switch.fan_h.kickstart_time                  	100
switch.fan_h.ignore_on_halt  		    	 	true					#set to true to not set the failsafe or startup_value value when a HALT condition is triggered

# Switch module for model fan control
switch.fan0.enable                           	true             		# Enable this module
switch.fan0.input_on_command                 	M106             		# Command that will turn this switch on
switch.fan0.input_off_command                	M107             		# Command that will turn this switch off
switch.fan0.output_pin                       	b.4              		# Pin this module controls
switch.fan0.output_type                      	pwm              		# PWM output settable with S parameter in the input_on_comand
#switch.fan0.max_pwm                         	255              		# Set max pwm for the pin default is 255
switch.fan0.kickstart_time                   	100

# Switch module for box fan control
switch.fan1.enable                           	true             		# Enable this module
switch.fan1.input_on_command                 	M2106             		# Command that will turn this switch on
switch.fan1.input_off_command                	M2107             		# Command that will turn this switch off
switch.fan1.output_pin                       	e.9             		# Pin this module controls
switch.fan1.output_type                      	pwm              		# PWM output settable with S parameter in the input_on_comand
#switch.fan1.max_pwm                         	255              		# Set max pwm for the pin default is 255
#switch.fan1.kickstart_time                   	100
switch.fan1.ignore_on_halt  		    	 	true

# Switch module for electronics compartment fan control
switch.fan2.enable                           	true             		# Enable this module
switch.fan2.input_on_command                 	M1106             		# Command that will turn this switch on
switch.fan2.input_off_command                	M1107             		# Command that will turn this switch off
switch.fan2.output_pin                       	e.11             		# Pin this module controls
switch.fan2.output_type                      	pwm              		# PWM output settable with S parameter in the input_on_comand
switch.fan2.max_pwm                          	255              		# Set max pwm for the pin default is 255
switch.fan2.ignore_on_halt  		    	 	true

# Switch module for light control
switch.light.enable                          	true             		# Enable this module
switch.light.input_on_command                	M355           			# Command that will turn this switch on
#switch.light.input_off_command              	M355 s0           		# Command that will turn this switch off
switch.light.output_pin                      	b.5              		# Pin this module controls
switch.light.output_type                     	hwpwm            		# PWM output settable with S parameter in the input_on_comand
switch.light.pwm_period_ms                   	5


filament_detector.enable	        			false		 			#This module is activated only if this is set to true
filament_detector.encoder_pin	        		b.7	         			#This is the pin the encoder is connected to. Must be an interrupt pin (2.xx)  YMIN vse drugie ne poddergivaut preruwaniya
filament_detector.encoder_sec_pin       		nc               		#This is the pin the encoder is connected on the second extruder. Must be an interrupt pin (2.xx)
filament_detector.seconds_per_check				60               		#How many seconds between filament position checks, must be long enough for several pulses to be detected, but not too long
#filament_detector.pulses_per_mm        		0.5              		#The number of pulses the encoder produces for every millimeter of filament movement
filament_detector.minimal_mm_to_check			4


########################EndStop and Houming Config########################

## Endstops
endstops_enable                              	true             		# The endstop module is enabled by default and can be disabled here
corexy_homing                                	false            		# Set to true if homing on a hbot or corexy

alpha_min_endstop                            	c.14   	      			# Pin to read min endstop, add a ! to invert if endstop is NO connected to ground
#alpha_max_endstop                           	nc               		# Pin to read max endstop, uncomment this and comment the above if using max endstops
alpha_homing_direction                       	home_to_min      		# Or set to home_to_max and set alpha_max and uncomment the alpha_max_endstop
alpha_min                                    	0                		# This gets loaded as the current position after homing when home_to_min is set
alpha_max                                    	200              		# This gets loaded as the current position after homing when home_to_max is set

# Endstops home at their fast feedrate first, then once the endstop is found they home again at their slow feedrate for accuracy
alpha_fast_homing_rate_mm_s                  	50              		# Alpha/X fast homing feedrate in mm/second
alpha_slow_homing_rate_mm_s                  	30               		# Alpha/X slow homing feedrate in mm/second

beta_min_endstop                             	c.13		      		# Pin to read min endstop, add a ! to invert if endstop is NO connected to ground
#beta_max_endstop                            	nc     	      			# Pin to read max endstop, uncomment this and comment the above if using max endstops
beta_homing_direction                        	home_to_min      		# Or set to home_to_max and set alpha_max and uncomment the alpha_max_endstop
beta_min                                     	0                		# This gets loaded as the current position after homing when home_to_min is set
beta_max                                     	200              		# This gets loaded as the current position after homing when home_to_max is set
beta_fast_homing_rate_mm_s                   	50              		# Beta/Y  fast homing feedrate in mm/second
beta_slow_homing_rate_mm_s                   	30               		# Beta/Y  slow homing feedrate in mm/second

gamma_min_endstop                            	c.15v           		# Pin to read min endstop, add a ! to invert if endstop is NO connected to ground
#gamma_max_endstop                           	nc               		# Pin to read max endstop, uncomment this and comment the above if using max endstops
gamma_homing_direction                       	home_to_min      		# Or set to home_to_max and set alpha_max and uncomment the alpha_max_endstop
gamma_min                                    	0                		# This gets loaded as the current position after homing when home_to_min is set
gamma_max                                    	270              		# This gets loaded as the current position after homing when home_to_max is set
gamma_fast_homing_rate_mm_s                  	5               		# Gamma/Z fast homing feedrate in mm/second
gamma_slow_homing_rate_mm_s                  	2                		# Gamma/Z slow homing feedrate in mm/second

alpha_homing_retract_mm                      	5                		# Distance to retract from the endstop after it is hit for alpha/X
beta_homing_retract_mm                       	5                		# Distance to retract from the endstop after it is hit for beta/Y
gamma_homing_retract_mm                      	5                		# Distance to retract from the endstop after it is hit for gamma/Z

alpha_max_travel                             	210              		# Max travel in mm for alpha/X axis when homing
beta_max_travel                              	210              		# Max travel in mm for beta/Y axis when homing
gamma_max_travel                             	280              		# Max travel in mm for gamma/Z axis when homing

## Soft Endstops
soft_endstop.enable         					true         			# Enable soft endstops
soft_endstop.x_min          					0            			# Minimum X position
soft_endstop.x_max          					200          			# Maximum X position

soft_endstop.y_min          					0            			# Minimum Y position
soft_endstop.y_max          					200          			# Maximum Y position

soft_endstop.z_min          					0            			# Minimum Z position
soft_endstop.z_max          					270          			# Maximum Z position

soft_endstop.halt           					false         			# Whether to issue a HALT state when hitting a soft endstop (if false, will just ignore commands that would exceed the limit)

# Optional enable limit switches, actions will stop if any enabled limit switch is triggered (all are set for delta)
#alpha_limit_enable                          	true            		# Set to true to enable X min and max limit switches
#beta_limit_enable                           	true            		# Set to true to enable Y min and max limit switches
#gamma_limit_enable                          	true            		# Set to true to enable Z min and max limit switches

# Optional order in which axis will home, default is they all home at the same time,
# If this is set it will force each axis to home one at a time in the specified order
homing_order                                 	XYZ              		# X axis followed by Y then Z last
#move_to_origin_after_home                    	false            		# Move XY to 0,0 after homing
#endstop_debounce_count                       	100              		# Uncomment if you get noise on your endstops, default is 100
#endstop_debounce_ms                          	1                		# Uncomment if you get noise on your endstops, default is 1 millisecond debounce
#home_z_first                                 	false             		# Uncomment and set to true to home the Z first, otherwise Z homes after XY

# Z probe
#zprobe.enable                                	true#false          	# set to true to enable a zprobe
#zprobe.probe_pin                             	c.6         			# pin probe is attached to if NC remove the !
#zprobe.slow_feedrate                         	2.5           			# mm/sec probe feed rate
#zprobe.fast_feedrate                         	100           			# move feedrate mm/sec
#zprobe.return_feedrate                       	2
#zprobe.debounce_ms                           	25            			# set if noisy
#zprobe.probe_height                          	5             			# how much above bed to start probe
#zprobe.heads_sens_invert                     	true

leveling-strategy.rectangular-grid.enable 			false     			# The strategy must be enabled in the config, as well as the zprobe module.
#leveling-strategy.rectangular-grid.x_size 			200       			# size of bed in the X axis
#leveling-strategy.rectangular-grid.y_size 			200       			# size of bed in the Y axis
#leveling-strategy.rectangular-grid.size 			2 	 				# The size of the grid, for example, 7 causes a 7x7 grid with 49 points. 
																		# Must be an odd number.
#leveling-strategy.rectangular-grid.do_home 		false              
#leveling-strategy.rectangular-grid.probe_offsets 	45.8,0,0    		# Optional probe offsets from the nozzle or tool head
#leveling-strategy.rectangular-grid.save 			false    			# If the saved grid is to be loaded on boot then this must be set to true
#leveling-strategy.rectangular-grid.initial_height 	10       			# will move to Z10 before the first probe
#leveling-strategy.rectangular-grid.dampening_start 0.2      			# compensation decrease point (optional)
#leveling-strategy.rectangular-grid.height_limit 	1        			# no compensation to apply after this point (optional)
#mm_per_line_segment                                1        			# necessary for cartesians using rectangular-grid


########################Display Config########################
# setup for external sd card on the LCD board

panel.enable                                 	true             		# set to true to enable the panel code
panel.lcd                                    	viki2            		# set type of panel
panel.spi_channel                              	1              			# spi channel to use  spi_channel = 1  -> mosi = b.15; miso = b.14; sclk = b.13; 

panel.spi_cs_pin                               	a.7            			# spi chip select     LCD_EN
panel.a0_pin                                   	a.4            			# data/command select LCD_RS
panel.rst_pin		    	   					a.5            			# reset panel         LCD_D4
panel.contrast                                 	10             			#  0-
panel.reverse                                 	true            		#   

panel.encoder_a_pin                             e.0!^
panel.encoder_b_pin                             e.1^
panel.click_button_pin                          e.4!^
panel.buzz_pin                                  e.5
panel.system_sd_access                          true # false
#panel.show_diagnostic                          false

neopixel.enable			      					true

#panel.encoder_invert   						true
panel.timeroff                                  0


########################Gcode execution########################

#on_boot_gcode_enable   				true  
#on_boot_gcode   						/sd/go.g
after_suspend_gcode 					G91|G1_Z5_E-4|G90|G1_X50_Y10_F6000   				#     600 -  , m601.1   .
after_abort_gcode 						G91|G1_Z5_E-4|G90|G28_X_Y|M17|M107|M18	 			#    . ( / )
after_play_gcode 						M107|M18 											#    .


########################Driver Config########################

# X Axis Driver
simpledriver.drv1.enable	      				true
simpledriver.drv1.type                			uart220x
simpledriver.drv1.num    	      				1
simpledriver.drv1.uart_pin    	      			4  						#pin number on driver for uart //  pin 4 or 5 // 4=ms3 5=pdn // default 4
#simpledriver.drv1.GCONF               			0x000001C9 				# pdn_disable, microstep by register
#simpledriver.drv1.IHOLD_IRUN          			0x00041810 				# IHOLD=16/31 IRUN=24/31 IHOLDDELAY=4 (0100 0001 1000 0001 0000)
simpledriver.drv1.CHOPCONF                      0x10008103 				# marlin
#simpledriver.drv1.PWMCONF                      0xC10D1624 				# good
simpledriver.drv1.PWMCONF                       0xC40D0E24 				# marlin
#simpledriver.drv1.TPOWERDOWN          			0x00000014
#simpledriver.drv1.irun		      				24 						#
#simpledriver.drv1.ihold	      				24						#
simpledriver.drv1.rsense          				0.11
simpledriver.drv1.run_ma          				1100 					#   mA  
simpledriver.drv1.hold_ma         				600 					#   mA
simpledriver.drv1.microsteps      				16   					# 
simpledriver.drv1.TPWMTHRS        				0
simpledriver.drv1.shortprotect                  true

# Y Axis Driver
simpledriver.drv2.enable	      				true
simpledriver.drv2.type                			uart
simpledriver.drv2.num   	      				2
simpledriver.drv2.CHOPCONF                            0x10008103
simpledriver.drv2.PWMCONF                             0xC40D0E24
simpledriver.drv2.microsteps      				16						
simpledriver.drv2.rsense          				0.11
simpledriver.drv2.run_ma          				1100 					#   mA 
simpledriver.drv2.hold_ma         				600 					#   mA
simpledriver.drv2.TPWMTHRS        			        0
simpledriver.drv2.shortprotect                  true


# Z Axis Driver
simpledriver.drv3.enable	      				true
simpledriver.drv3.type                			uart
simpledriver.drv3.num   	      				3
simpledriver.drv3.PWMCONF                             0xC40D0E24
simpledriver.drv3.microsteps      				16
simpledriver.drv3.rsense          				0.11
simpledriver.drv3.run_ma          				900 					#   mA   
simpledriver.drv3.hold_ma         				400 					#   mA
simpledriver.drv3.TPWMTHRS        				0      					# block 2208 driver disable tmc bug
simpledriver.drv3.shortprotect                  true

# E0 Axis Driver
simpledriver.drv4.enable	      				true
simpledriver.drv4.type                 			uart
simpledriver.drv4.num   	      				4
simpledriver.drv4.microsteps      				16
simpledriver.drv4.rsense          				0.11
simpledriver.drv4.run_ma          				900 					#   mA 
simpledriver.drv4.hold_ma         				600 					#   mA
simpledriver.drv4.TPWMTHRS        				0
simpledriver.drv4.shortprotect                  true

# E1 Axis Driver
simpledriver.drv5.enable	      				false
simpledriver.drv5.type                			uart220x
simpledriver.drv5.num    	      				5
simpledriver.drv5.microsteps          			16



# plastic specific settings

preheat.head.ABS                    			230
preheat.bed.ABS                     			90

preheat.head.PLA                    			200
preheat.bed.PLA                     			70

preheat.head.Petg                   			220
preheat.bed.Petg                    			90

preheat.head.Wax                    			80
preheat.bed.Wax                     			0

#Cache USB Sector. v3.69
#sector_cache                        			0
keepalive_timeout 								0  						#   busy protocol M113

                                                  