Closed Daniel-engman closed 3 years ago
Probably because you are using = instead of :?
Remove the indented gcode macro section safe_z_home and bed_mesh and g29 from the stepper_z and bltouch areas (and the indentation from the bltouch section as well). Pay attention to indentation and where you place things in the config file. This isnt a github issue its a user error issue and belongs on discord, discourse.
Remove the indented gcode macro section safe_z_home and bed_mesh from the stepper_z and bltouch areas (and the indentation from that as well). This isnt a github issue its a user error issue and belongs on discord, discourse.
Thank you for your reply, though in the actual code, there is no such indentation. Only in the logs, therefore I don't exactly know how I am able to correct such a mistake. Added extra newlines just to exaggerate.
post your config and not the log so I can see it
Probably because you are using = instead of :?
I noticed I wrote the post wrong, old habit of writing declarations using equals. I am using : in the code itself. Thank you for noticing
post your config and not the log so I can see it
printer.txt Saved as a text file this is the config
you have a space in the config before those macros and bltouch section you moved down, there cant be any spaces or tabs before that or it will read it as indented
its a single space
you only indent gcode in your macros, personally I separate my macros from the stepper/printer areas and put them after towards the bottom
you have a space in the config before those macros and bltouch section you moved down, there cant be any spaces or tabs before that or it will read it as indented
Alright I really have gone blind, thank you! That solved the issue, I'm gonna go get my eyes checked now.
@Gilabite can you explain where he had a space o think I have the same issue
@Daniel-engman can you provide your new config file to compare and contrast?
there should be no spaces at the start of a line unless its a gcode line
I fixed it but now I’m getting parsing errors
[virtual_sdcard] path: ~/gcode_files
[display_status]
[pause_resume]
[stepper_x] step_pin: PB9 dir_pin: PC2 enable_pin: !PC3 microsteps: 16 rotation_distance: 40 endstop_pin: ^PA5 position_endstop: 0 position_max: 300 homing_speed: 50
[stepper_y] step_pin: PB7 dir_pin: PB8 enable_pin: !PC3 microsteps: 16 rotation_distance: 40 endstop_pin: ^PA6 position_endstop: 0 position_max: 300 homing_speed: 50
[stepper_z] step_pin: PB5 dir_pin: !PB6 enable_pin: !PC3 microsteps: 16 rotation_distance: 8
endstop_pin: probe:z_virtual_endstop # enable to use BLTouch position_min: -5 # enable to use BLTouch position_max: 340
[safe_z_home] # enable for BLTouch home_xy_position: 150, 150 speed: 100 z_hop: 10 z_hop_speed: 5
[bltouch] # enable for BLTouch - fast-mode sensor_pin: ^PB1 control_pin: PB0 pin_up_touch_mode_reports_triggered: True probe_with_touch_mode: True x_offset: 0 # modify as needed for bltouch location y_offset: -30 # modify as needed for bltouch location
speed: 10 samples: 3 sample_retract_dist: 5.0 # Can be set lower, example 2.5 depending on height of bltouch from bed lift_speed: 40 samples_tolerance_retries: 3 speed: 10 samples: 2
#G90 ; Use absolute position mode
#G1 Z10 ; Move up 10mm
#G28 X Y
#G1 X166 Y120 F6000 ; Change the X and Y coordinates to the center of your print bed
[bed_mesh] # enable for BLTouch speed: 300 mesh_min: 50, 0 mesh_max: 290, 290 algorithm: bicubic probe_count: 5,5 # 25 points due to large bed size horizontal_move_z: 5
[extruder] max_extrude_only_distance: 100.0 step_pin: PB3 dir_pin: PB4 enable_pin: !PC3 microsteps: 16 rotation_distance: 31.901 # Calibrate - see https://github.com/KevinOConnor/klipper/blob/master/docs/Rotation_Distance.md nozzle_diameter: 0.400 filament_diameter: 1.750 heater_pin: PA1 sensor_type: EPCOS 100K B57560G104F sensor_pin: PC5 control: pid pid_Kp: 21.527 pid_Ki: 1.063 pid_Kd: 108.982 min_temp: 0 max_temp: 260 pressure_advance: 0.0 # Calibrate - see https://github.com/KevinOConnor/klipper/blob/master/docs/Pressure_Advance.md
[heater_bed] heater_pin: PA2 sensor_type: EPCOS 100K B57560G104F sensor_pin: PC4 control: pid pid_Kp: 54.027 pid_Ki: 0.770 pid_Kd: 948.182 min_temp: 0 max_temp: 130
[fan] pin: PA0
[filament_switch_sensor e0_sensor] switch_pin: PA4
[mcu] serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 # Run ls /dev/serial/by-id/* for micro-controller name restart_method: command
[printer] kinematics: cartesian max_velocity: 300 max_accel: 3000 max_z_velocity: 5 max_z_accel: 100
[display] lcd_type: st7920 cs_pin: PB12 sclk_pin: PB13 sid_pin: PB15 encoder_pins: ^PB14, ^PB10 click_pin: ^!PB2
[gcode_macro PAUSE] description: Pause the actual running print rename_existing: PAUSE_BASE
variable_extrude: 1.0 gcode:
{% set E = printer["gcode_macro PAUSE"].extrude|float %}
{% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %} {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
{% 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 %}
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:
{% set E = printer["gcode_macro PAUSE"].extrude|float %}
{% if 'VELOCITY' in params|upper %} {% set get_params = ('VELOCITY=' + params.VELOCITY) %} {%else %} {% set get_params = "" %} {% endif %}
{% 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
klippy.log
Printer: Ender 3 max with added BL-touch Running KlipperWrt snapshot using fluidd on a Creality wifi box The config file: https://github.com/KevinOConnor/klipper/blob/master/config/printer-creality-ender3max-2021.cfg endstop_pin: probe:z_virtual_endstop It's seems to be that line that causes the issue, I unfortunately haven't found any solutions that eliminate this problem. Any way to correct this error?