2-17
Part 2: Connections and Interface
Input Interface Example - Switch Input Example (Sourcing Input)
The following circuit example shows a switch connected between an I/O point and a voltage supply which will
source the input to perform a function.
Code Sample
For the code sample, the switch will be set up as a Soft Stop sourcing input, active when HIGH. When
pressed, the switches will stop the motor.
S1=5,1,1
‘set IO point 1 to be a Soft Stop input, active when HIGH,
‘sourcing
SL 200000
‘enter this to slew the motor at 200000 µsteps/sec
When the switch is depressed the motor will decelerate to a stop.
Switch Input, Sourcing
Internal
pull-up
voltage
detect
logic
40 - 135 uA
24.9k ohms
100k ohms
3.3 V
The internal pull-up voltage
cannot provide output
current / voltage
IOx
GND
Iih
MDrivePlus Sourcing Input Equivalent
Vih = 2.31 V
Vil = 0.99 V
Threshold (nom) = 1.5 V
Iih = -1.24 mA
Up to
+24 VDC
+
Figure 2.3.6: Sourcing Input Example using a Push Button Switch
Summary of Contents for MDrive 34 Plus Series
Page 12: ...1 6 MDrive34Plus Motion Control Hardware Revision R080106 Page Intentionally Left Blank ...
Page 24: ...1 18 MDrive34Plus Motion Control Hardware Revision R080106 Page Intentionally Left Blank ...
Page 26: ...2 2 MDrive34Plus Motion Control Hardware Revision R080106 ...
Page 50: ...2 26 MDrive34Plus Motion Control Hardware Revision R080106 Page Intentionally Left Blank ...