Generate pulse

Hi!

I want to generate pulse with only one G command. Is this possible?

I tried the following, but is not working

switch.misc.enable true #
switch.misc.input_on_command M42 #
switch.misc.input_off_command M43 #
switch.misc.output_pin 1.30 #
switch.misc.output_type digital # just an on or off pin

switch.reset_pulse.enable true #
switch.reset_pulse.input_on_command M42 #
switch.reset_pulse.output_on_command G4S1_M43 #reset pulse

Imported from wikidot

*How* is it not working ? Does the pin turn on but never off ? What else ?

Yes, the pin turn on but never off. I would like with only one command made a pulse with predefined length.

Well I think this *should* theorically work, but it’s not really been conceived to do this, so I’m not surprised it doesn’t work.
Maybe try making a pulse.gcode file on the sd card containing

M42
G4 S1
M43

and when you want to generate the pulse, call the play command on that file ?