2-16
MDrive34Plus Motion Control Hardware Revision R080106
I/O Usage Examples — MDrivePlus Standard I/O Set
The circuit examples below illustrate possible interface examples for using the MDrivePlus Motion Control
Digital I/O. Additional diagrams and code snippets are available in Appendix D: I/O Application 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 power 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
Switch Input, Sinking
Internal
pull-up
voltage
detect
logic
24.9k ohms
100k ohms
3.3 V
GND
Iil
65 - 160 uA
MDrivePlus Sinking Input
Equivalent Circuit
IOx
Vih = 2.31 V
Vil = 0.99 V
Threshold (nom) = 1.5 V
Iil = 100 µA
Figure 2.3.5: Sinking Input Example using a Push Button Switch
NOTE: On
the Standard
MDrivePlus, power
ground is used to ground the
I/O interface.
NOTE: Advanced
I/O interface
circuit diagrams
and application
examples are available
in Appendix D: I/O
ApplicationsGuide.
Содержание MDrive 34 Plus Series
Страница 12: ...1 6 MDrive34Plus Motion Control Hardware Revision R080106 Page Intentionally Left Blank ...
Страница 24: ...1 18 MDrive34Plus Motion Control Hardware Revision R080106 Page Intentionally Left Blank ...
Страница 26: ...2 2 MDrive34Plus Motion Control Hardware Revision R080106 ...
Страница 50: ...2 26 MDrive34Plus Motion Control Hardware Revision R080106 Page Intentionally Left Blank ...
Страница 52: ...A 2 MDrive34Plus Motion Control Hardware Manual Revision R080106 Page Intentionally Left Blank ...
Страница 66: ...A 16 MDrive34Plus Motion Control Hardware Manual Revision R080106 Page Intentionally Left Blank ...
Страница 82: ...A 32 MDrive34Plus Motion Control Hardware Manual Revision R080106 Page Intentionally Left Blank ...