>switch.suspend.enable true >switch.suspend.input_pin 1.30^ >switch.suspend.output_on_command suspend
I want to mute/unmute this pin from my gcode.
Something like a config like this:
>switch.suspend.input_mute_command M777
>switch.suspend.input_unmute_command M778
And in my gcode:
G0 X100
M777 ; now the switch is active and can trigger a suspend
G0 X1000 ; do something that I want to watch
M778 ; now the switch is inactive and can not trigger a suspend
G0 X100
Just as a basic example. The use case could be the conditional monitoring of
different peripherals such as a spindle or a laser beam.
I checked the Switch module but it looks like it does not support that yet.
One could use the input_on_command for the gcode definition whenever there is only an input.
Is this functionality of general interest?
I can work out a patch for that, otherwise I will just hack it into in my fork.
And one more thing: Could it be that the config naming is mixed up?
input_on_command will set an output on a given gcode
output_on_command will execute a command on input change
Simon
--
You received this message because you are subscribed to the Google Groups "Smoothie-Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothie-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/smoothie-dev/e5c39904-61bc-454a-90f6-bf6459ba33c7%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Smoothie-Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothie-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/smoothie-dev/7590e3d1-8c91-45fb-af66-febfa0147822%40googlegroups.com.