owWriteBit (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 write a single bit to the 1-Wire net. A device must first have been selected with owAccess. If the lock has not been acquired, no data will be transmitted.

 

 

Input:

data : BOOL

Value to send.

 

Returns: INT

0


Successful.

-1


1-Wire not supported on target.

 

Declaration:

FUNCTION owWriteBit : INT;
VAR_INPUT
  data : BOOL;
END_VAR

 


Example:

 

Please see the "Examples - Generic OneWire Example"