owQuery (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All devices with 1-Wire

Firmware version:

2.80 / 1.00.00


This function will query the number of known devices within a single or all families found with owSearchX, owSearch, or owiButtonGetID.

 

Input:

family        : INT [0..255] (default 0)

Queries number of known devices within this family code.
0 = All known devices

 

Returns: INT

>=0


Number of devices found within given family.

-1


1-Wire not supported on target.

-4


Illegal family code.

 

Declaration:

FUNCTION owQuery : INT;
VAR_INPUT
  family   : INT := 16#00;
END_VAR;

 

 


Example:

 

Please see the "Examples - Generic OneWire Example"