Vallox Air Handling Unit Setting some values
Detaljer
- Typ
- Drivrutin
- Upplaggd av
- Ove Jansson, Abelko Innovation
- Version
- 3
- Uppdaterad
- 2014-03-18
- Skapad
- 2014-02-26
- Kategori
- Övriga protokoll, Värme, Ventilation
- Visningar
- 2591
Beskrivning
This is a driver to set Vallox Air handling unit's supply temperature and cell bypass temperature setting.
The protocol is Vallox Bus Protocol 31.12.20013.
OBS! The unit uses NTC temperature sensors with their own translation table. This driver implements a formula that gives resonable values in the 0-30 degrees Celsius range.
Bruksanvisning
Sender emulates a control panel with address 33-47.
Receiver is one of the units mother boards with address 17-31.
The script has been tested with sender=41 and reciever=17.
Juridisk information
Alla skript tillhandahålls i befintligt skick och all användning sker på eget ansvar. Felaktig använding kan leda till skadad eller förstörd utrustning.
Skript kod
PARAMETER
Sender: "Sender";
Receiver: "Receiver";
S1: "SupplySetting"; % in °C
S2: "CellBypassTemp"; % in °C
PUBLIC
PRIVATE
address;
value;
tmp;
checksum;
count;
BAUDRATE 9600;
CHECKSUM NONE;
TELEGRAM Write NAMED "Write" IS
QUESTION
DATA[0] := BYTE(1); %Domain
DATA[1] := BYTE(Sender);
DATA[2] := BYTE(Receiver);
DATA[3] <- BYTE(
IF (count>1) THEN count := 0; ENDIF;
IF count=0 THEN address := HEX(A4);
ELSIF count=1 THEN address := HEX(AF);
ENDIF;
DATA := address;
);
DATA[4] <- BYTE(
IF count=0 THEN value := S1;
ELSIF count=1 THEN value := S2;
ENDIF;
DATA := ROUND((value-18)*11/4) +155;);
DATA[5] <- BYTE(
tmp := 1 + Sender + Receiver + address + ROUND((value-18)*11/4) +155;
checksum := tmp & 255;
DATA := checksum;
count := count + 1;
);
ANSWER SIZE 1
DATA[0] = BYTE(checksum);
TIMEOUT 1000
END;
Användarnas noteringar
Du måste vara inloggad för att göra en notering. Bli medlem eller logga in. Vi använder en moderator som godkänner noteringarna innan de visas.