owWrite (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 byte 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 : SINT [16#00 .. 16#FF]

Data to send.

 

Returns: INT

0


Successful.

-1


1-Wire not supported on target.

 

Declaration:

FUNCTION owWrite : INT;
VAR_INPUT
  data : SINT;
END_VAR

 


Example:

 

Please see the "Examples - Generic OneWire Example"