Basic Information:
Printer Model: Anycubic Kobra Go
MCU / Printerboard: HC32F460
klippy.log
Describe your issue:
I get this error “Error on ‘M140 S[first_layer_bed_temperature]; Heat bed’: unable to parse [”, I have tried commenting out bed and extruder temperature command (M140, M109, M190) but it did not work.
I am using mainsail 64bit latest on raspberry 3B with latest compiled klipper. Printer has v0.11.0-159-gfec7ddd8, octoklipperpi did work before.
gcode.cfg
[gcode_macro START_PRINT]
gcode:
{% set BED_TEMP = params.BED_TEMP|default(60)|float %}
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(190)|float %}
M140 S{BED_TEMP} ;Start bed heating
G21 ;metric values
G90 ;Use absolute coordinates
G28 ; Home all axes
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X0.1 Y20 Z30 F5000.0 ; Move to start position
M109 S{EXTRUDER_TEMP} ; Set and wait for nozzle to reach temperature
M190 S{BED_TEMP} ;wait bed temp
G92 E0 ; Reset Extruder
G1 Z0.3 ; Start close to bed
G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line
G1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little
G1 X0.4 Y20 Z0.3 F1500.0 E30 ; Draw the second line
G92 E0 ; Reset Extruder
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X5 Y20 Z0.3 F5000.0 ; Move over to prevent blob squish
[gcode_macro END_PRINT]
gcode:
M400 ; Wait for current moves to finish
M220 S100 ; Reset Speed factor override percentage to default (100%)
M221 S100 ; Reset Extrude factor override percentage to default (100%)
G91 ; Set coordinates to relative
G1 F2400 E-1 ; Retract filament 3mm at 40mm/s to prevent stringing
G0 F5000 Z20 ; Move Z Axis up 20mm to allow filament ooze freely
# Turn off bed, extruder, and fan
M140 S0
M104 S0
M106 S0
G90 ; absolute pos
G1 X5 Y220 F3000 ;clear head and bring bed to the front
# Disable steppers
M84 ; Disable stepper motors
[delayed_gcode startup_gcode]
initial_duration: 0.1
gcode:
G28
#[gcode_macro POWER_OFF_PRINTER]
#gcode:
# {action_call_remote_method(
# "set_device_power", device="printer", state="off"
# )}
#[gcode_macro POWER_ON_PRINTER]
#gcode:
# {action_call_remote_method(
# "set_device_power", device="printer", state="on"
# )}
printer.cfg
# This file contains pin mappings for the Anycubic Kobra Go/Neo
# with HC32F460.
# Most parameter came from the stock Marlin firmware
# Config credit: xpeng
# See docs/Config_Reference.md for a description of parameters.
[include mainsail.cfg]
[include gcode.cfg]
#[include extras.cfg]
#[include mpu6500.cfg]
[stepper_x]
step_pin: PA12
dir_pin: PA11
enable_pin: !PA15
microsteps: 16
rotation_distance: 40
position_endstop: -13
position_min:-13
position_max: 237.5
homing_speed: 60
endstop_pin: !PH2
homing_retract_dist: 0
[stepper_y]
step_pin: PA9
dir_pin: PA8
enable_pin: !PA15
microsteps: 16
rotation_distance: 40
position_endstop: -8
position_min:-8
position_max: 233
homing_speed: 60
endstop_pin: ^!PC13
homing_retract_dist: 0
[stepper_z]
step_pin: PC7
dir_pin: !PC6
enable_pin: !PA15
microsteps: 16
rotation_distance: 8
endstop_pin: ^PC14
position_min: -10
position_max: 250
#position_endstop: 7
homing_speed: 5
second_homing_speed:1
homing_retract_dist: 2.3
[safe_z_home]
home_xy_position: 20, 20
speed: 65
z_hop: 5
z_hop_speed: 10
[extruder]
max_extrude_only_distance: 100.0
step_pin: PB15
dir_pin: PB14
enable_pin: !PA15
microsteps: 16
rotation_distance: 31.07
nozzle_diameter: 0.600
filament_diameter: 1.750
heater_pin: PB8
sensor_type: ATC Semitec 104GT-2
sensor_pin: PC3
min_temp: 5
min_extrude_temp: 5
max_temp: 270 #Stock is 250
pressure_advance: 0.12
[firmware_retraction]
retract_length:6
retract_speed:4
unretract_extra_length:0
unretract_speed:20
[heater_bed]
heater_pin: PB9
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC1
min_temp: 0
max_temp: 130
[bed_mesh]
speed: 400
horizontal_move_z: 3.5
mesh_min: 5, 5
mesh_max: 215, 215
probe_count: 6, 6
[probe]
pin: PA1
x_offset: -20.8
y_offset: 0
#z_offset: 5
samples: 6
samples_result: average
samples_tolerance: 0.03
samples_tolerance_retries: 6
sample_retract_dist: 0.5
speed:1
lift_speed:4
[controller_fan controller_fan]
max_power: 0.75
pin: PB12
[heater_fan extruder_fan]
pin: PB13
[fan]
pin: PB5
[output_pin enable_pin]
#This is the pin controls bed, hotend, extruder fan, part fan.
pin: PB6
static_value: 1
#[output_pin beeper]
#pin: PB7
[output_pin bl_pin]
pin: PC0
#[output_pin tft_rst]
#pin: PB4
[idle_timeout]
timeout: 600
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command
[printer]
kinematics: cartesian
max_velocity: 500
max_accel: 2500
max_accel_to_decel: 2000
max_z_velocity: 20
max_z_accel: 20
#The following config are calibrated for my printer. Pls delete it and do your own calibration.
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 21.640
#*# pid_ki = 1.277
#*# pid_kd = 91.698
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 57.470
#*# pid_ki = 0.838
#*# pid_kd = 984.896
#*#
#*# [stepper_z]
#*# position_endstop = 6.850
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.080000, -0.075417, -0.313333, -0.466250, -0.585833, -0.693333
#*# 0.275833, 0.140833, -0.046250, -0.186250, -0.308750, -0.414583
#*# 0.430000, 0.302500, 0.121250, -0.002083, -0.129167, -0.230417
#*# 0.483333, 0.386250, 0.229583, 0.127083, 0.017917, -0.076667
#*# 0.562500, 0.443333, 0.269583, 0.144583, 0.016250, -0.069167
#*# 0.536667, 0.444583, 0.290417, 0.179583, 0.086250, 0.002500
#*# x_count = 6
#*# y_count = 6
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = lagrange
#*# tension = 0.2
#*# min_x = 5.0
#*# max_x = 215.0
#*# min_y = 5.0
#*# max_y = 215.0
#*#
#*# [input_shaper]
#*# shaper_type_x = mzv
#*# shaper_freq_x = 109.8
#*# shaper_type_y = mzv
#*# shaper_freq_y = 54.8
#*#
#*# [probe]
#*# z_offset = 0.405