-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfilamentalist.cfg
More file actions
44 lines (36 loc) · 1.6 KB
/
Copy pathfilamentalist.cfg
File metadata and controls
44 lines (36 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[gcode_macro rewinder_test]
gcode:
MMU_TEST_LOAD LENGTH=50
{% for n in range(20) %}
# cycles currently set at 20, i.e. range(20). You can changes this however you chose.
MMU_SERVO POS=DOWN
# MANUAL_STEPPER STEPPER="gear_stepper" SPEED=300 ACCEL=400 MOVE=800
MMU_TEST_MOVE SPEED=300 ACCEL=400 MOVE=800
# change the SPEED and ACCEL as you see fit
MMU_SERVO POS=UP
# to stop a macro mid-cycle you must use the e-stop. This dwell allows you to hit the e-stop while the servo is up so that you can pull the filament out of the ERCF while the printer/macro is stopped
MMU_SERVO POS=DOWN
MMU_TEST_MOVE SPEED=300 ACCEL=400 MOVE=-800
MMU_SERVO POS=UP
{% endfor %}
[gcode_macro rewinder_test_multitool]
gcode:
{% set gates = [5] %} # [0,1,2,3,4,5] move between these gates
{% set test_load_length = params.TEST_LOAD_LENGTH | default(50) | float %}
{% set repeats = params.REPEATS | default(20) | int %}
{% set speed = params.SPEED | default(300) | float %}
{% set accel = params.ACCEL | default(400) | float %}
{% set length = params.LENGTH | default(800) | float %}
MMU_HOME
# MMU_TEST_LOAD LENGTH=50
{% for n in range(repeats) %}
{% for gate in gates %}
MMU_SELECT GATE={gate}
MMU_TEST_LOAD LENGTH={test_load_length} # preload gate for a bit of length
MMU_TEST_MOVE SPEED={speed} ACCEL={accel} MOVE={length}
MMU_SERVO POS=UP
MMU_TEST_MOVE SPEED={speed} ACCEL={accel} MOVE=-{length}
MMU_EJECT
MMU_RECOVER
{% endfor %}
{% endfor %}