![Acuity AccuRange AR500 User Manual Download Page 36](http://html1.mh-extra.com/html/acuity/accurange-ar500/accurange-ar500_user-manual_2844429036.webp)
AR500 User’s Manual
LLL00xxxx – Rev 1.0
29
10.3
Device identification (RF60x_HelloCmd)
The function RF60x_HelloCmd makes identification of RF60x according to net
address and fills RF60xHELLOANSWER structure:
Where:
bDeviceType
– one byte value, which shows type of the device
(for RF60x this value is equal 60) (type BYTE);
bDeviceModificaton
–
one byte value, which shows firmware release
(type BYTE);
wDeviceSerial
– two byte value, which contains serial number of
the device (type WORD);
wDeviceMaxDistance
– two byte value, which contains the base distance
of RF60Х sensor (type WORD);
wDeviceRange
– two byte value, which contains the measurement
range of RF60Х sensor (tpe WORD).
The function RF60x_HelloCmd:
Parameters:
hCOM
–
descriptor of the device obtained from function
RF60x_OpenPort or CreateFile;
bAddress
-
device address;
lprfHelloAnswer
-
pointer to the RF60xHELLOANSWER structure.
Returned value:
If the device does not respond to identification request, the function returns
FALSE, otherwise the function returns TRUE and fills variable
RF60xHELLOANSWER structure.
typedef struct _RF60x_HELLO_ANSWER_ {
BYTE
bDeviceType;
BYTE
bcDeviceModificaton;
WORD
wDeviceSerial;
WORD
wDeviceMaxDistance;
WORD
wDeviceRange;
}
RF60xHELLOANSWER,
*LPRF60xHELLOANSWER;
BOOL RF60x_HelloCmd (
HANDLE
hCOM,
BYTE
bAddress,
LPRF60xHELLOANSWER
lprfHelloAnswer
);