Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
SHID1214 authored Dec 9, 2024
1 parent 666cd68 commit 070e707
Show file tree
Hide file tree
Showing 12 changed files with 1,945 additions and 0 deletions.
41 changes: 41 additions & 0 deletions M300_UC.ver/MGC.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[gcode_macro MGC] #MECHANICAL_GANTRY_CALIBRATION
gcode:
{% set align_current = params.CURRENT|default(0.25)|float %} ; Settings for current regulation ; 전류 세팅
{% set printing_current = params.CURRENT|default(1.1)|float %} ; Settings for current regulation ; 전류 세팅
{% set z_max = printer.toolhead.axis_maximum.z %}
{% set fast_move_z = printer.configfile.settings["printer"].max_z_velocity %}
{% set fast_move = printer.configfile.settings["printer"].max_velocity %}
M117 {printer.homed_axes}
{% if printer.homed_axes != 'xyz' %}
{% endif %}

G90
G0 Z{z_max -10} F{fast_move_z * 60 } ; go to the Z-max at speed max z speed; Z축 풀사이즈에서 -10으로 60mm/sec으로 이동

### Drop the current ; 전류 하강
SET_TMC_CURRENT STEPPER=stepper_z CURRENT={align_current} ; drop current on Z0 stepper ; Z0모터 전류 하강
SET_TMC_CURRENT STEPPER=stepper_z1 CURRENT={align_current} ; drop current on Z1 stepper ; Z0모터 전류 하강
SET_TMC_CURRENT STEPPER=stepper_z2 CURRENT={align_current} ; drop current on Z2 stepper ; Z0모터 전류 하강
G4 P200 ; 200mm/s wait ; 0.2초대기

### Move the bed-plate to the bottom for calibration correction ; 베드플레이트 하단부로 이동하여 위치 보정
SET_KINEMATIC_POSITION Z={z_max - 50} ; [M300/M400 스토퍼 장착] - Z축 풀사이즈보다 50mm 강제로 이동
G1 Z{z_max -2} F{6 * 60} ; try to move up
G4 P200 ; 200mm/s wait ; 0.2초대기
G1 Z{z_max -10} F{6 * 60} ; move down
G4 P200 ; 200mm/s wait ; 0.2초대기

### Current reset ; 전류 초기화
SET_TMC_CURRENT STEPPER=stepper_z CURRENT={printing_current}
SET_TMC_CURRENT STEPPER=stepper_z1 CURRENT={printing_current}
SET_TMC_CURRENT STEPPER=stepper_z2 CURRENT={printing_current}
G1 Z{z_max -20} F{900} ; 20mm 위로 이동
G4 P200 ; 200mm/s wait ; 0.2초대기
G28 Z ; Z축만 홈으로 이동

[gcode_macro G34]
gcode:
MGC

[force_move]
enable_force_move: true ; enable FORCE_MOVE and SET_KINEMATIC_POSITION
96 changes: 96 additions & 0 deletions M300_UC.ver/drivers.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
#####################################################################
# ★M1★ A Motor (전면에서 좌, 후면에서 우)
#####################################################################

[tmc5160 stepper_x]
cs_pin: PD9
interpolate: true
run_current: 2.0
sense_resistor: 0.075
stealthchop_threshold: 0
spi_software_mosi_pin: PB15
spi_software_miso_pin: PB14
spi_software_sclk_pin: PB13

#####################################################################
# ★M2★ B motor (전면에서 우, 후면에서 좌)
#####################################################################

[tmc5160 stepper_y]
cs_pin: PD8
interpolate: true
run_current: 2.0
sense_resistor: 0.075
stealthchop_threshold: 0
spi_software_mosi_pin: PB15
spi_software_miso_pin: PB14
spi_software_sclk_pin: PB13

#####################################################################
#####################################################################
#####################################################################

# Back
# X(0),Y(MAX)
# |------------------------|
# | | Z2 | |
# | ------ |
# | |
# Left | | Right
# | |
# | |
# | |
# |----- -----|
# | Z0 | | Z1 |
# |------------------------|
# X(0),Y(0) X(MAX),Y(0)
# Front

#####################################################################
# ★M3★ Z motor-0
#####################################################################

[tmc2209 stepper_z]
uart_pin: PB10
run_current: 0.6
sense_resistor: 0.110
interpolate: true
stealthchop_threshold: 0

#####################################################################
# ★M4★ Z motor-1
#####################################################################

[tmc2209 stepper_z1]
uart_pin: PB2
run_current: 0.6
sense_resistor: 0.110
interpolate: true
stealthchop_threshold: 0

#####################################################################
# ★M5★ Z motor-2
#####################################################################

[tmc2209 stepper_z2]
uart_pin: PA6
run_current: 0.6
sense_resistor: 0.110
interpolate: true
stealthchop_threshold: 0

#####################################################################
# CANBus Extruder
#####################################################################

[tmc2209 extruder]
uart_pin: Momentool:PA15
sense_resistor: 0.110
interpolate: true
run_current: 0.60
stealthchop_threshold: 0
driver_TBL: 0
driver_HEND: 6
driver_HSTRT: 7
driver_TOFF: 4

98 changes: 98 additions & 0 deletions M300_UC.ver/drivers_v2.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
#####################################################################
# ★M1★ A Motor (전면에서 좌, 후면에서 우)
#####################################################################

[tmc5160 stepper_x]
cs_pin: PD9
interpolate: true
run_current: 2.0
sense_resistor: 0.075
stealthchop_threshold: 0
spi_software_mosi_pin: PB15
spi_software_miso_pin: PB14
spi_software_sclk_pin: PB13

#####################################################################
# ★M2★ B motor (전면에서 우, 후면에서 좌)
#####################################################################

[tmc5160 stepper_y]
cs_pin: PD8
interpolate: true
run_current: 2.0
sense_resistor: 0.075
stealthchop_threshold: 0
spi_software_mosi_pin: PB15
spi_software_miso_pin: PB14
spi_software_sclk_pin: PB13

#####################################################################
#####################################################################
#####################################################################

# Back
# X(0),Y(MAX)
# |------------------------|
# | | Z2 | |
# | ------ |
# | |
# Left | | Right
# | |
# | |
# | |
# |----- -----|
# | Z0 | | Z1 |
# |------------------------|
# X(0),Y(0) X(MAX),Y(0)
# Front

#####################################################################
# ★M3★ Z motor-0
#####################################################################

[tmc2209 stepper_z]
uart_pin: PB10
run_current: 0.6
sense_resistor: 0.110
interpolate: true
stealthchop_threshold: 0

#####################################################################
# ★M4★ Z motor-1
#####################################################################

[tmc2209 stepper_z1]
uart_pin: PB2
run_current: 0.6
sense_resistor: 0.110
interpolate: true
stealthchop_threshold: 0

#####################################################################
# ★M5★ Z motor-2
#####################################################################

[tmc2209 stepper_z2]
uart_pin: PA6
run_current: 0.6
sense_resistor: 0.110
interpolate: true
stealthchop_threshold: 0

#####################################################################
# CANBus Extruder
#####################################################################

### 모멘트루더 ###
### Momentruder ###
[tmc2209 extruder]
uart_pin: Momentool:PA15
sense_resistor: 0.110
interpolate: False
run_current: 0.85
stealthchop_threshold: 0
driver_TBL: 0
driver_HEND: 6
driver_HSTRT: 7
driver_TOFF: 4

65 changes: 65 additions & 0 deletions M300_UC.ver/fans.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#####################################################################
# Fan
#####################################################################

[heater_fan hotend_fan] #Hotend FAN
pin: Momentool: PA0
max_power: 1.0
kick_start_time: 0.5
heater: extruder
heater_temp: 50.0

[fan_generic Parts_fan] #Parts FAN / P0
pin: Momentool: PA1
cycle_time: 0.01
hardware_pwm: false

[fan_generic Exhaust_fan] #Exhaust fan / P3
pin: PA3
cycle_time: 0.01
hardware_pwm: false

################################################################################
#When using the auxiliary fan, [heater_fan controller_fan] should be annotated.#
#보조팬을 사용할 경우, [heater_fan controller_fan]를 주석처리해야 한다.############
################################################################################
#[fan_generic Auxiliary_fan] #Auxiliary fan / P2
#pin: PA4
#cycle_time: 0.01
#hardware_pwm: false

[heater_fan controller_fan] #Driver FAN /
pin: PA4
max_power: 1.0
kick_start_time: 0.5
fan_speed: 0.8
heater: heater_bed
heater_temp: 40.0

[gcode_macro M106]
gcode:
{% set P = params.P | default(0) | int %}
{% set S = params.S | default(255) | int %}
{% set speed = S / 255 %}
{% if P == 0 %}
SET_FAN_SPEED FAN=Parts_fan SPEED={speed}
{% elif P == 2 %}
SET_FAN_SPEED FAN=Auxiliary_fan SPEED={speed}
{% elif P == 3 %}
SET_FAN_SPEED FAN=Exhaust_fan SPEED={speed}
{% endif %}

[gcode_macro M107]
gcode:
{% set fan = params.P | default(0) | int %}
{% if fan == 0 %}
SET_FAN_SPEED FAN=Parts_fan SPEED=0
{% elif fan == 2 %}
SET_FAN_SPEED FAN=Auxiliary_fan SPEED=0
{% elif fan == 3 %}
SET_FAN_SPEED FAN=Exhaust_fan SPEED=0
{% else %}
SET_FAN_SPEED FAN=Parts_fan SPEED=0
SET_FAN_SPEED FAN=Auxiliary_fan SPEED=0
SET_FAN_SPEED FAN=Exhaust_fan SPEED=0
{% endif %}
Loading

0 comments on commit 070e707

Please sign in to comment.