Malformed command 'SET_PIN PIN=

Hi, i am having trouble setting output pins and it gives me malfordmed command error when i try to use T0 or T1 macro. Ive looked at what other people have used and it seems exactly the same! i include a paste bin of the relevent part and also klipper log. Hopefully someone can figure this out for me.

Thanks

Dan
klippy (3).log (346.0 KB)

[output_pin sw_1]
pin:zboard:PC1 #Orig Pin 3 LCD
[output_pin sw_2]
pin:zboard:PA3 #Orig Pin 4 LCD
[output_pin sw_3]
pin:zboard:PA1 #Orig Pin 5 LCD
[servo camservo]
pin: zboard: PC0 #Orig Pin 9 LCD
maximum_servo_angle: 359
minimum_pulse_width: 0.001
maximum_pulse_width: 0.002

[gcode_macro T0]
gcode:
SET_PIN PIN=sw_1 VALUE=0
SET_PIN PIN=sw_2 VALUE=0
SET_PIN PIN=sw_3 VALUE=0
ACTIVATE_EXTRUDER EXTRUDER=extruder

[gcode_macro T1]
gcode:
SET_PIN PIN= sw_1 VALUE=0
SET_PIN PIN= sw_2 VALUE=0
SET_PIN PIN= sw_3 VALUE=1
ACTIVATE_EXTRUDER EXTRUDER=extruder1

[gcode_macro T3]
gcode = 
	SET_PIN PIN= bit1 VALUE= 0
	SET_PIN PIN= bit2 VALUE= 0
	SET_PIN PIN= bit3 VALUE= 0
	ACTIVATE_EXTRUDER EXTRUDER=extruder1

Remove the blanks after = for PIN and VALUE

Thanks I will give it ago. Although Iā€™m pretty sure I tried that though.

Just out interest what is the etiquette for reporting issue on GitHub?

What a hero. Worked like a charm! Keep up the good work

The Klipper project does not use GH Issues since 99.99987% are support requests and triaged here. Also see Contact - Klipper documentation

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.