Panasonic HL-C2 Series User Manual page 90

Ultra high-speed, high-accuracy laser displacement sensor
Hide thumbs Also See for HL-C2 Series:
Table of Contents

Advertisement

Chapter 3 Control Examples
// Memory initialization
ret = HLC2_ExecMemInitialize(hlc2Handle, MEMINI_1, BCC_OFF)
if ( ret != HLC2_OK) {
// Head A laser ON
dwLaser = LASERON;
ret = HLC2_HeadLaserOff(hlc2Handle, HEADA, IO_OUT, &dwLaser, BCC_OFF)
if ( ret != HLC2_OK) {
3
// OUT1 measurement value loading */
ret= HLC2_GetMeasureValue(hlc2Handle,OUT1, &MeasureValue, BCC_OFF);
if (ret != HLC2_OK) {
// Head A laser OFF
dwLaser = LASEROFF;
ret = HLC2_ HeadLaserOff (hlc2Handle, HEADA, IO_OUT, &dwLaser, BCC_OFF)
if ( ret != HLC2_OK) {
// HLC2 close
HLC2_Close(hlc2Handle);
if (ret !=HLC2_OK) {
return TRUE;
]
// Memory initialization failed
return FALSE;
}
// Head A laser control ON failed
return FALSE;
}
// OUT1 measurement value loading failed */
return FALSE;
}
// Head A laser control OFF failed
return FALSE;
}
// HLC2 close failed
return FALSE;
}
3-4

Advertisement

Table of Contents
loading

Table of Contents