mirror of
https://github.com/mkuf/prind.git
synced 2025-10-26 07:46:19 +01:00
157 lines
3.5 KiB
INI
157 lines
3.5 KiB
INI
# This file contains example pin mappings for testing with the
|
|
# "simulavr" program. To use this config, compile the firmware for an
|
|
# AVR atmega644p, enable "low-level configuration options", and enable
|
|
# "simulavr software emulation". Further details are in
|
|
# docs/Debugging.md.
|
|
|
|
# See docs/Config_Reference.md for a description of parameters.
|
|
|
|
[stepper_x]
|
|
# Pins: PA5, PA4, PA1
|
|
step_pin: PA5
|
|
dir_pin: PA4
|
|
enable_pin: PA1
|
|
microsteps: 16
|
|
rotation_distance: 40
|
|
endstop_pin: ^PB0
|
|
position_min: -0.25
|
|
position_endstop: 0
|
|
position_max: 200
|
|
|
|
[stepper_y]
|
|
# Pins: PA3, PA2
|
|
step_pin: PA3
|
|
dir_pin: PA2
|
|
enable_pin: PA1
|
|
microsteps: 16
|
|
rotation_distance: 40
|
|
endstop_pin: ^PB1
|
|
position_min: -0.25
|
|
position_endstop: 0
|
|
position_max: 200
|
|
|
|
[stepper_z]
|
|
# Pins: PC7, PC6
|
|
step_pin: PC7
|
|
dir_pin: PC6
|
|
enable_pin: PA1
|
|
microsteps: 16
|
|
rotation_distance: 8
|
|
endstop_pin: ^PB2
|
|
position_min: 0.1
|
|
position_endstop: 0.5
|
|
position_max: 200
|
|
|
|
[extruder]
|
|
# Pins: PC3, PC2
|
|
step_pin: PC3
|
|
dir_pin: PC2
|
|
enable_pin: PA1
|
|
microsteps: 16
|
|
rotation_distance: 33.500
|
|
nozzle_diameter: 0.500
|
|
filament_diameter: 3.500
|
|
heater_pin: PB4
|
|
sensor_type: EPCOS 100K B57560G104F
|
|
sensor_pin: PA7
|
|
control: pid
|
|
pid_Kp: 22.2
|
|
pid_Ki: 1.08
|
|
pid_Kd: 114
|
|
min_temp: 0
|
|
min_extrude_temp: 0
|
|
max_temp: 210
|
|
|
|
[heater_bed]
|
|
heater_pin: PB3
|
|
sensor_type: EPCOS 100K B57560G104F
|
|
sensor_pin: PA0
|
|
control: watermark
|
|
min_temp: 0
|
|
max_temp: 110
|
|
|
|
[fan]
|
|
pin: PD6
|
|
|
|
[mcu]
|
|
serial: /opt/printer_data/run/simulavr.tty
|
|
|
|
[printer]
|
|
kinematics: cartesian
|
|
max_velocity: 500
|
|
max_accel: 3000
|
|
max_z_velocity: 25
|
|
max_z_accel: 30
|
|
|
|
|
|
## vvv Required by Moonraker/Mainsail/Fluidd vvv
|
|
[virtual_sdcard]
|
|
path: /opt/printer_data/gcodes
|
|
|
|
[display_status]
|
|
|
|
[pause_resume]
|
|
|
|
[gcode_macro PAUSE]
|
|
description: Pause the actual running print
|
|
rename_existing: PAUSE_BASE
|
|
# change this if you need more or less extrusion
|
|
variable_extrude: 1.0
|
|
gcode:
|
|
##### read E from pause macro #####
|
|
{% set E = printer["gcode_macro PAUSE"].extrude|float %}
|
|
##### set park positon for x and y #####
|
|
# default is your max posion from your printer.cfg
|
|
{% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
|
|
{% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
|
|
##### calculate save lift position #####
|
|
{% set max_z = printer.toolhead.axis_maximum.z|float %}
|
|
{% set act_z = printer.toolhead.position.z|float %}
|
|
{% if act_z < (max_z - 2.0) %}
|
|
{% set z_safe = 2.0 %}
|
|
{% else %}
|
|
{% set z_safe = max_z - act_z %}
|
|
{% endif %}
|
|
##### end of definitions #####
|
|
PAUSE_BASE
|
|
G91
|
|
{% if printer.extruder.can_extrude|lower == 'true' %}
|
|
G1 E-{E} F2100
|
|
{% else %}
|
|
{action_respond_info("Extruder not hot enough")}
|
|
{% endif %}
|
|
{% if "xyz" in printer.toolhead.homed_axes %}
|
|
G1 Z{z_safe} F900
|
|
G90
|
|
G1 X{x_park} Y{y_park} F6000
|
|
{% else %}
|
|
{action_respond_info("Printer not homed")}
|
|
{% endif %}
|
|
|
|
[gcode_macro RESUME]
|
|
description: Resume the actual running print
|
|
rename_existing: RESUME_BASE
|
|
gcode:
|
|
##### read E from pause macro #####
|
|
{% set E = printer["gcode_macro PAUSE"].extrude|float %}
|
|
#### get VELOCITY parameter if specified ####
|
|
{% if 'VELOCITY' in params|upper %}
|
|
{% set get_params = ('VELOCITY=' + params.VELOCITY) %}
|
|
{%else %}
|
|
{% set get_params = "" %}
|
|
{% endif %}
|
|
##### end of definitions #####
|
|
{% if printer.extruder.can_extrude|lower == 'true' %}
|
|
G91
|
|
G1 E{E} F2100
|
|
{% else %}
|
|
{action_respond_info("Extruder not hot enough")}
|
|
{% endif %}
|
|
RESUME_BASE {get_params}
|
|
|
|
[gcode_macro CANCEL_PRINT]
|
|
description: Cancel the actual running print
|
|
rename_existing: CANCEL_PRINT_BASE
|
|
gcode:
|
|
TURN_OFF_HEATERS
|
|
CANCEL_PRINT_BASE |