Skip to content

Commit

Permalink
Add fiber config
Browse files Browse the repository at this point in the history
  • Loading branch information
frylock34 committed Aug 17, 2023
1 parent 66c0d5d commit 45c5735
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 0 deletions.
1 change: 1 addition & 0 deletions stereotech_config/HFE530-5-3-23.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ path: /home/ste/uploads

[include config/print_macros.cfg]
[include config/variables.cfg]
[include config/diagnostics.cfg]
34 changes: 34 additions & 0 deletions stereotech_config/HFE530-5-8-23.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[mcu]
serial: /dev/ttyACM0

[virtual_sdcard]
path: /home/ste/uploads

[display_status]

[include config/board_stm32f4.cfg]

[include config/kinematics_300_3.cfg]
[include config/kinematics_tmc.cfg]
[include config/homing.cfg]

[include config/chamber_2.cfg]

[include config/printhead.cfg]
[include config/probe_2.cfg]
[include config/probe_fiber_printer.cfg]

[include config/main_extruder.cfg]
[include config/fiber_extruder_3.cfg]
[include config/fiber_nozzle_offset.cfg]
[include config/extruder_macros.cfg]
[include config/filament_control_2.cfg]
[include config/power_control.cfg]

[include config/module_3d_300.cfg]
[include config/module_3d_macros.cfg]
[include config/module_5d.cfg]

[include config/print_macros.cfg]
[include config/variables.cfg]
[include config/diagnostics.cfg]
65 changes: 65 additions & 0 deletions stereotech_config/fiber_extruder_3.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[extruder1]
step_pin: second_extruder_step_pin
dir_pin: !second_extruder_dir_pin
enable_pin: !second_extruder_enable_pin
microsteps: 16
rotation_distance: 40
nozzle_diameter: 0.6
filament_diameter: 0.6
heater_pin: second_extruder_heater_pin
sensor_type: NTC 100K MGB18-104F39050L32
sensor_pin: second_extruder_sensor_pin
control: pid
pid_Kp: 6.185
pid_Ki: 0.191
pid_Kd: 50.04
min_temp: -150
max_temp: 320
max_extrude_only_distance: 300.0
min_extrude_temp: 0
max_power: 0.7
fiber: true

[gcode_macro T1]
variable_t1_offset_enabled: 0.0
gcode:
M117 set_extruder1
SET_GCODE_VARIABLE MACRO=T1 VARIABLE=t1_offset_enabled VALUE=1
SET_GCODE_OFFSET X_ADJUST={printer["gcode_macro SET_NOZZLE_OFFSET"].offset_x|default(0.0)} Y_ADJUST={printer["gcode_macro SET_NOZZLE_OFFSET"].offset_y|default(0.0)}
{% set current_wcs = printer.gcode_move.current_wcs %}
{% if "x" in printer.toolhead.homed_axes and "y" in printer.toolhead.homed_axes and "z" in printer.toolhead.homed_axes and printer.toolhead.extruder != 'extruder1' %}
G54
MOVE_DOWN_Z_AXIS Z=5
G0 X10 Y2 F3600
{% endif %}
ACTIVATE_EXTRUDER extruder=extruder1
SET_WCS WCS={current_wcs}
M117

[servo cutter_servo]
pin: PB7
initial_angle: 0

[gcode_macro CUT_FIBER]
gcode:
{% if printer.toolhead.extruder == 'extruder1' %}
M400
SET_SERVO SERVO=cutter_servo ANGLE=90
G4 P1000
M400
SET_SERVO SERVO=cutter_servo ANGLE=0
M400
{% endif %}

[gcode_macro PRIME_FIBER]
gcode:
{% if printer.toolhead.extruder == 'extruder1' %}
M400
SAVE_GCODE_STATE NAME=prime_fiber_state
{% set e = params.E|default(16) %}
G91
G0 E{e} F1800
G90
RESTORE_GCODE_STATE NAME=prime_fiber_state
M400
{% endif %}

0 comments on commit 45c5735

Please sign in to comment.