Option 'step_pin' is not valid in section 'stepper_x'

I checked it many times and kept getting this error


Configuration fragment

This is the configuration file
printer (1).cfg (3.9 KB)

This is the log file
klippy (2).log (13.1 KB)

I want to use this motherboard as a robotic arm

I am very depressed. I started it yesterday and it still works, but after I started it today, there is such a problem, and nothing has been modified

Yes, me as well:

Please stick to the template you have deleted. Also see How-To Ask for Help

4 Likes

Almost impossible to help without your full klippy.log, printer.cfg, and any included cfg files attached and not pasted!

Normally this type of error comes from an incorrectly formatted cfg file.

Please make sure you attach the files listed above.

2 Likes

Please look at the problem again

… and what printer board?

Git version: 'v0.12.0-458-gd886c1761-dirty'
Modified files: klippy/configfile.py

And then an error in the configfile, suspicious.

I see that you have reset the file to the git version.

Did you restart the klipper service sudo systemctl restart klipper after you reset that file back?

1 Like

See if there is any error in my configuration file

I’ve been working on this problem for days, with no result

The motherboard is an mks monster8 v2.0

I’ve stumbled about these lines in your config:

10 & 14

and

9 & 12

[stepper_x]
step_pin: PC14
dir_pin: PC13
enable_pin: !PC15
microsteps: 16
rotation_distance: 18
endstop_pin: ^PA14
position_endstop: 0
position_max: 200
homing_speed: 100
position_min: -90
position_max: 90
homing_positive_dir: true
homing_speed: 50.0
homing_retract_dist: 5.0
full_steps_per_rotation: 200

Also here:

10 & 11

[stepper_y]
step_pin: PE5
dir_pin: PE4
enable_pin: !PC15
microsteps: 16
rotation_distance: 18
endstop_pin: ^PA15
position_endstop: 0
position_max: 200
homing_speed: 100
homing_speed: 50.0
homing_retract_dist: 5.0
full_steps_per_rotation: 200

I want to use this motherboard to do 6 axis manipulator development, these are some necessary parameters

What I don’t understand is why it keeps getting this error, and from the configuration why stepper_x says step_pin is invalid

Have you already deleted one of the double lines?

This is the pin diagram of the motherboard

@anons as @EddyMI3D calls out you have duplicate parameters that might cause reading errors.

I would recommend reducing (by temporarily commenting out) the additional stepper sections to see if you can get the error to go away then that might point you to where your error is located.

It is not easy to explain config errors but something in yours is causing incorrect format.

The error is not obvious, and the root cause cannot be found

Even so, it still gives an error

You commented out way too much!

Just one of the doubles as I mentioned in post #10

1 Like

Why is the [stepper_x] section now below the J steppers?

In you posted printer.cfg [stepper_x] was at the start.

2 Likes
[printer]
kinematics: none

Just a guess, haven’t tried it:
Your printer has no kinematics so it cant have any axes. If you mean to have an x axis, pick kinematics that have x axes.