Configuration information byte, 7ć16 – Rockwell Automation 6008-SI IBM PC I/O SCNNR 6008-SI User Manual
Page 83

Chapter 7
Scanner Management
7-16
You can extract the configuration 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 ]
or use the cfg_info macro to do the same thing.
cfg_info
This macro obtains the configuration byte for a particular adapter from the
QMR-type packet returned from an autoconfigure or link-status request.
Calling sequence:
status = cfg_info(
&packet, rack, group
);
Arguments:
packet:
a QMR structure, assumed to contain status SC_OK after an
autoconfigure or link status request. Note that the actual argument is a
pointer to the packet.
rack:
logical rack number, 0 to 7.
group:
starting group number, an even number from 0 to 6.
Returned values:
an
integer
that can then be examined for the status bits described below
(leading characters SL_). If you prefer, you can call the xlat_cfg
function to convert the status bits to an English language string; see
”Print or Display Results” in this chapter.
Configuration Information
Byte