Console output 'Invalid pin value' at end of print

Printer: Ender 3 with SKR_Mini_E3_V3.0 using Mainsail on RPI 3.
Console shows ‘Invalid pin value’ at the end of a print.
Attempted to find by browsing thru logs and printer.cfg and came up with nothing.

klippy.zip (108.8 KB)

This issue is reported by Klipper, not by Mainsail: So it’s General Discussion, not Frontends.
You may check the beep macros.

Thanks. I will check macros and if nothing I will move topic to General.

Checked beep macros and pin assignments and I don’t see a problem. Maybe someone here could help.

Try moving the [gcode_macro BEEP] macro below [output_pin beeper]

1 Like

Moved macro and tried a print resulting in same ‘invalid pin’ message.

Try only the BEEP command. No need for a print.
Provide a new klippy.log showing only the BEEP command.

Beep command has sam error.
I’m not sure if this is relevant but I have two printers, SV06 and Ender 3, running on the one RPI. SV06 beep is fine.

Got side tracked but here is the Klippy log. I reset the log before I did a beep.

klippy (2).zip (8.9 KB)

After beeing away for a few hours, I got back to looking at the beep macro and in this line, #SET_PIN PIN=beeper VALUE=0.8 CYCLE_TIME={ 1.0/freq if freq > 0 else 1 }, the VALUE=0.8, I changed to 1.0. Tried the beep and it worked.
If you have an explanation why this worked, I’d like to hear it.

Hmm, actually I’m not sure. Setting a VALUE only works if PWM is enabled (the default is False), but then CYCLE_TIME should also not work.

You could do:

[output_pin beeper]
pin: EXP1_1
pwm: True

and see if it takes a VALUE < 1

I set pwm: True and VALUE to 0.8 and 0.5 and it works.
Also if I enter ‘M300 P1000 and S2000’, it outputs a one secod fluctuating tone.
I use M300 on my END_PRINT macro.