2-26
Motion Control MForce MicroDrive Hardware Manual Revision R112706
I/O Usage Examples — MForce MicroDrive Standard I/O Set
The circuit examples below illustrate possible interface examples for using the MForce MicroDrive 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 MForce MicroDrive
programming. Please reference the MForce software manual for more information on the Instructions, Vari-
ables and Flags that make up the MForce MicroDrive 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 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
Switch Input, Sinking
Internal
pull-up
voltage
detect
logic
24.9k ohms
100k ohms
3.3 V
GND
Iil
65 - 160 uA
MForce Plus Sinking Input
Equivalent Circuit
IOx
Vih = 2.31 V
Vil = 0.99 V
Threshold (nom) = 1.5 V
Iil = 100 µA
Figure 2.4.6: Sinking Input Example using a Push Button Switch
NOTE: On the
Standard MForce
MicroDrive, power
ground is used to ground the
I/O interface.
NOTE: Advanced
I/O interface
circuit diagrams
and application
examples are available in
the I/O Applications Guide
Appendix.
Содержание 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 ...