General Purpose I/O Usage Examples - Enhanced I/O Set; Input Interface Example - Switch Input Example (Sinking Input); Figure 2.3.6: Switch Interface To Input, Sinking - Intelligent Motion Systems MDrive17Plus Hardware Reference Manual

Motion control
Table of Contents

Advertisement

General Purpose I/O Usage Examples — Enhanced I/O Set
2
The MDrivePlus
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
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.
Vih = 2.31 V
Vil = 0.99 V
Threshold (nom) = 1.5 V
Iil
= 100 µA
Switch Input, Sinking

Figure 2.3.6: Switch Interface to Input, Sinking

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
****Program***
PG1
MR 20000
H
MR -20000
H
E
PG
Part 2: Connecting and Interfacing
MDrivePlus 2
IOPWR
Internal
pull-up
voltage
65 - 160 uA
IOx
Iil
24.9k ohms
IOGND
Sinking Input Equivalent Circuit
'set IO point x to be a G0 input, active when LOW, sinking
'Move +20000 steps relative to current position
'Hold program execution until motion completes
'Move -20000 steps
'Hold program execution until motion completes
'End program, exit program mode
2
The internal pull-up voltage
cannot provide output
current / voltage
3.3 V
100k ohms
detect
logic
application examples are
available in Appendix D: I/O
Applications Guide.
Motion Control
NOTE: Advanced
I/O interface circuit
diagrams and
2-19

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?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents