Triangulation Laser Sensors, RF605 Series
RF605 [Revision 2.0] 10th January 2011 valid for sensors with serial numbers 11000 and higher
24
Parameters:
hHandle
–
descriptor of the device obtained from func-
tion RF60x_OpenPort or CreateFile;
Returned value:
If COM-port fails to be closed, the function will return FALSE, otherwise if COM-port was
closed successfully, the function will return TRUE.
15.3. Device identification (RF60x_HelloCmd)
The function
RF60x_HelloCmd
makes identification of RF60x according to net
address and fills
RF60xHELLOANSWER
structure
:
There:
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, oth-
erwise the function returns TRUE and fills variable
RF60xHELLOANSWER
structure
15.4. Reading of parameters (RF60x_ReadParameter)
The function
RF60x_ReadParameter
reads internal parameters of the sensor and re-
turns the current value to the parameters address:
BOOL RF60x_HelloCmd (
HANDLE
hCOM,
BYTE
bAddress,
LPRF60xHELLOANSWER
lprfHelloAnswer
);
typedef struct _RF60x_HELLO_ANSWER_ {
BYTE
bDeviceType;
BYTE
bcDeviceModificaton;
WORD
wDeviceSerial;
WORD
wDeviceMaxDistance;
WORD
wDeviceRange;
} RF60xHELLOANSWER, *LPRF60xHELLOANSWER;
BOOL RF60x_ReadParameter (
HANDLE
hCOM,
BYTE
bAddress,
WORD
wParameter,
DWORD *
lpdwValue
);
Содержание RF603 Series
Страница 1: ......