#This file is only suitable for TORNADOSMT_V2
#Author: Alan
#Version:V2.5

#------------------------------------------#
endstop.maxz.homing_position       -17.925 # Here is the Z-axis balance value.
#------------------------------------------#

# Basic motion configuration
default_feed_rate               5000
default_seek_rate               5000
mm_per_arc_segment              0.0
mm_max_arc_error                0.01

# Planner module configuration : Look-ahead and acceleration configuration
planner_queue_size                           48 
acceleration                                 6000 
z_acceleration                               15000
acceleration_ticks_per_second                1000 
junction_deviation                           0.005
      
# Stepper module configuration
microseconds_per_step_pulse                  1
base_stepping_frequency                      100000
arm_solution                                 corexy

# X axis
alpha_steps_per_mm                 80
alpha_step_pin                     2.2
alpha_dir_pin                      2.3
alpha_en_pin                       2.1
alpha_current                      1 
x_axis_max_speed                   120000
alpha_max_rate                     120000
alpha_acceleration                 8000

# Y axis
beta_steps_per_mm         	       80
beta_step_pin                      0.19
beta_dir_pin                       0.20
beta_en_pin                        2.8
beta_current                       1
y_axis_max_speed                   120000
beta_max_rate                      120000
beta_acceleration                  8000

# Z axis
gamma_steps_per_mm                 8.8888
gamma_step_pin                     0.22
gamma_dir_pin                      2.11!
gamma_en_pin                       0.21
gamma_current                      1
z_axis_max_speed                   200000
gamma_max_rate                     200000
gamma_acceleration                 15000

# A axis）
delta_steps_per_mm                 17.7777
delta_step_pin                     2.13
delta_dir_pin                      0.11
delta_en_pin                       2.12o
delta_current                      1
a_axis_max_speed                   200000
delta_max_rate                     200000
delta_acceleration                 10000

# B axis
epsilon_steps_per_mm               17.7777
epsilon_step_pin                   1.9
epsilon_dir_pin                    1.14
epsilon_en_pin                     0.10
epsilon_current                    1 
b_axis_max_speed                   200000
epsilon_max_rate                   200000
epsilon_acceleration               10000.0

corexy_homing                      true 

endstop.maxx.enable                true
endstop.maxx.limit_enable          false
endstop.maxx.pin                   1.29
endstop.maxx.axis                  X 
endstop.maxx.homing_direction      home_to_max
endstop.maxx.homing_position       452 
endstop.maxx.max_travel            452
endstop.maxx.fast_rate             50
endstop.maxx.slow_rate             10
endstop.maxx.retract               5 

endstop.maxy.enable                true
endstop.maxy.limit_enable          false
endstop.maxy.pin                   1.27
endstop.maxy.axis                  Y 
endstop.maxy.homing_direction      home_to_max
endstop.maxy.homing_position       454
endstop.maxy.max_travel            454
endstop.maxy.fast_rate             50
endstop.maxy.slow_rate             10
endstop.maxy.retract               5

endstop.maxz.enable                true
endstop.maxz.release_first 	       true
endstop.maxz.limit_enable          false
endstop.maxz.pin                   1.25
endstop.maxz.axis                  Z
endstop.maxz.homing_direction      home_to_max

endstop.maxz.max_travel            70 
endstop.maxz.fast_rate             50   
endstop.maxz.slow_rate             25
endstop.maxz.retract               5

homing_order                       ZYX
move_to_origin_after_home          false 
home_z_first                       true

##-------------------------------------------------------------------
temperature_control.NA.enable            true
temperature_control.NA.thermistor_pin    0.23
temperature_control.NA.thermistor        EPCOS100K
temperature_control.NA.designator        TA 
temperature_control.NB.enable            true
temperature_control.NB.thermistor_pin    0.24
temperature_control.NB.thermistor        EPCOS100K
temperature_control.NB.designator        TB 
#temperature_control.ST.enable           true
#temperature_control.ST.thermistor_pin   0.25
#temperature_control.ST.thermistor       EPCOS100K
#temperature_control.ST.designator       TS 


switch.n1_vac.enable                     true
switch.n1_vac.input_on_command           M800
switch.n1_vac.input_off_command          M801
switch.n1_vac.output_pin                 1.28
switch.n1_vac.output_type                digital

switch.n2_vac.enable                     true
switch.n2_vac.input_on_command           M802
switch.n2_vac.input_off_command          M803
switch.n2_vac.output_pin                 1.26
switch.n2_vac.output_type                digital

switch.bottom_cam_lights.enable              true
switch.bottom_cam_lights.input_on_command    M806
switch.bottom_cam_lights.input_off_command   M807
switch.bottom_cam_lights.output_pin          1.24
switch.bottom_cam_lights.output_type         digital

switch.top_cam_lights.enable                 true
switch.top_cam_lights.input_on_command       M804
switch.top_cam_lights.input_off_command      M805
switch.top_cam_lights.output_pin             2.4
switch.top_cam_lights.output_type            digital

switch.vac_pump.enable                       true
switch.vac_pump.input_on_command             M808
switch.vac_pump.input_off_command            M809
switch.vac_pump.output_pin                   2.5
switch.vac_pump.output_type                  digital

switch.Blanker-Red.enable                    true
switch.Blanker-Red.input_on_command          M812
switch.Blanker-Red.input_off_command         M813
switch.Blanker-Red.output_pin                2.6
switch.Blanker-Red.output_type               digital

switch.Blanker-Green.enable                  true
switch.Blanker-Green.input_on_command        M814
switch.Blanker-Green.input_off_command       M815
switch.Blanker-Green.output_pin              2.7
switch.Blanker-Green.output_type             digital

switch.Blanker-Yellow.enable                 true
switch.Blanker-Yellow.input_on_command       M816
switch.Blanker-Yellow.input_off_command      M817
switch.Blanker-Yellow.output_pin             1.4
switch.Blanker-Yellow.output_type            digital

uart0.baud_rate                              115200

second_usb_serial_enable                     false

kill_button_enable                           true
kill_button_pin                              4.29
kill_button_toggle_enable                    true

play_led_pin                                 4.28

msd_disable                                  false 

currentcontrol_module_enable                 false
