Triangulation Laser Sensors, RF605 Series
RF605 [Revision 2.0] 10th January 2011 valid for sensors with serial numbers 11000 and higher
26
15.6. Restoration of default parameters from FLASH-memory
(RF60x_RestoreFromFlash)
The function
RF60x_RestoreFromFlash
restores all parameter values in the FLASH by
default:
Parameters:
hCOM
–
descriptor of the device obtained from function
RF60x_OpenPort or CreateFile;
bAddress
-
address of the device.
Returned value:
If the device does not respond to request to restore all parameters in the FLASH-
memory, the function returns FALSE, otherwise, if restore confirm is obtained from the
sensor, the function returns TRUE.
15.7. Latching of the current result (RF60x_LockResult)
The function
RF60x_LockResult
latches current measurement result till next calling of
the function RF60x_LockResult:
Parameters:
hCOM
–
descriptor of the device obtained from function
RF60x_OpenPort or CreateFile;
bAddress
-
address of the device.
Returned value:
If the device does not respond to result-latching request, the function returns FALSE,
otherwise the function returns TRUE.
15.8. Getting measurement result (RF60x_Measure)
The function
RF60x_Measure
reads current measurement value from the sensor. The
result value (D) transmitted by the sensor is normalized in such a way as the value of
4000h (16384) corresponds to full range of the sensor (
S в мм), the result in mm is ob-
tained by the following formula: X=D*S/4000h (mm)
:
Parameters:
hCOM
–
descriptor of the device obtained from function
RF60x_OpenPort or CreateFile;
bAddress
-
address of the device.
lpusValue
-
pointer to USHORT/WORD-type variable containing
the result D.
BOOL RF60x_LockResult(
HANDLE
hCOM,
BYTE
bAddress
);
BOOL RF60x_RestoreFromFlash(
HANDLE
hCOM,
BYTE
bAddress
);
BOOL RF60x_Measure(
HANDLE
hCOM,
BYTE
bAddress,
USHORT *
lpusValue
);
Содержание RF603 Series
Страница 1: ......