Input Interface Example - Switch Input Example (Sourcing Input); Figure 2.3.7 Sourcing Input Example Using A Push Button Switch - Intelligent Motion Systems MDrive17Plus Hardware Reference Manual

Motion control
Table of Contents

Advertisement

2-20

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.
Vih = 2.31 V
Vil = 0.99 V
Threshold (nom) = 1.5 V
Iih
= -1.24 mA
Switch Input, Sourcing

Figure 2.3.7 Sourcing Input Example using a Push Button Switch

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.
2
MDrivePlus
IOPWR
Internal
The internal pull-up voltage
pull-up
cannot provide output
voltage
IOx
100k ohms
Iih
24.9k ohms
40 - 135 uA
IOGND
current / voltage
3.3 V
detect
logic
MDI Hardware Manual Revision R050406

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MDrive17Plus and is the answer not in the manual?

Table of Contents