Skip to content

Commit

Permalink
Added more information on Modbus implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
fredlcore committed Dec 11, 2023
1 parent bbaceee commit bf54200
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions BSB_LAN/custom_functions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,20 @@ Theoretically, you can use several of these custom functions at the same time, a

## DHT22_sensor_controls_fan

This script reads the temperatures from two DHT22 sensors (one outside and one inside) and turns on a fan connected to GPIO 6 in case the
absolute inside humidity is higher than the absolute outside humidity and the inside temperature is higher than 15 degrees celsius.
This script reads the temperatures from two DHT22 sensors (one outside and one inside) and turns on a fan connected to GPIO 6 in case the absolute inside humidity is higher than the absolute outside humidity and the inside temperature is higher than 15 degrees celsius.

## Map_DS18B20_sensors_to_custom_floats

This script takes the readings of DS18B20 sensors and writes them to the custom floats parameters (20700 and above) for easier access.

## Modbus_Interface

This set of scripts enable BSB-LAN to be accessed via Modbus. Parameters can be read and written. However, take note that no data type
conversion takes place in this script, so only unsigned 16-bit integer values will be transmitted correctly. All other kinds of data
types will have to be encoded/decoded accordingly.
This set of scripts enable BSB-LAN to be accessed via Modbus. Parameters can be read and written. However, take note that no data type conversion takes place in this script, so only unsigned 16-bit integer values will be transmitted correctly. All other kinds of data types will have to be encoded/decoded accordingly. If you can live with sending/receiving temperature values with their decimal places removed, you can use this script for example to set setpoint temperatures, query outside temperatures or change operation modes without having to worry about conversions.

## Send_NTP_time_to_heater

This script connects to an NTP time server and writes the accurate time to the heater's internal clock.

## Send_room_temperature_based_on_MAX_thermostats

This script collects the current temperature of registered MAX! thermostats, calculates an avaerage and sends this average as the current
room temperature to the heater (via parameter 10000).
This script collects the current temperature of registered MAX! thermostats, calculates an avaerage and sends this average as the current room temperature to the heater (via parameter 10000).

0 comments on commit bf54200

Please sign in to comment.