Rockwell Automation 6008-SI IBM PC I/O SCNNR 6008-SI User Manual
Page 89

Chapter 7
Scanner Management
7-22
xlat_cfg
Translate a configuration byte to English.
Calling sequence:
explan = xlat_cfg(
config
);
Arguments:
config:
a byte from the array returned by an autoconfigure or link status
call, possibly extracted by the cfg_info routine.
Returned values:
a
character
pointer whose object is a string of 23 characters (22 plus the
terminating zero byte) suitable for printing. This pointer points to an
internal buffer whose contents are destroyed by subsequent calls to
xlat_cfg.
If the SL_IN_SCAN bit is zero, all other fields are meaningless and the
function returns a string containing the message “not in scan list”.
If the SL_IN_SCAN bit is set but the SL_EXISTS it is not, all other
fields are meaningless and the function returns “never responded”.
If the SL_IN_SCAN and SL_EXISTS bits are both set but the
SL_KNOWN bit is not, all other fields are meaningless and the
function returns “responding improperly”. This means that the address,
size, or length information returned by the adapter appears invalid.
If the SL_IN_SCAN, SL_EXISTS, and SL_KNOWN bits are all set,
the other fields are meaningful and the function attempts to interpret
them. The first part of the string contains one of the messages
“1/4_rack”, “half_rack”, “3/4_rack”, or “full_rack” right justified in a
nine character field. Then if one of the adapter type bits is set one of the
three messages “node_adapter”, “fast_node_ad”, and “single_pt_ad”
appears, separated by a space from the size field.
No tabs or newlines are ever included in the returned string.