Fault and fault dependent group information byte, 7ć17 – Rockwell Automation 6008-SI IBM PC I/O SCNNR 6008-SI User Manual
Page 84

Chapter 7
Scanner Management
7-17
Configuration Information Bit Fields
The fields listed in Table 7.A are defined in the low byte of the word of
information about each adapter, which can be extracted by using the
cfg_info function described above:
Table 7.A
Configuration Information Bit Field Descriptions
Bit Field
Hex Value
Description
SL_IN_SCAN
10 (hex)
true (1) if the adapter is in the current scan list. If this bit is
zero, the other bits in the link status word are meaningless.
SL_EXISTS
08 (hex)
true (1) if an adapter is attached (or was attached earlier in the
same execution of the program) and begins at this address. If
this bit is zero, the bit fields listed below are meaningless.
SL_KNOWN
04 (hex)
true (1) if the adapter type, size, and address are valid. If this
bit is zero, the bit fields listed below are meaningless.
SL_SIZE
03 (hex)
size of the adapter, measured in 1/4 rack units: values 0 to 3
represent 1/4 rack, 1/2 rack, 3/4 rack, and a full rack.
SL_NODE
40 (hex)
true (1) if this is a node adapter.
SL_FAST_NA
80 (hex)
true (1) if this is a fast node adapter.
SL_SNGL_PT
20 (hex)
true (1) if this is a singleĆpoint I/O adapter.
You can test for any of the above conditions by ANDing the information
byte with the bit name.
You can extract the fault information byte for any adapter, based on the
rack and starting group of the adapter. Either access an element of the
qmr_data array, like this:
packet.qmr_data[ 8*rack + group + 1 ];
or use the flt_info macro to do the same thing.
flt_info
Extracts fault information byte. This macro obtains the fault byte for a
particular adapter from the QMR type packet returned from an
autoconfigure or a link status request.
Calling sequence:
status = flt_info(
&packet, rack, group
);
Fault and Fault Dependent
Group Information Byte