TDT RZ2 Manual page 641

System 3 series. rz z series
Table of Contents

Advertisement

System 3
Combining the position and column setup...
The following example combines the two data tables and uses one ToBits component
to control the button box's LEDs.
The single data table used in this example contains values that combine the column
and position.
For example:
If 28 is used in the data table, the circuit selects the top LED in the seventh
column. That's because the top position in the seventh column is represented by the
digital number 11100 (as shown below), which equals 28.
D4
1
To learn more about this example, open the LED2 RPvdsEx file in the ButtonBox
example folder (TDT|RPvdsEX|Examples|ButtonBox).
Using a WordOut with a DataTable/ParTag for on/off actions...
The following example uses the WordOut component similarly to the way the WordIn
is used in the button press example. As before, a DataTable is used to determine
which LED to light. In the LED POS DataTable, values 0 - 31 are used to
determine the position of the LED. In addition, another DataTable is used to set
whether the LED is turned ON or OFF, all LED's are turned OFF, or if nothing is
done when the LED is selected. This value gets added to the LED position value
and is sent out via the WordOut component. The values for the second DataTable
are 0 = 0 (nothing done), 1 = 32 (LED ON), 2 = 64 (LED OFF), and 3 =
128 (all LEDs OFF). The cycle usage for this example is half the cycle usage for
the one above it. Notice that there are no BitOut components used. The WordOut
and BitOut components cannot be used in the same circuit.
Column Select Lines
D3
D2
1
1
LED Position Select Lines
D1
D0
0
0
BBOX Button Box
17-23

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for TDT RZ2

Table of Contents