FB example fetching temperature from all Dallas sensors on the bus. More...
Go to the source code of this file.
Variables | |
VAR | io = NEW PruIo() |
Pointer to libpruio instance. | |
VAR | w1 = NEW PruW1(io, P9_15, PRUW1_PARPOW + PRUW1_PULLUP) |
Create new libpruw1 instance. | |
VAR | res = CAST(UBYTE PTR, @.DRam[4]) |
pointer to measurement data More... | |
VAR | crc = .calcCrc(9) |
The checksum (0 = OK). | |
FB example fetching temperature from all Dallas sensors on the bus.
This example demonstrates how to
Check the output for enabled monitoring feature as well, see section Monitoring Feature for details.
Definition in file dallas.bas.
VAR res = CAST(UBYTE PTR, @.DRam[4]) |
pointer to measurement data
check presense pulse (0 = OK).
Definition at line 51 of file dallas.bas.