DS18b20 Filter

DS18b20 Filter Block

DS18b20_filter

Lib\Unipi

V1.0

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.

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
Output Type Description
OUT REAL valid value of the temperature
error REAL fault state of the input temperature

Examples of usage of DS18b20 filter block

  • © Energocentrum Plus, s.r.o. 2017 - 2024