IMS MicroLYNX Quick Manual page 44

Hide thumbs Also See for MicroLYNX:
Table of Contents

Advertisement

D
f i
e f
C
h
a
C
h
a
C
h
a
C
h
a
n I
n I
+
5
G
N
m
a
n
u
a f
c
o
n
n
e
c
o t
T e s t i n g Y o u r E n c o d e r S e t u p
Now that your encoder is connected, let's test the setup and verify
its operation by typing the following into your terminal:
'set munits to correspond with MSEL=256
MUNIT=51200
'set the encoder units variable EUNIT to the number = 4 x
'encoder resolution, ie 500 line encoder x 4 = 2000,
'200 line encoder x 4 = 800 etc.
EUNIT=2000
'Set the stall factor variable to 10% of EUNIT (10% of a
'revolution
STLF=200
'Enable encoder functions
EE=1
POS=0
CTR2=0
SAVE
Test the encoder setup by entering the following into your terminal:
MOVR 10
PRINT POS 'we read the POS variable, it should say "10.000"
PRINT CTR2
I n t r o d u c i n g T h e E U N I T ( E n c o d e r U N I T S ) V a r i a b l e
During open loop operation, the MicroLYNX takes the number of clock pulses
registered on CTR1, scales that number using the MUNIT variable and then writes
the result to the position variable POS.
For closed loop operation, where the encoder functions are enabled (EE=1), the
MicroLYNX takes the number of clock pulses registered on CTR2, scales them by
42
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
E
n
c
o
d
r e
C
o
n
E
n
c
o
d
r e
S
g i
n
l a
e r
n
i t
l a
S
n i
g
e l
n
n
l e
A
+
C
h
a
n
n
l e
A
n
n
l e
- A
n
n
l e
B
+
C
h
a
n
n
l e
B
n
n
l e
- B
d
e
x
+
n I
d
e
x
d
e
x
-
V
D
C
+
5
V
D
C
N
D
G
N
D
O
T
: E
M I
S
d
f i
e f
e r
t n
a i
e l
c n
o
d
r e
o f
o l l
w
h t
e
c
u t
e r
d
b
y
H
P
r o
M I
S
a
1
0
c
o
n
d
c u
o t
" r
t s
s r
c
a
n
b
e
c
o
n
n
e
c
e t
d
i d
e r
c
y l t
b
e
w t
e
e
n
V
e
s r
o i
) n
Table 9.5: Expansion Slot 2 Encoder Connections
'set position counter to 0
'set counter 2 to 0
'save the aforementioned settings.
'the motor moves 10 revolutions (we hope)
'we read CTR2, it should read 10 X EUNIT, or 20000
n
e
t c
o i
n
s
-
E
x
p
a
n
s
o i
n
l S
t o
#
2
M
c i
o r
L
Y
N
X
I
O /
C
h
a
n
n
l e
8
P
o
s
t i
o i
n
P
h
e
o
n
1
3
+
5
1
- 3
8
1
4
+
6
1
- 4
4
1
7
+
7
1
- 7
1
3
2
H
e
w
e l
t t
P
a
k c
a
d r
p
n i
c
o
f n
g i
r u
t a
o i
. n
T
h
s u
a r
g i
t h
h t
o r
u
g
h
i w
e r
d
r "
b i
b
o
n
c
a
b
e l
i w
h t
h t
e
d
f i
e f
e r
t n
a i
e l
c n
o
d
r e
a
n
d
h t
e
e
p x
a
s n
o i
i w
h t
o
t u
w
r i
n i
g
m
o
i d
c i f
t a
o i
. n
x i
1
0
P
n i
H
e
a
d
e
* r
6
5
8
4
r o
7
1
0
9
2
3
f i
o y
r u
e
c n
o
d
r e
s i
e f
m
a
e l
D
N I
r
b i
b
o
n
c
a
b
e l
n
b
o
a
d r
1 (
0
P
n i
H
e
a
d
r e
The +5VDC output of
the High-Speed I/O is
not designed to power
external devices other
than an encoder!

Advertisement

Table of Contents
loading

Table of Contents