2-19
Part 2: Connections and Interface
General Purpose I/O Usage Examples — Enhanced I/O Set
The MDrivePlus
2
models add the functionality of either an additional 4 I/O points or an optional interface
for a user-defined remote encoder. Additionally, the I/O points, when configured as outputs have the added
functionality of being configured as sinking or sourcing outputs.
The circuit examples below illustrate possible interface examples for using the MDrivePlus
2
Motion Control
Digital I/O. Additional diagrams and code samples are available in Appendix D: I/O Applications Guide.
The code samples included with these examples will also serve to introduce the user to MDrivePlus Motion
Control programming . Please reference the MDrive software manual for more information on the Instruc-
tions, Variables and Flags that make up the MDI command set as well as material on setting up and using the
IMS Terminal.
Input Interface Example - Switch Input Example (Sinking Input)
The following circuit example shows a switch connected between an I/O point and I/O Ground.
Code Sample
For the code sample, this switch will be set up as a G0 sinking input, active when low. When
pressed, the switch will launch the program beginning at address1 in MDrive memory:
***Setup Variables***
Sx=4,0,0
‘set IO point x to be a G0 input, active when LOW, sinking
****Program***
PG1
MR 20000
‘Move +20000 steps relative to current position
H
‘Hold program execution until motion completes
MR -20000
‘Move -20000 steps
H
‘Hold program execution until motion completes
E
PG
‘End program, exit program mode
Internal
pull-up
voltage
detect
logic
24.9k ohms
100k ohms
3.3 V
The internal pull-up voltage
cannot provide output
current / voltage
IOPWR
IOGND
Iil
65 - 160 uA
MDrivePlus2
IOx
Vih = 2.31 V
Vil = 0.99 V
Threshold (nom) = 1.5 V
Iil = 100 µA
Switch Input, Sinking
Sinking Input Equivalent Circuit
Figure 2.3.8: Switch Interface to Input, Sinking
NOTE: Advanced
I/O interface circuit
diagrams and
application examples are
available in Appendix D: I/O
Application Guide.
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 ...