#Не более 132 символов в строке

arm_solution linear_delta     #Активация delta-кинематики

#-------Основные параметры
alpha_steps_per_mm				160		# Шагов/мм, X
beta_steps_per_mm				160		# Шагов/мм, Y
gamma_steps_per_mm				160		# Шагов/мм, Z
extruder.hotend.steps_per_mm			186		# Шагов/мм, экструдер
								#в Marlin: define DEFAULT_AXIS_STEPS_PER_UNIT {80*2,80*2,80*2,93}// 1/32 steps	 

arm_length					199		# Длина тяги
								#в Marlin: define DELTA_DIAGONAL_ROD 199.0
arm_radius					91.5		#
								#в Marlin: define DELTA_RADIUS (DELTA_SMOOTH_ROD_OFFSET-DELTA_EFFECTOR_OFFSET-DELTA_CARRIAGE_OFFSET+0.82)
								#Если линза выпуклая - увеличиваем	
gamma_max					228		#223 230.4 присваивается при срабатывании концевиков
#-------Настройка тока моторов
# В G2S стоят Nema 17 42SHD0217-24B
alpha_current					0.8
beta_current					0.8
gamma_current					0.8
delta_current					0.8		#Тока мотора экструдера, в G2S стоит 42HSC8402-25B
#-------Настройка пинов
alpha_dir_pin					0.5!
beta_dir_pin					0.11!
gamma_dir_pin					0.20!
extruder.hotend.dir_pin				0.22!
#-------Настройка сети
network.ip_address                192.168.100.25
network.ip_mask                   255.255.255.0
network.ip_gateway                192.168.100.1


#--------Другие параметры
default_feed_rate				30000		# Скорость рабочего хода по умолчанию ( mm/мин) G1/G2/G3 moves
default_seek_rate				30000		# Скорость холостого  хода ( mm/мин ) for G0 moves
								#в Marlin: DEFAULT_MAX_FEEDRATE {600, 600, 600, 45} //(mm/sec)

acceleration					3000		# мм/с2
junction_deviation				0.05		# мм, раньше в Marlin: max_jerk 
                                                             

x_axis_max_speed				30000		# mm/min
y_axis_max_speed				30000		# mm/min
z_axis_max_speed				30000		# mm/min

alpha_max_rate					30000.0		# Должно быть равным x_axis_max_speed
beta_max_rate					30000.0		# Должно быть равным y_axis_max_speed 
gamma_max_rate					30000.0		# Должно быть равным z_axis_max_speed

extruder.hotend.default_feed_rate		600		# Скорость подачи по умолчанию( mm/мин)
extruder.hotend.acceleration			500		# Ускорение
extruder.hotend.max_speed			50		# mm/s

alpha_max_endstop				1.25^
beta_max_endstop				1.27^
gamma_max_endstop				1.29^
gamma_min_endstop				nc		# normally 1.28. Change to nc to prevent conflict

extruder.hotend.enable				true		
extruder.hotend.step_pin			2.3		
extruder.hotend.en_pin				0.21		

temperature_control.hotend.enable		true
temperature_control.hotend.thermistor_pin	0.24		# TH2 is P0.24 - Hotend
temperature_control.hotend.heater_pin		2.7
#temperature_control.hotend.thermistor		RRRF100K
temperature_control.hotend.set_m_code		104
temperature_control.hotend.set_and_wait_m_code	109
temperature_control.hotend.designator		T
#temperature_control.hotend.beta		3950   		# set beta for thermistor
temperature_control.hotend.rt_curve		20,124973,150,1721.5,245,250.7
temperature_control.hotend.p_factor		45.2		# permanently set the PID values after an auto pid
temperature_control.hotend.i_factor		3.850		#
temperature_control.hotend.d_factor		133		#
temperature_control.hotend.max_pwm		255		# max pwm, 64 is a good value if driving a 12v resistor with 24v.
#temperature_control.hotend.i_max		240
#--------Параметры для второго экструдера

#extruder.hotend2.enable			true
#extruder.hotend2.steps_per_mm			90
#extruder.hotend2.default_feed_rate		600
#extruder.hotend2.max_speed			50		# mm/s
#extruder.hotend2.step_pin			2.8
#extruder.hotend2.dir_pin			2.13
#extruder.hotend2.en_pin			4.29
#epsilon_current				1.2

#temperature_control.hotend2.enable		true
#temperature_control.hotend2.thermistor_pin	0.25
#temperature_control.hotend2.heater_pin		2.6
#temperature_control.hotend2.thermistor		RRRF100K
#temperature_control.hotend2.set_m_code		104
#temperature_control.hotend2.set_and_wait_m_code	109
#temperature_control.hotend2.designator		T1




#Не вносить изменений, если не уверен


mm_per_arc_segment				0.5		# Arcs are cut into segments ( lines ), this is the length for
								# these segments.  Smaller values mean more resolution,
								# higher values mean faster computation

delta_segments_per_second			100		# for deltas only same as in Marlin/Delta, set to 0 to disable
								# and use mm_per_line_segment

planner_queue_size				32		# DO NOT CHANGE THIS UNLESS YOU KNOW EXACTLY WHAT YOU ARE DOING
microseconds_per_step_pulse			1		# Duration of step pulses to stepper drivers, in microseconds
base_stepping_frequency				100000		# Base frequency for stepping, higher gives smoother movement
acceleration_ticks_per_second			1000		# Number of times per second the speed is updated

alpha_step_pin					2.0		# Pin for alpha stepper step signal
alpha_en_pin					0.4		# Pin for alpha enable pin
beta_step_pin					2.1		# Pin for beta stepper step signal
beta_en_pin					0.10		# Pin for beta enable
gamma_step_pin					2.2		# Pin for gamma stepper step signal
gamma_en_pin					0.19		# Pin for gamma enable

uart0.baud_rate					115200		# Baud rate for the default hardware serial port
second_usb_serial_enable			true		# This enables a second usb serial port (to have both pronterface
								# and a terminal connected)
pause_button_enable				true		# Pause button enable

laser_module_enable				false		# Whether to activate the laser module at all. All configuration is
								# ignored if false.

# Кровать
temperature_control.bed.enable			true		#
temperature_control.bed.thermistor_pin		0.23		# TH1 is P0.23 - Hot-bed 
temperature_control.bed.heater_pin		2.5		#
#temperature_control.bed.thermistor		RRRF100K	# see http://smoothieware.org/temperaturecontrol#toc5
temperature_control.bed.rt_curve		20,124973,150,1721.5,245,250.7

temperature_control.bed.set_m_code		140		#
temperature_control.bed.set_and_wait_m_code	190		#
temperature_control.bed.designator		B		#

#temperature_control.bed.bang_bang		false		# set to true to use bang bang control rather than PID
#temperature_control.bed.hysteresis		2.0		# set to the temperature in degrees C to use as hysteresis
								# when using bang bang

# Кулер
switch.fan.enable				true		#
switch.fan.input_on_command			M106		#
switch.fan.input_off_command			M107		#
switch.fan.output_pin				2.4		#
switch.fan.output_type				pwm		# pwm output settable with S parameter in the input_on_comand

# Концевики
endstops_enable					true		# the endstop module is enabled by default and can be disabled here
delta_homing					true		# forces all three axis to home a the same time regardless of
								# what is specified in G28
alpha_min_endstop				nc		#
alpha_homing_direction				home_to_max	# Home up
alpha_max					0		# Для Delta должно оставаться 0
beta_min_endstop				nc		#
beta_homing_direction				home_to_max	#
beta_max					0		# Для Delta должно оставаться 0
gamma_min_endstop				nc		#
gamma_homing_direction				home_to_max	#

alpha_fast_homing_rate_mm_s			80		# homing feedrates in mm/second
beta_fast_homing_rate_mm_s			80		#
gamma_fast_homing_rate_mm_s			80		#
alpha_slow_homing_rate_mm_s			20		#
beta_slow_homing_rate_mm_s			20		#
gamma_slow_homing_rate_mm_s			20

alpha_homing_retract_mm				5		# retract/bounce distance after homing in mm
beta_homing_retract_mm				5		#
gamma_homing_retract_mm				5 		#

alpha_trim					0		# software trim for alpha stepper endstop (in mm)
beta_trim					0		# software trim for beta stepper endstop (in mm)
gamma_trim					0		# software trim for gamma stepper endstop (in mm)

#endstop_debounce_count				100		# uncomment if you get noise on your endstops

pause_button_enable				true		#


# Настройки LCD 12864
panel.enable					false		# set to true to enable the panel code
panel.lcd					reprap_discount_glcd
panel.spi_channel				0		# spi channel to use	; GLCD EXP1 Pins 3,5 (MOSI, SCLK)
panel.spi_cs_pin				0.16		# spi chip select	; GLCD EXP1 Pin 4
panel.encoder_a_pin				3.25!^		# encoder pin		; GLCD EXP2 Pin 3
panel.encoder_b_pin				3.26!^		# encoder pin		; GLCD EXP2 Pin 5
panel.click_button_pin				1.30!^		# click button		; GLCD EXP1 Pin 2
panel.buzz_pin					1.31		# pin for buzzer		; GLCD EXP1 Pin 1
panel.back_button_pin				2.11!^		# back button		; GLCD EXP2 Pin 8 or
panel.external_sd				true		# set to true if there is an extrernal sdcard on the panel
panel.external_sd.spi_channel			1		# set spi channel the sdcard is on
panel.external_sd.spi_cs_pin			0.28		# set spi chip select for the sdcard (or any spare pin)
panel.external_sd.sdcd_pin			0.27!^		# sd detect signal (set to nc if no sdcard detect) (or any spare pin)

panel.menu_offset				1		# some panels will need 1 here
panel.alpha_jog_feedrate			6000		# x jogging feedrate in mm/min
panel.beta_jog_feedrate				6000		# y jogging feedrate in mm/min
panel.gamma_jog_feedrate			200		# z jogging feedrate in mm/min

panel.hotend_temperature			185		# temp to set hotend when preheat is selected
panel.bed_temperature				60		# temp to set bed when preheat is selected

# Пользовательские функции
# Example of a custom menu entry, which will show up in the Custom entry.
# NOTE _ gets converted to space in the menu and commands, | is used to separate multiple commands
custom_menu.power_on.enable			true		#
custom_menu.power_on.name			Power_on	#
custom_menu.power_on.command			M80		#

custom_menu.power_off.enable			true		#
custom_menu.power_off.name			Power_off	#
custom_menu.power_off.command			M81		#

currentcontrol_module_enable			true		#
return_error_on_unhandled_gcode			false		#

# Настройки сети
network.enable					true		# enable the ethernet network services
network.webserver.enable			true		# enable the webserver
network.telnet.enable				false		# enable the telnet server

# Управление BLTOUCH (не работает на прошивке MakerBase)
switch.servo.enable                            true             #
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                        1.23             # ШИМ-пин для управления соленоидом сенсора
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

#-----Параметры автовыравнивания
zprobe.enable					true		# set to true to enable a zprobe
zprobe.probe_pin				1.28!^		# pin probe is attached to if NC remove the !
zprobe.slow_feedrate				5		# mm/sec probe feed rate
zprobe.fast_feedrate				100		# move feedrate mm/sec
zprobe.probe_height				5		# how much above bed to start probe
leveling-strategy.delta-calibration.enable	true		# basic delta calibration
leveling-strategy.delta-calibration.radius	70		# the probe radius
#the initial height above the bed we stop the intial move down after home to find the bed
#this should be a height that is enough that the probe will not hit the bed
#and is an offset from gamma_max (can be set to 0 if gamma_max takes into account the probe offset)
leveling-strategy.delta-calibration.initial_height 10		# height above bed to stop initial move
#---------------------------------------------------------------------
leveling-strategy.delta-grid.enable		true
leveling-strategy.delta-grid.radius		70
leveling-strategy.delta-grid.size		7
leveling-strategy.delta-grid.do_home		true

leveling-strategy.delta-grid.save		true
leveling-strategy.delta-grid.initial_height	10
#leveling-strategy.delta-grid.probe_offsets	0,36.87,0		# probe offsets x,y,z  (Z should always be 0)
