Is there any kind of order of operation in printer.cfg anything documented?
I started to flatten my printer config file to for ease of use.
When I did this for the extruder my rotation_distance got real funky to the extent that G91 followed by G1 E10 F60 would result in about 78MM of extrusion? Full printer.cfg attached as well. ############################################################################################################# TOOLHEAD Pick your extruder and hotend ############################################################################################################# Extruder #[include RatOS/extruders/bmg.cfg] #[include RatOS/extruders/lgx.cfg] #[include RatOS/extruders/lgx-lite.cfg] #[include RatOS/extruders/orbiter.cfg] #[include RatOS/extruders/orbiter-1004.cfg] # Use this with the LDO-36STH20-1004AHG motor #[include RatOS/extruders/hemera.cfg] #[include RatOS/extruders/titan.cfg] [extruder] step_pin: e_step_pin dir_pin: !e_dir_pin enable_pin: !e_enable_pin microsteps: 64 rotation_distance: 5.57 full_steps_per_rotation: 200 filament_diameter: 1.750 max_extrude_only_velocity: 120 max_extrude_only_accel: 800 pressure_advance_smooth_time: 0.02 pressure_advance: 0.045 max_extrude_only_distance: 200 nozzle_diameter: 0.4 heater_pin: e_heater_pin sensor_type: PT1000 sensor_pin: e_sensor_pin min_extrude_temp: 170 min_temp: 0 max_temp: 290 [firmware_retraction] retract_speed: 120 retract_length: 0.5 unretract_extra_length: 0 unretract_speed: 120 Ships with LDO-36STH20-1004AHG motor #[include ../steppers/ldo/36sth20-1004ahg/24v-0.7a-e.cfg]
When I did this for the extruder my rotation_distance got real funky to the extent that G91 followed by G1 E10 F60 would result in about 78MM of extrusion? Full printer.cfg attached as well. ############################################################################################################# TOOLHEAD Pick your extruder and hotend ############################################################################################################# Extruder #[include RatOS/extruders/bmg.cfg] #[include RatOS/extruders/lgx.cfg] #[include RatOS/extruders/lgx-lite.cfg] #[include RatOS/extruders/orbiter.cfg] #[include RatOS/extruders/orbiter-1004.cfg] # Use this with the LDO-36STH20-1004AHG motor #[include RatOS/extruders/hemera.cfg] #[include RatOS/extruders/titan.cfg] [extruder] step_pin: e_step_pin dir_pin: !e_dir_pin enable_pin: !e_enable_pin microsteps: 64 rotation_distance: 5.57 full_steps_per_rotation: 200 filament_diameter: 1.750 max_extrude_only_velocity: 120 max_extrude_only_accel: 800 pressure_advance_smooth_time: 0.02 pressure_advance: 0.045 max_extrude_only_distance: 200 nozzle_diameter: 0.4 heater_pin: e_heater_pin sensor_type: PT1000 sensor_pin: e_sensor_pin min_extrude_temp: 170 min_temp: 0 max_temp: 290 [firmware_retraction] retract_speed: 120 retract_length: 0.5 unretract_extra_length: 0 unretract_speed: 120 Ships with LDO-36STH20-1004AHG motor #[include ../steppers/ldo/36sth20-1004ahg/24v-0.7a-e.cfg]
5 Replies
like-gold•10mo ago
Rolled it back to the previous known working state and all is good.
#############################################################################################################
TOOLHEAD
Pick your extruder and hotend
#############################################################################################################
Extruder
#[include RatOS/extruders/bmg.cfg]
#[include RatOS/extruders/lgx.cfg]
[include RatOS/extruders/lgx-lite.cfg]
#[include RatOS/extruders/orbiter.cfg]
#[include RatOS/extruders/orbiter-1004.cfg] # Use this with the LDO-36STH20-1004AHG motor
#[include RatOS/extruders/hemera.cfg]
#[include RatOS/extruders/titan.cfg]
[extruder]
max_temp: 300
#############################################################################################################
PRINTER CONFIGURATION
Customize the defaults to your specific build
#############################################################################################################
[extruder]
Check https://www.klipper3d.org/Pressure_Advance.html for pressure advance tuning.
#pressure_advance: 0.05
nozzle_diameter: 0.4 # Remember to change this if you change nozzle diameter.
dir_pin: !e_dir_pin # Remove ! in front of pin name to reverse extruder direction
#control: pid
#pid_kp: 28.413
#pid_ki: 1.334
#pid_kd: 151.300
I started to flatten my printer config file to for ease of use.do not do this
like-gold•10mo ago
Can you elaborate?
https://os.ratrig.com/docs/configuration/includes-and-overrides
if you try and re-order or flatten things you are working against the design of ratos. So, don't do that
The original order must be kept, because the following sections/includes can and will be overwritten by the next,