Guest User

Untitled

a guest
Apr 5th, 2022
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.32 KB | None | 0 0
  1. # This file defines the default layout of the printer's menu.
  2.  
  3. # It is not necessary to edit this file to change the menu. Instead,
  4. # one may override any of the sections defined here by defining a
  5. # section with the same name in the main printer.cfg config file.
  6.  
  7. ### DEFAULT MENU ###
  8. # Main
  9. # + Tune
  10. # + Speed: 000%
  11. # + Flow: 000%
  12. # + Offset Z:00.00
  13. # + OctoPrint
  14. # + Pause printing
  15. # + Resume printing
  16. # + Abort printing
  17. # + SD Card
  18. # + Start printing
  19. # + Resume printing
  20. # + Pause printing
  21. # + Cancel printing
  22. # + ... (files)
  23. # + Control
  24. # + Home All
  25. # + Home Z
  26. # + Home X/Y
  27. # + Steppers off
  28. # + Fan: OFF
  29. # + Fan speed: 000%
  30. # + Lights: OFF
  31. # + Lights: 000%
  32. # + Move 10mm
  33. # + Move X:000.0
  34. # + Move Y:000.0
  35. # + Move Z:000.0
  36. # + Move E:+000.0
  37. # + Move 1mm
  38. # + Move X:000.0
  39. # + Move Y:000.0
  40. # + Move Z:000.0
  41. # + Move E:+000.0
  42. # + Move 0.1mm
  43. # + Move X:000.0
  44. # + Move Y:000.0
  45. # + Move Z:000.0
  46. # + Move E:+000.0
  47. # + Temperature
  48. # + Ex0:000 (0000)
  49. # + Ex1:000 (0000)
  50. # + Bed:000 (0000)
  51. # + Preheat PLA
  52. # + Preheat all
  53. # + Preheat hotend
  54. # + Preheat hotbed
  55. # + Preheat ABS
  56. # + Preheat all
  57. # + Preheat hotend
  58. # + Preheat hotbed
  59. # + Cooldown
  60. # + Cooldown all
  61. # + Cooldown hotend
  62. # + Cooldown hotbed
  63. # + Filament
  64. # + Ex0:000 (0000)
  65. # + Load Fil. fast
  66. # + Load Fil. slow
  67. # + Unload Fil.fast
  68. # + Unload Fil.slow
  69. # + Feed: 000.0
  70. # + Setup
  71. # + Save config
  72. # + Restart
  73. # + Restart host
  74. # + Restart FW
  75. # + PID tuning
  76. # + Tune Hotend PID
  77. # + Tune Hotbed PID
  78. # + Calibration
  79. # + Delta cal. auto
  80. # + Delta cal. man
  81. # + Start probing
  82. # + Move Z: 000.00
  83. # + Test Z: ++
  84. # + Accept
  85. # + Abort
  86. # + Bed probe
  87. # + Dump parameters
  88.  
  89. ### menu main ###
  90. [menu __main]
  91. type: list
  92. name: Main
  93.  
  94. ### menu tune ###
  95. [menu __main __tune]
  96. type: list
  97. enable: {printer.idle_timeout.state == "Printing"}
  98. name: Tune
  99.  
  100. [menu __main __tune __speed]
  101. type: input
  102. name: Speed: {'%3d' % (menu.input*100)}%
  103. input: {printer.gcode_move.speed_factor}
  104. input_min: 0.01
  105. input_max: 5
  106. input_step: 0.01
  107. realtime: True
  108. gcode:
  109. M220 S{'%d' % (menu.input*100)}
  110.  
  111. [menu __main __tune __flow]
  112. type: input
  113. name: Flow: {'%3d' % (menu.input*100)}%
  114. input: {printer.gcode_move.extrude_factor}
  115. input_min: 0.01
  116. input_max: 2
  117. input_step: 0.01
  118. realtime: True
  119. gcode:
  120. M221 S{'%d' % (menu.input*100)}
  121.  
  122. [menu __main __tune __offsetz]
  123. type: input
  124. name: Offset Z:{'%05.3f' % menu.input}
  125. input: {printer.gcode_move.homing_origin.z}
  126. input_min: -5
  127. input_max: 5
  128. input_step: 0.005
  129. realtime: True
  130. gcode:
  131. SET_GCODE_OFFSET Z={'%.3f' % menu.input} MOVE=1
  132.  
  133.  
  134. ### menu octoprint ###
  135. [menu __main __octoprint]
  136. type: list
  137. name: OctoPrint
  138.  
  139. [menu __main __octoprint __pause]
  140. type: command
  141. enable: {printer.idle_timeout.state == "Printing"}
  142. name: Pause printing
  143. gcode:
  144. {action_respond_info('action:pause')}
  145.  
  146. [menu __main __octoprint __resume]
  147. type: command
  148. enable: {not printer.idle_timeout.state == "Printing"}
  149. name: Resume printing
  150. gcode:
  151. {action_respond_info('action:resume')}
  152.  
  153. [menu __main __octoprint __abort]
  154. type: command
  155. enable: {printer.idle_timeout.state == "Printing"}
  156. name: Abort printing
  157. gcode:
  158. {action_respond_info('action:cancel')}
  159.  
  160. ### menu virtual sdcard ###
  161. [menu __main __sdcard]
  162. type: vsdlist
  163. enable: {('virtual_sdcard' in printer)}
  164. name: SD Card
  165.  
  166. [menu __main __sdcard __start]
  167. type: command
  168. enable: {('virtual_sdcard' in printer) and printer.virtual_sdcard.file_path and not printer.virtual_sdcard.is_active}
  169. name: Start printing
  170. gcode: M24
  171.  
  172. [menu __main __sdcard __resume]
  173. type: command
  174. enable: {('virtual_sdcard' in printer) and printer.print_stats.state == "paused"}
  175. name: Resume printing
  176. gcode:
  177. {% if "pause_resume" in printer %}
  178. RESUME
  179. {% else %}
  180. M24
  181. {% endif %}
  182.  
  183. [menu __main __sdcard __pause]
  184. type: command
  185. enable: {('virtual_sdcard' in printer) and printer.print_stats.state == "printing"}
  186. name: Pause printing
  187. gcode:
  188. {% if "pause_resume" in printer %}
  189. PAUSE
  190. {% else %}
  191. M25
  192. {% endif %}
  193.  
  194. [menu __main __sdcard __cancel]
  195. type: command
  196. enable: {('virtual_sdcard' in printer) and (printer.print_stats.state == "printing" or printer.print_stats.state == "paused")}
  197. name: Cancel printing
  198. gcode:
  199. {% if 'pause_resume' in printer %}
  200. CANCEL_PRINT
  201. {% else %}
  202. M25
  203. M27
  204. M26 S0
  205. TURN_OFF_HEATERS
  206. {% if printer.toolhead.position.z <= printer.toolhead.axis_maximum.z - 5 %}
  207. G91
  208. G0 Z5 F1000
  209. G90
  210. {% endif %}
  211. {% endif %}
  212.  
  213. ### menu control ###
  214. [menu __main __control]
  215. type: list
  216. name: Control
  217.  
  218. [menu __main __control __home]
  219. type: command
  220. enable: {not printer.idle_timeout.state == "Printing"}
  221. name: Home All
  222. gcode: G28
  223.  
  224. [menu __main __control __homez]
  225. type: command
  226. enable: {not printer.idle_timeout.state == "Printing"}
  227. name: Home Z
  228. gcode: G28 Z
  229.  
  230. [menu __main __control __homexy]
  231. type: command
  232. enable: {not printer.idle_timeout.state == "Printing"}
  233. name: Home X/Y
  234. gcode: G28 X Y
  235.  
  236. [menu __main __control __disable]
  237. type: command
  238. name: Steppers off
  239. gcode:
  240. M84
  241. M18
  242.  
  243. [menu __main __control __fanonoff]
  244. type: input
  245. enable: {'fan' in printer}
  246. name: Fan: {'ON ' if menu.input else 'OFF'}
  247. input: {printer.fan.speed}
  248. input_min: 0
  249. input_max: 1
  250. input_step: 1
  251. gcode:
  252. M106 S{255 if menu.input else 0}
  253.  
  254. [menu __main __control __fanspeed]
  255. type: input
  256. enable: {'fan' in printer}
  257. name: Fan speed: {'%3d' % (menu.input*100)}%
  258. input: {printer.fan.speed}
  259. input_min: 0
  260. input_max: 1
  261. input_step: 0.01
  262. gcode:
  263. M106 S{'%d' % (menu.input*255)}
  264.  
  265. [menu __main __control __caselightonoff]
  266. type: input
  267. enable: {'output_pin caselight' in printer}
  268. name: Lights: {'ON ' if menu.input else 'OFF'}
  269. input: {printer['output_pin caselight'].value}
  270. input_min: 0
  271. input_max: 1
  272. input_step: 1
  273. gcode:
  274. SET_PIN PIN=caselight VALUE={1 if menu.input else 0}
  275.  
  276. [menu __main __control __caselightpwm]
  277. type: input
  278. enable: {'output_pin caselight' in printer}
  279. name: Lights: {'%3d' % (menu.input*100)}%
  280. input: {printer['output_pin caselight'].value}
  281. input_min: 0.0
  282. input_max: 1.0
  283. input_step: 0.01
  284. gcode:
  285. SET_PIN PIN=caselight VALUE={menu.input}
  286.  
  287. ### menu move 10mm ###
  288. [menu __main __control __move_10mm]
  289. type: list
  290. enable: {not printer.idle_timeout.state == "Printing"}
  291. name: Move 10mm
  292.  
  293. [menu __main __control __move_10mm __axis_x]
  294. type: input
  295. name: Move X:{'%05.1f' % menu.input}
  296. input: {printer.gcode_move.gcode_position.x}
  297. input_min: {printer.toolhead.axis_minimum.x}
  298. input_max: {printer.toolhead.axis_maximum.x}
  299. input_step: 10.0
  300. gcode:
  301. SAVE_GCODE_STATE NAME=__move__axis
  302. G90
  303. G1 X{menu.input}
  304. RESTORE_GCODE_STATE NAME=__move__axis
  305.  
  306. [menu __main __control __move_10mm __axis_y]
  307. type: input
  308. name: Move Y:{'%05.1f' % menu.input}
  309. input: {printer.gcode_move.gcode_position.y}
  310. input_min: {printer.toolhead.axis_minimum.y}
  311. input_max: {printer.toolhead.axis_maximum.y}
  312. input_step: 10.0
  313. gcode:
  314. SAVE_GCODE_STATE NAME=__move__axis
  315. G90
  316. G1 Y{menu.input}
  317. RESTORE_GCODE_STATE NAME=__move__axis
  318.  
  319. [menu __main __control __move_10mm __axis_z]
  320. type: input
  321. enable: {not printer.idle_timeout.state == "Printing"}
  322. name: Move Z:{'%05.1f' % menu.input}
  323. input: {printer.gcode_move.gcode_position.z}
  324. input_min: 0
  325. input_max: {printer.toolhead.axis_maximum.z}
  326. input_step: 10.0
  327. gcode:
  328. SAVE_GCODE_STATE NAME=__move__axis
  329. G90
  330. G1 Z{menu.input}
  331. RESTORE_GCODE_STATE NAME=__move__axis
  332.  
  333. [menu __main __control __move_10mm __axis_e]
  334. type: input
  335. enable: {not printer.idle_timeout.state == "Printing"}
  336. name: Move E:{'%+06.1f' % menu.input}
  337. input: 0
  338. input_min: -{printer.configfile.config.extruder.max_extrude_only_distance|default(50)}
  339. input_max: {printer.configfile.config.extruder.max_extrude_only_distance|default(50)}
  340. input_step: 10.0
  341. gcode:
  342. SAVE_GCODE_STATE NAME=__move__axis
  343. M83
  344. G1 E{menu.input} F240
  345. RESTORE_GCODE_STATE NAME=__move__axis
  346.  
  347. ### menu move 1mm ###
  348. [menu __main __control __move_1mm]
  349. type: list
  350. enable: {not printer.idle_timeout.state == "Printing"}
  351. name: Move 1mm
  352.  
  353. [menu __main __control __move_1mm __axis_x]
  354. type: input
  355. name: Move X:{'%05.1f' % menu.input}
  356. input: {printer.gcode_move.gcode_position.x}
  357. input_min: {printer.toolhead.axis_minimum.x}
  358. input_max: {printer.toolhead.axis_maximum.x}
  359. input_step: 1.0
  360. gcode:
  361. SAVE_GCODE_STATE NAME=__move__axis
  362. G90
  363. G1 X{menu.input}
  364. RESTORE_GCODE_STATE NAME=__move__axis
  365.  
  366. [menu __main __control __move_1mm __axis_y]
  367. type: input
  368. name: Move Y:{'%05.1f' % menu.input}
  369. input: {printer.gcode_move.gcode_position.y}
  370. input_min: {printer.toolhead.axis_minimum.y}
  371. input_max: {printer.toolhead.axis_maximum.y}
  372. input_step: 1.0
  373. gcode:
  374. SAVE_GCODE_STATE NAME=__move__axis
  375. G90
  376. G1 Y{menu.input}
  377. RESTORE_GCODE_STATE NAME=__move__axis
  378.  
  379. [menu __main __control __move_1mm __axis_z]
  380. type: input
  381. enable: {not printer.idle_timeout.state == "Printing"}
  382. name: Move Z:{'%05.1f' % menu.input}
  383. input: {printer.gcode_move.gcode_position.z}
  384. input_min: 0
  385. input_max: {printer.toolhead.axis_maximum.z}
  386. input_step: 1.0
  387. gcode:
  388. SAVE_GCODE_STATE NAME=__move__axis
  389. G90
  390. G1 Z{menu.input}
  391. RESTORE_GCODE_STATE NAME=__move__axis
  392.  
  393. [menu __main __control __move_1mm __axis_e]
  394. type: input
  395. enable: {not printer.idle_timeout.state == "Printing"}
  396. name: Move E:{'%+06.1f' % menu.input}
  397. input: 0
  398. input_min: -{printer.configfile.config.extruder.max_extrude_only_distance|default(50)}
  399. input_max: {printer.configfile.config.extruder.max_extrude_only_distance|default(50)}
  400. input_step: 1.0
  401. gcode:
  402. SAVE_GCODE_STATE NAME=__move__axis
  403. M83
  404. G1 E{menu.input} F240
  405. RESTORE_GCODE_STATE NAME=__move__axis
  406.  
  407. ### menu move 0.1mm ###
  408. [menu __main __control __move_01mm]
  409. type: list
  410. enable: {not printer.idle_timeout.state == "Printing"}
  411. name: Move 0.1mm
  412.  
  413. [menu __main __control __move_01mm __axis_x]
  414. type: input
  415. name: Move X:{'%05.1f' % menu.input}
  416. input: {printer.gcode_move.gcode_position.x}
  417. input_min: {printer.toolhead.axis_minimum.x}
  418. input_max: {printer.toolhead.axis_maximum.x}
  419. input_step: 0.1
  420. gcode:
  421. SAVE_GCODE_STATE NAME=__move__axis
  422. G90
  423. G1 X{menu.input}
  424. RESTORE_GCODE_STATE NAME=__move__axis
  425.  
  426. [menu __main __control __move_01mm __axis_y]
  427. type: input
  428. name: Move Y:{'%05.1f' % menu.input}
  429. input: {printer.gcode_move.gcode_position.y}
  430. input_min: {printer.toolhead.axis_minimum.y}
  431. input_max: {printer.toolhead.axis_maximum.y}
  432. input_step: 0.1
  433. gcode:
  434. SAVE_GCODE_STATE NAME=__move__axis
  435. G90
  436. G1 Y{menu.input}
  437. RESTORE_GCODE_STATE NAME=__move__axis
  438.  
  439. [menu __main __control __move_01mm __axis_z]
  440. type: input
  441. enable: {not printer.idle_timeout.state == "Printing"}
  442. name: Move Z:{'%05.1f' % menu.input}
  443. input: {printer.gcode_move.gcode_position.z}
  444. input_min: 0
  445. input_max: {printer.toolhead.axis_maximum.z}
  446. input_step: 0.1
  447. gcode:
  448. SAVE_GCODE_STATE NAME=__move__axis
  449. G90
  450. G1 Z{menu.input}
  451. RESTORE_GCODE_STATE NAME=__move__axis
  452.  
  453. [menu __main __control __move_01mm __axis_e]
  454. type: input
  455. enable: {not printer.idle_timeout.state == "Printing"}
  456. name: Move E:{'%+06.1f' % menu.input}
  457. input: 0
  458. input_min: -{printer.configfile.config.extruder.max_extrude_only_distance|default(50)}
  459. input_max: {printer.configfile.config.extruder.max_extrude_only_distance|default(50)}
  460. input_step: 0.1
  461. gcode:
  462. SAVE_GCODE_STATE NAME=__move__axis
  463. M83
  464. G1 E{menu.input} F240
  465. RESTORE_GCODE_STATE NAME=__move__axis
  466.  
  467. ### menu temperature ###
  468. [menu __main __temp]
  469. type: list
  470. name: Temperature
  471.  
  472. [menu __main __temp __hotend0_target]
  473. type: input
  474. enable: {('extruder' in printer) and ('extruder' in printer.heaters.available_heaters)}
  475. name: {"Ex0:%3.0f (%4.0f)" % (menu.input, printer.extruder.temperature)}
  476. input: {printer.extruder.target}
  477. input_min: 0
  478. input_max: {printer.configfile.config.extruder.max_temp}
  479. input_step: 1
  480. gcode: M104 T0 S{'%.0f' % menu.input}
  481.  
  482. [menu __main __temp __hotend1_target]
  483. type: input
  484. enable: {('extruder1' in printer) and ('extruder1' in printer.heaters.available_heaters)}
  485. name: {"Ex1:%3.0f (%4.0f)" % (menu.input, printer.extruder1.temperature)}
  486. input: {printer.extruder1.target}
  487. input_min: 0
  488. input_max: {printer.configfile.config.extruder1.max_temp}
  489. input_step: 1
  490. gcode: M104 T1 S{'%.0f' % menu.input}
  491.  
  492. [menu __main __temp __hotbed_target]
  493. type: input
  494. enable: {'heater_bed' in printer}
  495. name: {"Bed:%3.0f (%4.0f)" % (menu.input, printer.heater_bed.temperature)}
  496. input: {printer.heater_bed.target}
  497. input_min: 0
  498. input_max: {printer.configfile.config.heater_bed.max_temp}
  499. input_step: 1
  500. gcode: M140 S{'%.0f' % menu.input}
  501.  
  502. [menu __main __temp __preheat_pla]
  503. type: list
  504. name: Preheat PLA
  505.  
  506. [menu __main __temp __preheat_pla __all]
  507. type: command
  508. enable: {('extruder' in printer) and ('heater_bed' in printer)}
  509. name: Preheat all
  510. gcode:
  511. M140 S60
  512. M104 S200
  513.  
  514. [menu __main __temp __preheat_pla __hotend]
  515. type: command
  516. enable: {'extruder' in printer}
  517. name: Preheat hotend
  518. gcode: M104 S200
  519.  
  520. [menu __main __temp __preheat_pla __hotbed]
  521. type: command
  522. enable: {'heater_bed' in printer}
  523. name: Preheat hotbed
  524. gcode: M140 S60
  525.  
  526. [menu __main __temp __preheat_abs]
  527. type: list
  528. name: Preheat ABS
  529.  
  530. [menu __main __temp __preheat_abs __all]
  531. type: command
  532. enable: {('extruder' in printer) and ('heater_bed' in printer)}
  533. name: Preheat all
  534. gcode:
  535. M140 S110
  536. M104 S245
  537.  
  538. [menu __main __temp __preheat_abs __hotend]
  539. type: command
  540. enable: {'extruder' in printer}
  541. name: Preheat hotend
  542. gcode: M104 S245
  543.  
  544. [menu __main __temp __preheat_abs __hotbed]
  545. type: command
  546. enable: {'heater_bed' in printer}
  547. name: Preheat hotbed
  548. gcode: M140 S110
  549.  
  550. [menu __main __temp __cooldown]
  551. type: list
  552. name: Cooldown
  553.  
  554. [menu __main __temp __cooldown __all]
  555. type: command
  556. enable: {('extruder' in printer) and ('heater_bed' in printer)}
  557. name: Cooldown all
  558. gcode:
  559. M104 S0
  560. M140 S0
  561.  
  562. [menu __main __temp __cooldown __hotend]
  563. type: command
  564. enable: {'extruder' in printer}
  565. name: Cooldown hotend
  566. gcode: M104 S0
  567.  
  568. [menu __main __temp __cooldown __hotbed]
  569. type: command
  570. enable: {'heater_bed' in printer}
  571. name: Cooldown hotbed
  572. gcode: M140 S0
  573.  
  574. ### menu filament ###
  575.  
  576. [menu __main __filament]
  577. type: list
  578. name: Filament
  579.  
  580. [menu __main __filament __hotend0_target]
  581. type: input
  582. enable: {'extruder' in printer}
  583. name: {"Ex0:%3.0f (%4.0f)" % (menu.input, printer.extruder.temperature)}
  584. input: {printer.extruder.target}
  585. input_min: 0
  586. input_max: {printer.configfile.config.extruder.max_temp}
  587. input_step: 1
  588. gcode: M104 T0 S{'%.0f' % menu.input}
  589.  
  590. [menu __main __filament __loadf]
  591. type: command
  592. name: Load Fil. fast
  593. gcode:
  594. SAVE_GCODE_STATE NAME=__filament__load
  595. M83
  596. G1 E50 F960
  597. RESTORE_GCODE_STATE NAME=__filament__load
  598.  
  599. [menu __main __filament __loads]
  600. type: command
  601. name: Load Fil. slow
  602. gcode:
  603. SAVE_GCODE_STATE NAME=__filament__load
  604. M83
  605. G1 E50 F240
  606. RESTORE_GCODE_STATE NAME=__filament__load
  607.  
  608. [menu __main __filament __unloadf]
  609. type: command
  610. name: Unload Fil.fast
  611. gcode:
  612. SAVE_GCODE_STATE NAME=__filament__load
  613. M83
  614. G1 E-50 F960
  615. RESTORE_GCODE_STATE NAME=__filament__load
  616.  
  617. [menu __main __filament __unloads]
  618. type: command
  619. name: Unload Fil.slow
  620. gcode:
  621. SAVE_GCODE_STATE NAME=__filament__load
  622. M83
  623. G1 E-50 F240
  624. RESTORE_GCODE_STATE NAME=__filament__load
  625.  
  626. [menu __main __filament __feed]
  627. type: input
  628. name: Feed: {'%.1f' % menu.input}
  629. input: 5
  630. input_step: 0.1
  631. gcode:
  632. SAVE_GCODE_STATE NAME=__filament__load
  633. M83
  634. G1 E{'%.1f' % menu.input} F60
  635. RESTORE_GCODE_STATE NAME=__filament__load
  636.  
  637. ### menu setup ###
  638. [menu __main __setup]
  639. type: list
  640. enable: {not printer.idle_timeout.state == "Printing"}
  641. name: Setup
  642.  
  643. [menu __main __setup __save_config]
  644. type: command
  645. name: Save config
  646. gcode: SAVE_CONFIG
  647.  
  648. [menu __main __setup __restart]
  649. type: list
  650. name: Restart
  651.  
  652. [menu __main __setup __restart __host_restart]
  653. type: command
  654. enable: {not printer.idle_timeout.state == "Printing"}
  655. name: Restart host
  656. gcode: RESTART
  657.  
  658. [menu __main __setup __restart __firmware_restart]
  659. type: command
  660. enable: {not printer.idle_timeout.state == "Printing"}
  661. name: Restart FW
  662. gcode: FIRMWARE_RESTART
  663.  
  664. [menu __main __setup __tuning]
  665. type: list
  666. name: PID tuning
  667.  
  668. [menu __main __setup __tuning __hotend_pid_tuning]
  669. type: command
  670. enable: {(not printer.idle_timeout.state == "Printing") and ('extruder' in printer)}
  671. name: Tune Hotend PID
  672. gcode: PID_CALIBRATE HEATER=extruder TARGET=210 WRITE_FILE=1
  673.  
  674. [menu __main __setup __tuning __hotbed_pid_tuning]
  675. type: command
  676. enable: {(not printer.idle_timeout.state == "Printing") and ('heater_bed' in printer)}
  677. name: Tune Hotbed PID
  678. gcode: PID_CALIBRATE HEATER=heater_bed TARGET=60 WRITE_FILE=1
  679.  
  680. [menu __main __setup __calib]
  681. type: list
  682. name: Calibration
  683.  
  684. [menu __main __setup __calib __delta_calib_auto]
  685. type: command
  686. enable: {not printer.idle_timeout.state == "Printing"}
  687. name: Delta cal. auto
  688. gcode:
  689. G28
  690. DELTA_CALIBRATE
  691.  
  692. [menu __main __setup __calib __delta_calib_man]
  693. type: list
  694. enable: {not printer.idle_timeout.state == "Printing"}
  695. name: Delta cal. man
  696.  
  697. [menu __main __setup __calib __bedprobe]
  698. type: command
  699. enable: {not printer.idle_timeout.state == "Printing"}
  700. name: Bed probe
  701. gcode: PROBE
  702.  
  703. [menu __main __setup __calib __delta_calib_man __start]
  704. type: command
  705. name: Start probing
  706. gcode:
  707. G28
  708. DELTA_CALIBRATE METHOD=manual
  709.  
  710. [menu __main __setup __calib __delta_calib_man __move_z]
  711. type: input
  712. name: Move Z: {'%03.2f' % menu.input}
  713. input: {printer.gcode_move.gcode_position.z}
  714. input_step: 1
  715. realtime: True
  716. gcode:
  717. {%- if menu.event == 'change' -%}
  718. G1 Z{'%.2f' % menu.input}
  719. {%- elif menu.event == 'long_click' -%}
  720. G1 Z{'%.2f' % menu.input}
  721. SAVE_GCODE_STATE NAME=__move__axis
  722. G91
  723. G1 Z2
  724. G1 Z-2
  725. RESTORE_GCODE_STATE NAME=__move__axis
  726. {%- endif -%}
  727.  
  728. [menu __main __setup __calib __delta_calib_man __test_z]
  729. type: input
  730. name: Test Z: {['++','+','+.01','+.05','+.1','+.5','-.5','-.1','-.05','-.01','-','--'][menu.input|int]}
  731. input: 6
  732. input_min: 0
  733. input_max: 11
  734. input_step: 1
  735. gcode:
  736. {%- if menu.event == 'long_click' -%}
  737. TESTZ Z={['++','+','+.01','+.05','+.1','+.5','-.5','-.1','-.05','-.01','-','--'][menu.input|int]}
  738. {%- endif -%}
  739.  
  740. [menu __main __setup __calib __delta_calib_man __accept]
  741. type: command
  742. name: Accept
  743. gcode: ACCEPT
  744.  
  745. [menu __main __setup __calib __delta_calib_man __abort]
  746. type: command
  747. name: Abort
  748. gcode: ABORT
  749.  
  750. [menu __main __setup __dump]
  751. type: command
  752. name: Dump parameters
  753. gcode:
  754. {% for name1 in printer %}
  755. {% for name2 in printer[name1] %}
  756. { action_respond_info("printer['%s'].%s = %s"
  757. % (name1, name2, printer[name1][name2])) }
  758. {% else %}
  759. { action_respond_info("printer['%s'] = %s" % (name1, printer[name1])) }
  760. {% endfor %}
  761. {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment