User manual

Programming
Examples
C-6
Example #1: Dual Communication Channels (continued)
The
last step may be skipped (using a JMP statement) if C3 and C4 are on.
These last steps are implemented in order to determine exactly which
stations are down. They also provide the P/C with the knowledge that it
should not use data from the particular station being checked if it is
determined not to be active. After determining which channel is active,
each station is checked by making sure that the appropriate bit is set in the
network active list (
BITP instruction).
NOTE:
The manner in which the TI530 Class P/C reads data is the reverse
from Peerlink. For example, in Peerlink, status word 1 looks like this:
16
0
1514131211109876543 21
00 000 00 11111111
BIT
VALUE
MSB LSB
In using the BITP instruction, bit 1 in Peerlink would be bit 16 for the
TI530 Class P/C.
T
able C-1
Variables
List for Example #1
Data Areas
Used Description
V1-128 Peerlink
data table
V300
Mask value for WX3 bits 1
1
10 0000 0000 1
111
V301
WX3 after unused bits are cleared
V302
Expected WX3 value 0010 0000 0000 0010
V303
Active station list for active channel
V304
Expected value of active list
C1 T
urns on if module configuration is correct
C2 T
urns on if Channel B is being used
C3 T
urns on if Channel A active list is correct
C4 T
urns on if Channel B active list is correct
C5 T
urns on if configuration is OK to proceed
C7
Station 1 data valid
C8
Station 3 data valid