Interfacing The Analog Input; Sample Usage; Figure 2.10 Analog Input Interface - IMS 17 Operating Instructions Manual

Motion control
Table of Contents

Advertisement

I n t e r f a c i n g t h e A n a l o g I n p u t
The analog input of the MDrive Motion Control is a 0 to 5V, 10 bit resolution input. This offers the user the ability to receive input
from temperature, pressure or other forms of sensors, 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 1024, where 0 = 0 volts and 5 = 5.0 volts. You
may then use the program branch (BR) or subroutine call (CL) instructions to control events within the system.
S a m p l e U s a g e
'*********Main Program***********
PG 100
LB A1
CL A2, I5<500
CL A3, I5>524
BR A1
E
PG
'*********Subroutines************
LB A2
MA 2000
H
RT
LB A3
MA -2000
H
RT
'start prog. at address 100
'label program A1
'Call Sub A2, If I5 is less than 500
'Call Sub A3, If I5 is greater than 524
'loop to A1
'End
'Exit program
'label subroutine A2
'Move Absolute 2000 steps
'Hold program execution until motion ceases
'return from subroutine
'label subroutine A3
'Move Absolute -2000 steps
'Hold program execution until motion ceases
'return from subroutine
Figure 2.10: Analog Input Interface
25

Advertisement

Table of Contents
loading

This manual is also suitable for:

Excellence in motion mdrive17

Table of Contents