Hi
I use this, and it work's
check_sensorID:
'************************************************* ****************************
' Check is the sensor connected
'************************************************* ****************************
OWOUT DQ, 1, [ $33 ] ' Read Chip Family code
OWIN DQ, 2, [ FAM,ID[6],ID[5],ID[4],ID[3],ID[2],ID[1],CRC]
if (ID[1] = 0)and (ID[2] = 0)and(ID[3] = 0)and (ID[4] = 0)and (ID[5] = 0)and (ID[6] = 0) then
LcdOut $FE, 1, " NO " ' Show message
Lcdout $FE, $C0, " Sensor "
endif
return
Kent
Bookmarks