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/04/13 17:54]
wolfmanjm
switch [2020/04/09 20:44] (current)
arthur
Line 9: Line 9:
 * Make a GPIO pin cause a G-code to be executed * Make a GPIO pin cause a G-code to be executed
 * Make a GPIO pin control another GPIO pin * Make a GPIO pin control another GPIO pin
-* 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.
  
  
Line 382: Line 389:
 switch.vac1read.enable ​                          ​true ​           # switch.vac1read.enable ​                          ​true ​           #
 switch.vac1read.input_pin ​                      ​3.26 ​            # switch.vac1read.input_pin ​                      ​3.26 ​            #
-switch.vac1read.input_type ​                     digital ​         # just an on or off pin 
 </​code>​ </​code>​