Table of Contents

DS18b20 Filter

DS18b20 Filter Block

Full Name

DS18b20_filter

Library

Lib\Unipi

Version

V1.0

Description

This block ensures valid value of temperature. If set up correctly, it is able to filter an error, that is not corrected by CRC (value 85), if the block detects this value on its input filtered, it will return the last valid value and will set its output error* to TRUE. It is possible to use for a 1-Wire temperature sensor connected directly to the controller or with the Unipi Extension xG18, where input IsValid* will be used and when it is FALSE, the error output will be TRUE.

Inputs

Input Type Description
IN REAL input temperature of the 1-Wire sensor
IsValid BOOL IsValid variable of the channel when used with xG18
filtered REAL value to be filtered-out

Outputs

Output Type Description
OUT REAL valid value of the temperature
error REAL fault state of the input temperature

Application example

Examples of usage of DS18b20 filter block