2-29
Part 2: Connections and Interface
General Purpose I/O Usage Examples — Enhanced I/O Set
The Expanded MForce Plus
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 Expanded Digital I/O. Addi-
tional diagrams and code samples are available in the I/O Applications Guide appendix.
The code samples included with these examples will also serve to introduce the user to the MCode program-
ming language that is used to operate and program the MForce. Please reference the MCode Programming and
Software Reference manual for more information on the Instructions, Variables and Flags that make up the
MCode 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 MForce 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
MForce Plus2
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.4.9: Switch Interface to Input, Sinking
NOTE: Advanced
I/O interface circuit
diagrams and
application examples are
available in Appendix B: I/O
Application Guide.
Содержание Mforce micro drive
Страница 8: ...vi Page Intentionally Left Blank ...
Страница 14: ...This Page Intentionally Left Blank ...
Страница 16: ...1 8 Motion Control MForce MicroDrive Hardware Manual Revision R112706 Page Intentionally Left Blank ...
Страница 32: ...2 2 Motion Control MForce MicroDrive Hardware Manual Revision R112706 This Page Intentionally Left Blank ...
Страница 68: ...A 2 MForce MicroDrive Motion Control Hardware Manual Revision R112706 ...