General Purpose I/O Usage Examples - Enhanced I/O Set; Input Interface Example - Switch Input Example (Sinking Input); Figure 2.4.9: Switch Interface To Input, Sinking - IMS Mforce micro drive Reference

Motion control
Table of Contents

Advertisement

General Purpose I/O Usage Examples — Enhanced I/O Set
The Expanded MForce Plus
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
Vih = 2.31 V
Vil = 0.99 V
Threshold (nom) = 1.5 V
Iil
= 100 µA
Switch Input, Sinking
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
****Program***
PG1
MR 20000
H
MR -20000
H
E
PG
Part 2: Connections and Interface
2
models add the functionality of either an additional 4 I/O points or an optional
MForce Plus 2
IOPWR
Internal
pull-up
voltage
65 - 160 uA
IOx
Iil
24.9k ohms
IOGND
Sinking Input Equivalent Circuit

Figure 2.4.9: Switch Interface to Input, Sinking

'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
The internal pull-up voltage
cannot provide output
current / voltage
3.3 V
100k ohms
detect
logic
NOTE: Advanced
I/O interface circuit
diagrams and
application examples are
available in Appendix B: I/O
Application Guide.
2-29

Advertisement

Table of Contents
loading

Table of Contents