Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
switch [2019/08/07 00:34]
98.191.200.92 [Config definition] Removed nonexistent option
switch [2020/06/01 18:46] (current)
wolfmanjm
Line 3: Line 3:
 The Switch module takes care of basic input from things like buttons and switches and controls simple devices like fans and pumps. The Switch module takes care of basic input from things like buttons and switches and controls simple devices like fans and pumps.
  
-It is an incredibly versatile tool that allows you to setup a lot of on-off type systems. It listens to inputs or custom G/M-codes, and outputs to GPIO pins ​or outputs ​custom G/M-codes.+It is an incredibly versatile tool that allows you to setup a lot of on-off type systems. It listens to input pins and outputs ​custom G/M-codes or accepts ​custom G/​M-codes ​and set outputs to GPIO pins.
  
 This allows you to do one of the following : This allows you to do one of the following :
-* Make a G-code control ​GPIO pin +* Make a G-code control ​an output ​GPIO pin 
-* Make a GPIO pin ​cause a G-code to be executed +* Make a GPIO input pin cause a G/M-code to be executed 
-* Make a GPIO pin control another GPIO pin +* Make a GPIO pin control another GPIO pin ​(this may not work anymore) 
-* Make a G-code cause another G-code to be executed+
  
 You can create several different switch modules to fit your needs, within the same configuration file. You can create several different switch modules to fit your needs, within the same configuration file.
 +
 +If you come from the industry, the Switch module is Smoothie'​s implementation of a [[https://​en.wikipedia.org/​wiki/​Programmable_logic_controller|Programmable Logic Controller]] feature.
  
 == Configuration == Configuration
Line 370: Line 372:
  
 This was written with the idea you'd have one endstop for each of your motors. However, assuming this is for the Z axis and you have a Z probe, you can use your probe instead of endstops for the multi-motor levelling simply by replacing the G28s with G30s ( see the zprobe documentation ). This was written with the idea you'd have one endstop for each of your motors. However, assuming this is for the Z axis and you have a Z probe, you can use your probe instead of endstops for the multi-motor levelling simply by replacing the G28s with G30s ( see the zprobe documentation ).
 +
 +
 +==== Using a third party branch that supports this feature by default
 +
 +A new branch has been added by a community member to the [[http://​smoothieware.org/​third-party-branches|third party branches]] section called [[https://​github.com/​Smoothieware/​Smoothieware/​pull/​1431|Slave motors and Endstops]] that supports this feature through simple configuration.