Setting The Digital Filtering For The I/O - IMS MicroLYNX Quick Manual

Hide thumbs Also See for MicroLYNX:
Table of Contents

Advertisement

In each case you can calculate the decimal equivalent by adding the weights of
the bits that are set in the I/O group.
Reading the state of inputs will work the very same way. In a real-world example
you may not be using LED's, but rather outputing to, or receiving input from,
PLC inputs or outputs for process control applications. In this case, in your
MicroLYNX program, you may want to call up various subroutines when the
I/O group is at a certain state. This gives you the power of programming up to
63 events in your process controlled by the standard I/O group on the
MicroLYNX.
I O V a r i a b l e E x e r c i s e # 2
In this exercise we will use a short program that will use I/O group 20 as a
binary counter. The program will display the decimal equivalent of the binary
count on the screen. It will also move the motor a short distance and wait 0.25
seconds in between counts.
Type the following into the text editor window and save. Download to
MicroLYNX.
IOS 20 = 0,1,0
IO 20 = 0
PGM 200
LBL IO_CNT
VI=100000
IO 20=IO 20+1
MOVR 10000
HOLD 2
DELAY 250
PRINT
BR IO_CNT, IO 20=<63 'loop to IO_CNT while I/O 20 is lss that 63
PRINT "\nALL DONE!"
END
PGM
EXEC IO_CNT to run the program. The LED's will cycle and the number will
count up on the terminal screen.
S e t t i n g t h e D i g i t a l F i l t e r i n g f o r t h e I / O ( I O F )
User-definable digital filtering
makes the MicroLYNX well
suited for noisy industrial
environments. The IOF variable
allows the user to software select
filter settings ranging from 215
Hz to 27.5 kHz.
The IOF variable has 1 param-
eter with a range of 1 to 7.
These are shown in table 8.2.
32
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
'set I/O group 20 = gen. purp. outputs, active low
'set the state of I/O group 20 to 0
'start program at address 200
'name the program "IO_CNT"
'set the init. velocity = 100,000 munits/sec.
'add 1 to the value of I/O group 20
'move relative 10000 munits
'suspend program until motion completes
'wait 0.25 seconds
"\rThe decimal state of I/O Group 20 is: " IO 20;
'line feed to next line print ALL DONE
F
O I
F
F
t l i
r e
S
e
t t
n i
g
s
f
r o
h t
e
G
e
n
r e
l a
P
O I
F
=
<
n
u
m
>
< (
n
u
m
>
=
C
u
o t
f f
M
i
i n
t l i
r e
S
e
t t
n i
g
F
e r
q
u
e
n
c
y
0
2
7
5 .
k
H
z
1
1
3
7 .
k
H
z
2
6
8 .
9
k
H
z
3
3
4 .
4
k
H
z
4
1
7 .
2
k
H
z
5
8
6
0
H
z
6
4
3
0
H
z
7
d (
e
a f
u
) t l
2
1
5
H
z
Table 8.2: IOF Settings
u
p r
o
s
e
s I
o
a l
e t
d
I
O /
- 0
) 7
m
u
m
D
e
e t
c
a t
b
e l
P
u
s l
e
W
d i
h t
1
8
m
c i
o r
s
e
c
o
n
d
s
3
6
m
c i
o r
s
e
c
o
n
d
s
7
3
m
c i
o r
s
e
c
o
n
d
s
1
4
5
m
c i
o r
s
e
c
o
n
d
s
2
9
0
m
c i
o r
s
e
c
o
n
d
s
5
8
1
m
c i
o r
s
e
c
o
n
d
s
1
1 .
6
2
m
l i
s i l
e
c
o
n
d
s
2
3 .
2
3
m
l i
s i l
e
c
o
n
d
s

Advertisement

Table of Contents
loading

Table of Contents