owGetFamily (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All devices with 1-Wire

Firmware version:

2.80 / 1.00.00


This function returns the family code of a known device previously found with owSearchX, owSearch, or owiButtonGetID.

 

Input:

device        : INT [1..50] (default 1)

Device number of a found device across all family codes.

 

Returns: INT

> 0


1-Wire family code.

-1


1-Wire not supported on target.

-2


Device not found.

-3


Illegal device number.

 

Declaration:

FUNCTION owGetFamily : INT;
VAR_INPUT
  device   : INT := 1;
END_VAR;

 

 


Example:

 

Please see the "Examples - Generic OneWire Example"