2-35
Part 2: Connections and Interface
Interfacing the Analog Input
The analog input of the MForce MicroDrive is configured from the factory as a 0 to 5V, 10 bit resolution
input (S5=9). This offers the user the ability to receive input from temperature, pressure, or other forms of sen-
sors, and then control events based upon the input.
The value of this input will be read using the I5 instruction, which has a range of 0 to 1023, where 0 = 0 volts
and 1024 = 5.0 volts. The MForce MicroDrive may also be configured for a 4 to 20 mA or 0 to 20 mA Analog
Input (S5 = 10).
Sample Usage
‘***********Main Program**************
S5=9,0
‘set analog input to read variable voltage (0 to +5VDC)
PG 100
‘start prog. address 100
LB A1
‘label program A1
CL A2, I5<500 ‘Call Sub A2, If I5 is less than 500
CL A3, I5>524 ‘Call Sub A3, If I5 is greater than 524
BR A1
‘loop to A1
‘***********Subroutines**************
LB A2
‘label subroutine A2
MA 2000 ‘Move Absolute 2000 steps
H
‘Hold program execution until motion ceases
RT
‘return from subroutine
LB A3
‘label subroutine A3
MA -2000
‘Move Absolute -2000 steps
H
‘Hold program execution until motion ceases
RT
‘return from subroutine
E
‘End
PG
‘Exit program
Figure 2.4.16: Analog Input - Voltage Mode
+V (0-5VDC/0-10VDC)
10 k Ohm Potentiometer
Voltage Mode
MForce Plus Motion Control
Analog Input
Ground
S5=9,0 'set input +VDC range to 0 - +5 VDC
S5=9,1 'set input +VDC range to 0 - +10 VDC
Содержание 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 ...