IMS MicroLYNX Quick Manual page 33

Hide thumbs Also See for MicroLYNX:
Table of Contents

Advertisement

When using the IO variable
on a single line, use the logic
state, either 0 or 1. When
using it on an entire group, use
the decimal equivalent, or
0 to 63 of the 6 bit number
represented by the group!
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
When addressing the I/O as a group, the LSB (Least Significant Bit) will be
line 1 of the group (e.g. 21, 31, 41, 51). The MSB (Most Significant Bit) will be
line 6 of the group (e.g. 26, 36, 46, 56).
This first exercise
will illustrate setting
the I/O as a group
using outputs. In the
second exercise a
short program is
used to set the I/O
group up as a binary
counter.
To perform these
exercises you will need
six (6) LED's with
current limiting resis-
tors and a 9 volt battery or equiva-
lent +5 to +24VDC power supply.
It is possible to perform these
exercises without connecting
anything to the I/O, however, the
LED's clearly show how the I/O is
being utilized as a group.
I O V a r i a b l e E x e r c i s e # 1
BIT W E IG H T D IS TR IB U TIO N TAB LE
F O R G R O U P 20 I/O
I/O 2 6
I/O 2 5
I/O 2 4
I/O 2 3
I/O 2 2
M SB
3 2
1 6
8
4
2
BIN A RY STAT E O F I/O G R O U P 20
IO 20 = 35
1
0
0
0
1
I/O 2 6
I/O 2 5
I/O 2 4
I/O 2 3
I/O 2 2
M SB
BIN A RY STAT E O F I/O G R O U P 20
IO 20 = 7
0
0
1
0
1
I/O 2 6
I/O 2 5
I/O 2 4
I/O 2 3
I/O 2 2
M SB
BIN A RY STAT E O F I/O G R O U P 20
IO 20 = 49
1
1
0
0
0
I/O 2 6
I/O 2 5
I/O 2 4
I/O 2 3
I/O 2 2
M SB
Table 8.1: Binary State of Outputs
V P U LL
I/O 21
I/O 22
I/O 23
I/O 24
I/O 25
I/O 26
I/O G N D
Figure 8.6: IO Variable Exercise Setup
Setup your I/O group in accordance with the
figure 8.6. The pull-up switches on the
I/O 2 1
MicroLYNX should be ON.
L S B
1
The table on the left shows the bit weight of
each I/O line in the group. It also illustrates the
LED's and their state that should appear when
entering the IO variables in this exercise.
Configure the IOS variable such that group 20 is
1
all general purpose outputs, active low or:
I/O 2 1
L S B
IOS 20 = 0,1,0
Enter the following in the terminal:
IO 20 = 35
As shown in the table, I/O lines 26, 22 and 21
1
should be illuminated and 25, 24 and 23 should
I/O 2 1
be off.
L S B
Enter this next:
IO 20 = 7
Now I/O 21, 22 and 23 should be illuminated.
1
IO 20 = 49
I/O 2 1
L S B
I/O 26, 25, and 21 are illuminated.
+
9V
B attery
31

Advertisement

Table of Contents
loading

Table of Contents