Advertisement
Guest User

Nitram_Delta

a guest
Feb 20th, 2019
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 21.89 KB | None | 0 0
  1. ##################################################
  2. # Nitram delta aka anycubic kossel mini linear   #
  3. #        Spec.                                   #
  4. #        16 tooth pulleys                        #
  5. #        piezo probe                             #
  6. #        stepper cooling fan                     #
  7. #        led strips on heater01                  #
  8. #        tmc2130 over spi on all axes            #
  9. #        24v on VM (not that it matter for FW)   #
  10. #        Titan extruder @ 8 microsteps           #
  11. #        Rpi 3                                   #
  12. #        chamber heater is not implemented       #
  13. #        filament run out is not implemented     #
  14. #    E3d PT100 amplifier on aux board is     #
  15. #        dead but it worked like a charm         #
  16. #        Arduino NANO as auxboard        #
  17. #        Ther was a little short so the mosfet   #
  18. #    for the hotend fan died, so it's now    #
  19. #        moved to heater1                        #
  20. #    Leds are on aux board           #
  21. ##################################################
  22.  
  23.  
  24. ############################
  25. #    as seen from above    #
  26. #          [C(z)]          #
  27. #                          #
  28. #           y^             #
  29. #            |             #
  30. #           (z)-->x        #
  31. #                          #
  32. #                          #
  33. # [A(x)]            [B(y)] #
  34. #                          #
  35. ############################
  36.  
  37. # mcu ATmega2560
  38. # mcu auxboard NANO ATmega328P-MU
  39. # syntax to burn FW to Nano board
  40. # avrdude -carduino -patmega328p -P/dev/ttyUSB0 -b57600 -D -Uflash:w:out/klipper.elf.hex:i
  41.  
  42. #_____________________TRIGORILLA/NANO BOARD____________________________________#
  43.  
  44. #Main MCU TRIGORILLA
  45. [mcu]
  46. #  serial may need to be changed depending on initial setup
  47. #The general way to find a more stable USB serial port is to run ls -l /dev/serial/by-id/ from an ssh terminal
  48. serial: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0
  49. #otherwise try the USB like ttyUSB0
  50. #serial: /dev/ttyUSB0
  51.  
  52. pin_map: arduino
  53. #restart_method: command
  54.  
  55. # The "auxboard" micro-controller will be used to ADC temp sensor . NANO
  56. [mcu auxboard]
  57. serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
  58.  
  59. pin_map: arduino
  60.  
  61.  
  62. #_____________________STEPPER A________________________________________#
  63.  
  64. #  The stepper_a section describes the stepper controlling the front
  65. #  left tower (at 210 degrees). This section also controls the homing
  66. #  parameters (homing_speed, homing_retract_dist) for all towers.
  67.  
  68. [stepper_a]
  69. step_pin: ar54
  70. dir_pin: ar55
  71. enable_pin: !ar38
  72. step_distance: .010000
  73. endstop_pin: ^ar2
  74. homing_speed: 30
  75. #position_endstop: 275.0000
  76. #angle: 210.00000
  77.  
  78. #   Distance (in mm) between the nozzle and the bed when the nozzle is
  79. #   in the center of the build area and the endstop triggers. This
  80. #   parameter must be provided for stepper_a; for stepper_b and
  81. #   stepper_c this parameter defaults to the value specified for
  82. #   stepper_a.
  83. #arm_length: 218.0000
  84. #   Length (in mm) of the diagonal rod that connects this tower to the
  85. #   print head. This parameter must be provided for stepper_a; for
  86. #   stepper_b and stepper_c this parameter defaults to the value
  87. #   specified for stepper_a.
  88.  
  89. [tmc2130 stepper_a]
  90. cs_pin: ar4
  91. microsteps:16
  92. interpolate: True
  93. run_current:0.800
  94. hold_current:0.500
  95. sense_resistor: 0.110
  96. stealthchop_threshold: 0
  97. driver_IHOLDDELAY: 8
  98. driver_TPOWERDOWN: 0
  99. driver_BLANK_TIME_SELECT: 1
  100. driver_TOFF: 3
  101. driver_HEND: 7
  102. driver_HSTRT: 0
  103. driver_PWM_AUTOSCALE: True
  104. driver_PWM_FREQ: 1
  105. driver_PWM_GRAD: 4
  106. driver_PWM_AMPL: 128
  107. driver_SGT: 0
  108. #diag1_pin:
  109.  
  110. #_____________________STEPPER B________________________________________#
  111.  
  112. #  The stepper_b section describes the stepper controlling the front
  113. #  right tower (at 330 degrees).
  114. [stepper_b]
  115. step_pin: ar60
  116. dir_pin: ar61
  117. enable_pin: !ar56
  118. step_distance: .01000000
  119. endstop_pin: ^ar15
  120. #position_endstop: 275.00000
  121. #angle: 330.000000
  122. #arm_length: 218.0000
  123.  
  124. [tmc2130 stepper_b]
  125. cs_pin: ar5
  126. microsteps:16
  127. interpolate: True
  128. run_current:0.800
  129. hold_current:0.500
  130. sense_resistor: 0.110
  131. stealthchop_threshold: 0
  132. driver_IHOLDDELAY: 8
  133. driver_TPOWERDOWN: 0
  134. driver_BLANK_TIME_SELECT: 1
  135. driver_TOFF: 3
  136. driver_HEND: 7
  137. driver_HSTRT: 0
  138. driver_PWM_AUTOSCALE: True
  139. driver_PWM_FREQ: 1
  140. driver_PWM_GRAD: 4
  141. driver_PWM_AMPL: 128
  142. driver_SGT: 0
  143. #diag1_pin:
  144.  
  145. #_____________________STEPPER C________________________________________#
  146.  
  147. #  The stepper_c section describes the stepper controlling the rear
  148. #  tower (at 90 degrees).
  149.  
  150. [stepper_c]
  151. step_pin: ar46
  152. dir_pin: ar48
  153. enable_pin: !ar62
  154. step_distance: .010000
  155. endstop_pin: ^ar19
  156. #position_endstop: 275.000000
  157. #angle: 90.000000
  158. #arm_length: 218.0000
  159.  
  160. [tmc2130 stepper_c]
  161. cs_pin: ar6
  162. microsteps:16
  163. interpolate: True
  164. run_current:0.800
  165. hold_current:0.500
  166. sense_resistor: 0.110
  167. stealthchop_threshold: 0
  168. driver_IHOLDDELAY: 8
  169. driver_TPOWERDOWN: 0
  170. driver_BLANK_TIME_SELECT: 1
  171. driver_TOFF: 3
  172. driver_HEND: 7
  173. driver_HSTRT: 0
  174. driver_PWM_AUTOSCALE: True
  175. driver_PWM_FREQ: 1
  176. driver_PWM_GRAD: 4
  177. driver_PWM_AMPL: 128
  178. driver_SGT: 0
  179. #diag1_pin:
  180.  
  181. #_____________________EXTRUDER ________________________________________#
  182.  
  183. [extruder]
  184. step_pin: ar26
  185. dir_pin: !ar28
  186. enable_pin: !ar24
  187.  
  188. #step_distance: 0.00436718291 #  Titan @ 8 microsteps
  189. #step_distance: 0.00248483595 #  Titanextruder @ 16 microstep_old
  190. step_distance: 0.002183591 #  Titanextruder @ 16 microstep
  191. #step_distance: 0.001091796 #titan @ 32 microstep
  192. #step_distance: 0.010392849720 #anycubic kossel
  193.  
  194. nozzle_diameter: 0.400
  195. filament_diameter: 1.750
  196. heater_pin: ar10
  197. sensor_type: NTC 100K beta 3950 # China high temp
  198. #sensor_type: ATC Semitec 104GT-2 #e3d original
  199. sensor_pin: analog13
  200. #sensor_type: PT100 INA826
  201. #sensor_pin: auxboard:analog4
  202.  
  203. max_power: 1.0
  204. #adc_voltage: 5.0
  205. #   The ADC comparison voltage. This parameter is only valid when the
  206. #   sensor is an AD595 or "PT100 INA826". The default is 5 volts.
  207. smooth_time: 1.5
  208. #   A time value (in seconds) over which temperature measurements will
  209. #   be smoothed to reduce the impact of measurement noise. The default
  210. #   is 2 seconds.
  211.  
  212. control: pid
  213. #pid_Kp: 23.972
  214. #pid_Ki: 1.046
  215. #pid_Kd: 137.372
  216. #Tune your own pid
  217.  
  218. min_temp: 10
  219. max_temp: 340
  220. max_extrude_only_accel: 10000
  221. max_extrude_only_distance: 650.0
  222.  
  223. pressure_advance: 0.25
  224. pressure_advance_lookahead_time: 0.010000
  225. #  do not use pressure advance until you read about it and tune for it
  226. #  this is for 100mm/s or higher printer settings.
  227.  
  228. [tmc2130 extruder]
  229. cs_pin: ar11
  230. microsteps:16
  231. interpolate: True
  232. run_current:0.850
  233. hold_current:0.500
  234. sense_resistor: 0.110
  235. stealthchop_threshold: 25
  236. driver_IHOLDDELAY: 8
  237. driver_TPOWERDOWN: 0
  238. driver_BLANK_TIME_SELECT: 1
  239. driver_TOFF: 4
  240. driver_HEND: 7
  241. driver_HSTRT: 0
  242. driver_PWM_AUTOSCALE: True
  243. driver_PWM_FREQ: 1
  244. driver_PWM_GRAD: 4
  245. driver_PWM_AMPL: 128
  246. driver_SGT: 0
  247. #diag1_pin:
  248.  
  249. #_____________________HEATER_______________________________________#
  250.  
  251. [heater_bed]
  252. heater_pin: ar8
  253. #sensor_type: EPCOS 100K B57560G104F
  254. sensor_type: ATC Semitec 104GT-2
  255.  
  256. #sensor type can be different for your printer
  257. sensor_pin: analog14
  258. control: pid
  259. #  to add pid setting replace watermark term with PID and input settings below
  260. #   check extruder setup for example
  261. pid_Kp: 70.242
  262. pid_Ki: 1.620
  263. pid_Kd: 761.247
  264.  
  265. min_temp: 10
  266. max_temp: 130
  267.  
  268. # This is used as a overtemperature "safety" funktion so that the
  269. # heater element for the case heater don't get to hot,
  270. # if temp goes higher than 130 deg turn of power for the heater
  271. # Temperature-triggered cooling fans (one may define any number of
  272. # sections with a "temperature_fan" prefix). A "temperature fan" is a
  273. # fan that will be enabled whenever its associated sensor is above a
  274. # set temperature. By default, a temperature_fan has a shutdown_speed
  275. # equal to max_power.
  276. #[temperature_fan overtemp_case_heater]
  277. #pin: !auxboard: ar
  278. #max_power:1
  279. #shutdown_speed:1
  280. #cycle_time:
  281. #hardware_pwm:
  282. #kick_start_time:
  283. #   See the "fan" section in example.cfg for a description of the
  284. #   above parameters.
  285. #sensor_type: EPCOS 100K B57560G104F
  286. #sensor_pin: analog
  287. #   See the "heater" section for details about the sensor_type and
  288. #   sensor_pin parameters.
  289. #min_temp: 0
  290. #max_temp: 200
  291. #   The maximum range of valid temperatures (in Celsius) that the
  292. #   sensor must remain within. This controls a safety feature
  293. #   implemented in the micro-controller code - should the measured
  294. #   temperature ever fall outside this range then the micro-controller
  295. #   will go into a shutdown state. Set this range just wide enough so
  296. #   that reasonable temperatures do not result in an error. These
  297. #   parameters must be provided.
  298. #target_temp: 130.0
  299. #   A temperature (in Celsius) that will be the target temperature.
  300. #   The default is 40 degrees.
  301. #max_speed: 1.0
  302. #   The fan speed (expressed as a value from 0.0 to 1.0) that the fan
  303. #   will be set to when the sensor temperature exceeds the set value.
  304. #   The default is 1.0.
  305. #min_speed: 1.0
  306. #   The minimum fan speed (expressed as a value from 0.0 to 1.0) that
  307. #   the fan will be set to when the sensor temperature is the set
  308. #   value.  The default is 0.3.
  309. #control: watermark
  310. #   Control algorithm (either watermark or pid). This parameter must
  311. #   be provided.
  312. #max_delta: 2.0
  313.  
  314. # The heater_generic section is used to describe a custom/generic heater.
  315. # These behave the same as typical heaters (extruders, heated beds) and
  316. # can be configured as similarly.
  317. # However, a gcode_id must be supplied which is used for temperature reporting.
  318. # See notes on the SET_HEATER_TEMPERATURE command for setting the temperature.
  319. #[heater_generic my_case_heater]
  320. #gcode_id: C
  321. #    A mandatory parameter that is required for reporting the temperature
  322. #    through the M105 command.
  323. #heater_pin:!auxboard: ar
  324. #max_power:1
  325. #sensor_type:
  326. #sensor_pin: analog
  327. #pullup_resistor:
  328. #adc_voltage:
  329. #smooth_time:
  330. #control: watermark
  331. #pid_Kp:
  332. #pid_Ki:
  333. #pid_Kd:
  334. #pid_integral_max:
  335. #pwm_cycle_time:
  336. #min_extrude_temp:0
  337. #min_temp:0
  338. #max_temp:100
  339. #   See the example.cfg for the definition of the above parameters.
  340. #_____________________FANS ______________________________________________#
  341.  
  342. [heater_fan extruder_fan]
  343. pin: ar45
  344. heater: extruder
  345. heater_temp: 50.0
  346. fan_speed: 1.0
  347. shutdown_speed:1.0
  348.  
  349. # Print cooling fan (omit section if fan not present).
  350. [fan]
  351. pin: ar9
  352. #kick_start_time: 0.200
  353. # Controller cooling fan. A "controller fan" is a fan that will be
  354. # enabled whenever its associated heater or any configured stepper
  355. # driver is active. The fan will stop, whenever an idle_timeout is
  356. # reached to ensure no overheating will occur after deactivating a
  357. # watched component.
  358. shutdown_speed:1.0
  359.  
  360. [controller_fan]
  361. pin: ar7
  362. #max_power:
  363. shutdown_speed:1.0
  364. #cycle_time:
  365. #hardware_pwm:
  366. kick_start_time:0.200
  367. #   See the "fan" section in example.cfg for a description of the
  368. #   above parameters.
  369. idle_timeout:60
  370. #   The ammount of time (in seconds) after a stepper driver or heater
  371. #   was active and the fan should be kept running. The default
  372. #   is 30 seconds.
  373. #idle_speed:0.5
  374. #   The fan speed (expressed as a value from 0.0 to 1.0) that the fan
  375. #   will be set to when a heater or stepper driver was active and before
  376. #   the idle_timeout is reached. This must be greater or equal
  377. #   max_power. The default is max_power
  378. heater: extruder, heater_bed
  379. #   Name of the config section defining the heater that this fan is
  380. #   associated with. If a comma separated list of heater names is
  381. #   provided here, then the fan will be enabled when any of the given
  382. #   heaters are enabled. The default is "extruder".
  383.  
  384. #_____________________PRINTER_____________________________________________#
  385.  
  386. [printer]
  387. kinematics: delta
  388. #   This option must be "delta" for linear delta printers.
  389. max_velocity: 600
  390. #   Maximum velocity (in mm/s) of the toolhead relative to the
  391. #   print. This parameter must be specified default was 300.
  392. max_accel: 6000
  393. #   Maximum acceleration (in mm/s^2) of the toolhead relative to the
  394. #   print. This parameter must be specified default was 3000.
  395. max_z_velocity: 150
  396. #   For delta printers this limits the maximum velocity (in mm/s) of
  397. #   moves with z axis movement. This setting can be used to reduce the
  398. #   maximum speed of up/down moves (which require a higher step rate than
  399. #   other moves on a delta printer). The default is to use max_velocity for
  400. #   max_z_velocity.
  401. square_corner_velocity: 14.0
  402. #   The maximum velocity (in mm/s) that the toolhead may travel a 90
  403. #   degree corner at. A non-zero value can reduce changes in extruder
  404. #   flow rates by enabling instantaneous velocity changes of the
  405. #   toolhead during cornering. This value configures the internal
  406. #   centripetal velocity cornering algorithm; corners with angles
  407. #   larger than 90 degrees will have a higher cornering velocity while
  408. #   corners with angles less than 90 degrees will have a lower
  409. #   cornering velocity. If this is set to zero then the toolhead will
  410. #   decelerate to zero at each corner. The default is 5mm/s.
  411. minimum_z_position:-5.0
  412. #   The minimum Z position that the user may command the head to move
  413. #   to.  The default is 0.
  414. #delta_radius: 98.40000
  415. #   Radius (in mm) of the horizontal circle formed by the three linear
  416. #   axis towers. This parameter may also be calculated as
  417. #    delta_radius = smooth_rod_offset - effector_offset - carriage_offset
  418. #   This parameter must be provided.
  419.  
  420. #_____________________PROBE AND FANCY ALIGNMENT BITS_______________________#
  421.  
  422. [probe]
  423. pin: ^!ar18
  424. # Probe detection pin. This parameter must be provided.
  425. x_offset: 0.0
  426. #   The distance (in mm) between the probe and the nozzle along the
  427. #   x-axis. The default is 0.
  428. y_offset: 0.0
  429. #   The distance (in mm) between the probe and the nozzle along the
  430. #   y-axis. The default is 0.speed: 10.0
  431. z_offset: -0.200
  432. #   The Z height (in mm) of the head when the probe triggers.
  433. speed:30
  434. activate_gcode:
  435.    SET_PIN PIN=led VALUE=0
  436.    G4 P500
  437. #turn of led and wait ½ sec
  438. #   A list of G-Code commands (one per line; subsequent lines
  439. #   indented) to execute prior to each probe attempt. This may be
  440. #   useful if the probe needs to be activated in some way. Do not
  441. #   issue any commands here that move the toolhead (eg, G1). The
  442. #   default is to not run any special G-Code commands on activation.
  443. deactivate_gcode:
  444.    SET_PIN PIN=led VALUE=1
  445. #turn led back on
  446. #   A list of G-Code commands (one per line; subsequent lines
  447. #   indented) to execute after each probe attempt completes. Do not
  448. #   issue any commands here that move the toolhead. The default is to
  449. #   not run any special G-Code commands on deactivation.
  450.  
  451. [delta_calibrate]
  452. # The delta_calibrate section enables a DELTA_CALIBRATE extended
  453. # g-code command that can calibrate the tower endstop positions and
  454. # angles.
  455. radius: 75
  456. #   Radius (in mm) of the area that may be probed. This is typically
  457. #   the size of the printer bed. This parameter must be provided.
  458. speed: 50
  459. #   The speed (in mm/s) of non-probing moves during the
  460. #   calibration. The default is 50.
  461. horizontal_move_z: 5
  462. #   The height (in mm) that the head should be commanded to move to
  463. #   just prior to starting a probe operation. The default is 5.
  464. samples: 3
  465. sample_retract_dist: 5
  466.  
  467. #_____________________MACROS______________________________________#
  468.  
  469. [gcode_macro THE_START]
  470. gcode:
  471.     SET_PIN PIN=led VALUE=1
  472.     G28
  473.     M140 S{B}
  474.     M104 S150
  475.     G90
  476.     M117 HERE WE GO..
  477.     G28
  478.         M190 S{B}
  479.     M109 S150
  480.     set_delta_height
  481.     M117 READY..
  482.     G1 X-74 Y-43 Z50 F1000
  483.     M117 SET..
  484.     M104 S{H}
  485.     M109 S{H}
  486.     M117 GO.....
  487.     G92 E0
  488.     G1 X-44 Y-75 Z0.6 E3 F3000
  489.     M117 SQUIRTING...
  490.     G1 X0 Y-90 E10 F500
  491.     G1 X44 Y-75 Z0.45 E12 F500
  492.     G92 E0
  493.     G1 E-0.4 F500
  494.     G1 X87 Y-17 Z1 F8000
  495.     G1 Z5
  496.     M117 DOODELING...
  497.  
  498. [gcode_macro THE_END]
  499. gcode:
  500.     M117 TADA!!!...
  501.     M107
  502.     M220 S100
  503.     G1 E-4 F500
  504.     M104 S0
  505.     M140 S0
  506.     G91
  507.     G1 Z10 F8000
  508.     G90
  509.     G1 X0 Y0 F8000
  510.     G28
  511.     UNLOAD
  512.     M84    
  513.     M117 All done. BYE...
  514.     SET_PIN PIN=led VALUE=0
  515.  
  516. [gcode_macro set_delta_height]
  517. gcode:
  518.     M117 SET_DELTA_HEIGHT  
  519.     G90
  520.     G0 F4000 X0 Y0 Z10
  521.     PROBE
  522.     G0 F2000 Z3
  523.     PROBE
  524.     G92 Z-0.20
  525.     G0 F4000 Z10
  526.  
  527. [gcode_macro micro_up]
  528. gcode:
  529.     SET_GCODE_OFFSET Z_ADJUST=0.05
  530.  
  531. [gcode_macro micro_down]
  532. gcode:
  533.     SET_GCODE_OFFSET Z_ADJUST=-0.05
  534.  
  535. [gcode_macro endstop_phase]
  536. gcode:
  537.     G90
  538.     G28
  539.     ENDSTOP_PHASE_CALIBRATE
  540.     G1 Z200 F2000
  541.     G28
  542.     G1 Z180 Y70 F2000
  543.     G28
  544.     G1 Z220 X70 F2000
  545.     G28
  546.     G1 Z210 Y-55 F2000
  547.     G28
  548.     G1 Z150 X-45 F2000
  549.     G28
  550.     G1 Z200 X-20 Y-45 F2000
  551.     G28
  552.     ENDSTOP_PHASE_CALIBRATE STEPPER=stepper_a
  553.     ENDSTOP_PHASE_CALIBRATE STEPPER=stepper_b
  554.     ENDSTOP_PHASE_CALIBRATE STEPPER=stepper_c
  555.     SAVE_CONFIG
  556.  
  557. [gcode_macro tmc_dump]
  558. gcode:
  559.         DUMP_TMC STEPPER=stepper_a
  560.         DUMP_TMC STEPPER=stepper_b
  561.         DUMP_TMC STEPPER=stepper_c
  562.         DUMP_TMC STEPPER=extruder
  563.  
  564. [gcode_macro G27]
  565. gcode:
  566.     PARK_MACRO
  567.  
  568. [gcode_macro PARK_MACRO]
  569. default_parameter_X: 0
  570. default_parameter_Y: -85
  571. default_parameter_Z: 30
  572. gcode:
  573.         M117 PARKING..
  574.         G91
  575.         G1 E-3.14 F1500
  576.         G1 Z{Z}
  577.     G90
  578.     G1 X{X} Y{Y} F3000
  579.    
  580. [gcode_macro UNLOAD]
  581. gcode:
  582.     G91
  583.         G1 E5.0 F1200
  584.         G1 E3.0 F1600
  585.         G1 E-13.14 F7000
  586.     G1 E-540 F3000
  587.     G90
  588.        
  589. [gcode_macro M600]
  590. gcode:
  591.     PAUSE_MACRO
  592.     UNLOAD
  593.  
  594. [gcode_macro PAUSE_MACRO]
  595. gcode:
  596.     PAUSE
  597.     PARK_MACRO
  598.    
  599.  
  600. [gcode_macro PURGE]
  601. gcode:
  602.         M117 PURGING..
  603.         G91
  604.         G1 E45.0 F250
  605.         G90
  606.        
  607. [gcode_macro LOAD_FILAMENT]
  608. gcode:
  609.         M117  LOADING...
  610.         G91
  611.         G1 E25.0 F1000
  612.         G1 E435 F2500
  613.         G4 P900
  614.         G1 E45.0 F250
  615.         G90
  616.  
  617. [gcode_macro RESUME_MACRO]
  618. gcode:
  619.         M117  RESUMING...
  620.         RESUME
  621.  
  622. #_____________________BITS AND BOBS______________________________________#
  623.  
  624. # filament run out sensor
  625. # pin ar14
  626.  
  627. # Manual steppers (one may define any number of sections with a
  628. # "manual_stepper" prefix). These are steppers that are controlled by
  629. # the MANUAL_STEPPER g-code command. For example: "MANUAL_STEPPER
  630. # STEPPER=my_stepper MOVE=10 SPEED=5". See the docs/G-Codes.md file
  631. # for a description of the MANUAL_STEPPER command. The steppers are
  632. # not connected to the normal printer kinematics.
  633. #[manual_stepper camera_stepper]
  634. #E1 stepper
  635. #step_pin: ar36
  636. #dir_pin: ar34
  637. #enable_pin: !ar30
  638. #step_distance: 0.00021875
  639. #   See the "[stepper_x]" section in example.cfg for a description of
  640. #   these parameters.
  641. #endstop_pin: ^ar3
  642. #   X-min
  643. #position_endstop: 0
  644. #position_max: 400
  645. #   Endstop switch detection pin. If specified, then one may perform
  646. #   "homing moves" by adding a STOP_ON_ENDSTOP parameter to
  647. #   MANUAL_STEPPER movement commands.
  648.  
  649. # Pause/Resume functionality with support of position capture and restore
  650. [pause_resume]
  651. recover_velocity: 200
  652. #  When capture/restore is enabled, the speed at which to return to
  653. #  the captured position (in mm/s).  Default is 50.0 mm/s.
  654. #  paste "unknownCommandsNeedAck: true" in  ~/.octoprint/config.yaml
  655. ######################################
  656. #                                    #
  657. #     serial:                        #
  658. #   additionalPorts:             #
  659. #   - /tmp/printer               #
  660. #   baudrate: 250000             #
  661. #   disconnectOnErrors: false    #
  662. #   logPositionOnCancel: true    #
  663. #   port: /tmp/printer           #
  664. #   unknownCommandsNeedAck: true #
  665. #                                    #
  666. ######################################
  667.  
  668. # Reprap "2004" display
  669. [display]
  670. lcd_type: hd44780
  671. rs_pin: ar16
  672. e_pin: ar17
  673. d4_pin: ar23
  674. d5_pin: ar25
  675. d6_pin: ar27
  676. d7_pin: ar29
  677. encoder_pins: ^ar31, ^ar33
  678. click_pin: ^!ar35
  679. kill_pin: ^!ar41
  680.  
  681.  
  682. [output_pin led]
  683. pin = !auxboard: ar10 #ar45
  684. #Use The CASElight pin with "SET_PIN PIN=led VALUE=x(1=ON, 0=OFF)"
  685.  
  686. [output_pin redled]
  687. pin =!auxboard:ar7
  688. #Use The redled pin with "SET_PIN PIN=redled VALUE=x(1=ON, 0=OFF)"
  689.  
  690.  
  691. # A virtual sdcard may be useful if the host machine is not fast
  692. # enough to run OctoPrint well. It allows the Klipper host software to
  693. # directly print gcode files stored in a directory on the host using
  694. # standard sdcard G-Code commands (eg, M24).
  695. [virtual_sdcard]
  696. path: ~/.octoprint/uploads/
  697. #   The path of the local directory on the host machine to look for
  698. #   g-code files. This is a read-only directory (sdcard file writes
  699. #   are not supported). One may point this to OctoPrint's upload
  700. #   directory (generally ~/.octoprint/uploads/ ). This parameter must
  701. #   be provided.
  702.  
  703. # Stepper phase adjusted endstops. To use this feature, define a
  704. # config section with an "endstop_phase" prefix followed by the name
  705. # of the corresponding stepper config section. This feature can
  706. # improve the accuracy of endstop switches. Add a bare
  707. # "[endstop_phase]" declaration to
  708. # enable the ENDSTOP_PHASE_CALIBRATE command.
  709. [endstop_phase]
  710. #   This specifies the number of phases of the given stepper motor
  711. #   driver (which is the number of micro-steps multiplied by four).
  712. #   This setting is automatically determined if one uses TMC2130,
  713. #   TMC2208, TMC2224 or TMC2660 drivers with run-time configuration.
  714. #   Otherwise, this parameter must be provided.
  715.  
  716. #_____________________SLIC3R PE SETTINGS______________________________________#
  717.  
  718.  
  719. ####START CODE SLIC3R PE
  720. # THE_START B=[first_layer_bed_temperature] H=[first_layer_temperature]
  721. # M140 S[first_layer_bed_temperature]  ; set bed temperature
  722. # M104 S[first_layer_temperature] ; set temperature
  723.  
  724. ###BEFORE LAYER CHANGE
  725. # M117 LAYER # [layer_num]  @ [layer_z]mm
  726. # ;nu byter jag till lager [layer_z]
  727. # ;{if layer_num == 7}M104 S215{endif};SET A NEW HOTEND TEMP AT A SPECIFIC LAYER remove ;
  728.  
  729. ###AFTER LAYER CHANGE
  730. # ;nu har jag bytt till lager [layer_z]
  731. # ;{if layer_z == 7.8}M600{endif}; CHANGE FILAMENT AT A SPECIFIC LAYER remove ;
  732. # M117 LAYER  #[layer_num] @ [layer_z]mm
  733.  
  734. ##END CODE SLIC3R PE
  735. # THE_END
  736.  
  737.  
  738. # Delta max build height 275.62mm (radius tapered above 251.93mm)
  739. # Delta max build radius 99.58mm (moves slowed past 108.94mm and 117.23mm)
  740. # Extruder max_extrude_ratio=0.266081
  741.  
  742. #*# <---------------------- SAVE_CONFIG ---------------------->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement