SOVOL SVO8 Beep command M300

SOVOL SVO8 Beep command, M300

Save this as M300.cfg as a text file

Then upload it to Klipper under Machine

######################################################

######################################################################

M300.cfg

M300 S Pitch P duration

######################################################################

A BIG Thank You to user: mime

BEEPNOTE I=1 DUR=200 FREQ=440 would produce a 440 Hz beep

REF: Beep on fixed frequency after upgrade to CAN | VORON Design

[gcode_macro M300]
gcode:
# M300 S{pitch in hz} P{duration in ms}
{% set S = params.S|default(2000)|int %} ; Frequency in Hz. Default 2kHz.
{% set P = params.P|default(100)|int %} ; Duration/wait of each beep in ms. Default 100ms
SET_PIN PIN=beeper VALUE=0.8 CYCLE_TIME={ 1.0/S if S > 0 else 1 } ; Turn on beeper sound
G4 P{P} ; wait for duration
SET_PIN PIN=beeper VALUE=0 ; Turn off beeper sound

####################################################

Add this to your printer.cfg file to include the M300.cfg file

[include M300.cfg]

####################################################

To use it in Orcaslicer the End Gcode is, ( two tunes here with a request to play the second one when the Heat Bed reaches 32 degrees ) :-

END_PRINT

M106 P3 S0; Turn OFF Exhaust Fan 100%; PLA allow doors to be closed but open top or for ABS totally closed. Use example PWM M106 P3 S128 = 50%

; Play Pink Panther
; M300 S pitch in hz P duration in ms
; PinkPanther
M300 S1244 P187
M300 S1318 P187
M300 S0 P750
M300 S1479 P187
M300 S1567 P187
M300 S0 P750
M300 S1244 P187
M300 S1318 P187
M300 S0 P93
M300 S1479 P187
M300 S1567 P187
M300 S0 P93
M300 S2093 P187
M300 S987 P187
M300 S0 P93
M300 S1244 P187
M300 S1318 P187
M300 S0 P93
M300 S987 P187
M300 S932 P750
M300 S0 P750
M300 S880 P93
M300 S1567 P93
M300 S1318 P93
M300 S1174 P93
M300 S1318 P750

;; Wait for Heat Bed to cool down to 32 C
;; Part removal Temperature

TEMPERATURE_WAIT SENSOR=“heater_bed” MAXIMUM=32 ; Wait till the Build Plate is cool enough to remove the 3D part. Wait until the given temperature sensor is at or above the supplied MINIMUM and/or at or below the supplied MAXIMUM.

M140 S0 ; make sure the bed is turned off.

; Play Indiana
; M300 S pitch in hz P duration in ms
; Indiana
M300 S1318 P240
M300 S0 P120
M300 S1396 P120
M300 S1567 P120
M300 S0 P120
M300 S2093 P960
M300 S0 P120
M300 S1174 P240
M300 S0 P120
M300 S1318 P120
M300 S1396 P960
M300 S0 P240
M300 S1567 P240
M300 S0 P120
M300 S880 P120
M300 S987 P120
M300 S0 P120
M300 S2793 P960
M300 S0 P240
M300 S880 P240
M300 S0 P120
M300 S987 P120
M300 S2093 P480
M300 S2349 P480
M300 S2637 P480

Thank you so much for buying from Sovol, and I apologize for all the inconvenience.
Did you already send an email to info@sovol3d.com? If not, please send the above situation with videos and pictures and your order number, and we will check with the engineers asap.

SOVOL SVO8 Playing tunes

YouTube will not allow the code here, but if want it follow this link to OneDrive

PLEASE NOTE: have modified the code to an M300 command

This mean you are able to use an M300 command as standard

e.g. ; M300 S pitch in hz P duration in ms

M300 S1244 P187

M300 code, ect. on GitHub, better than OneDrive rubbish
https://raw.githubusercontent.com/ProtomakerSprint/SOVOL-SV08-M300/main/Add%20M300%20to%20your%20SV08

in printer.cfg change to

[output_pin beeper]

pin: EXP1_1

pwm: True # EDIT False

value: 0 # EDIT Max 1, is set to 1 the beeper will be on all the time

M300 code, ect… on OneDrive:-
https://1drv.ms/t/s!An3TkB0IisLjdVvkI1KKd7OFgrk?e=HaxA2h