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/08 17:33]
wolfmanjm [Hobby Servo]
switch [2019/09/28 01:21] (current)
71.231.99.111 [Homing a multi-motor axis.]
Line 50: Line 50:
 switch.fan1.startup_value ​                127 switch.fan1.startup_value ​                127
 </​code>​ </​code>​
 +
 +==== Input and Output Pins
 +**NOTE** a switch can have either an input pin defined or an output pin but not both.
 +If for some reason you needed an input pin to control one or more output pins you could define two (or more) switches, one input and one or more outputs. Then the input pin would define the M-codes that turn on/off the output pins in its output_on_command (and/or its output_off_command).
  
 ==== Input Pin ==== Input Pin
Line 366: Line 370:
  
 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 378: Line 387:
 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>​