Exhausto Vex 360
Detaljer
- Typ
- Drivrutin
- Upplaggd av
- Ove Jansson, Abelko Innovation
- Version
- 1
- Uppdaterad
- 2013-08-28
- Skapad
- 2013-08-28
- Kategori
- Modbus, Ventilation
- Visningar
- 2662
Beskrivning
Drivrutin
Bruksanvisning
Hur man installerar typdefinitionerna och driftsätter modulerna finns beskrivet i användarmanualen, kapitel 18.7.
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
DEVICETYPE VEX360_1 NAMED "VEX360_1" TYPEID 21334 IS
PARAMETER
Id : "Adress";
PUBLIC
V1 : "Airflow SP" ["%"]DEC1;
V2 : "Temp SP" ["°C"]DEC1; % 100-350 °C
V3 : "FixAirflow SP" ["l/s"];
V4 : "Control mode" [""]; % 0=manual, 1= weelky plan
V5 : "ExtractAirFanSpd" ["%"]DEC1;
V6 : "SupplyAirFanSpd" ["%"]DEC1;
V7 : "AirflowRegStatus" [""]; % 0=off, 1=on
V8 : "AirflowRegMode" [""]; % 0 = OFF 1 = Starting 2 = Dampers opening 3 = Extract air fan starting 4 = Supply air fan starting 5 = Unit is running 6 = Unit is stopping but is doing post ventilation 7 = Dampers are closing
PRIVATE
BAUDRATE 9600;
CHECKSUM MODBUS SWAPPED;
TELEGRAM Read3 NAMED "Read 3" IS
QUESTION
DATA[0] := BYTE(Id); % Enhetens Modbus adress
DATA[1] := HEX(03); % Modbus kommando för att läsa register kod 03
DATA[2] := RWORD(7); % Start address
DATA[4] := RWORD(9); % Antal register att läsa
ANSWER SIZE 23 % (Antal register * 2) + 5
DATA[0] = BYTE(Id);
DATA[1] = BYTE(03);
DATA[2] = BYTE(18); % Antal Bytes
DATA[3] -> RWORD(V1 := DATA/10;);
DATA[5] -> RWORD(V2 := DATA/10;);
DATA[7] -> RWORD(V3 := DATA;);
DATA[19] -> RWORD(V4 := DATA;);
TIMEOUT 600
END;
TELEGRAM Read4 NAMED "Read 4" IS
QUESTION
DATA[0] := BYTE(Id); % Enhetens Modbus adress
DATA[1] := HEX(04); % Modbus kommando för att läsa register kod 04
DATA[2] := RWORD(154); % Start address
DATA[4] := RWORD(13); % Antal register att läsa
ANSWER SIZE 31 % (Antal register * 2) + 5
DATA[0] = BYTE(Id);
DATA[1] = BYTE(04);
DATA[2] = BYTE(26); % Antal Bytes
DATA[3] -> RWORD(V5 := DATA/10;);
DATA[9] -> RWORD(V6 := DATA/10;);
DATA[25] -> RWORD(V7 := DATA;);
DATA[27] -> RWORD(V8 := DATA;);
TIMEOUT 600
END;
END;
DEVICETYPE VEX360ALARM NAMED "VEX360ALARM" TYPEID 21335 IS
PARAMETER
Id : "Adress";
PUBLIC
V1 : "CurrentAlarm1" [""];
V2 : "CurrentAlarm2" [""];
V3 : "CurrentAlarm3" [""];
V4 : "CurrentAlarm4" [""];
V5 : "CurrentAlarm5" [""];
V6 : "CurrentAlarm6" [""];
V7 : "CurrentAlarm7" [""];
V8 : "CurrentAlarm8" [""];
V9 : "CurrentAlarm9" [""];
V10 : "CurrentAlarm10" [""];
V11 : "CurrentAlarm11" [""];
V12 : "CurrentAlarm12" [""];
V13 : "CurrentAlarm13" [""];
V14 : "CurrentAlarm14" [""];
V15 : "CurrentAlarm15" [""];
V16 : "CurrentAlarm16" [""];
PRIVATE
BAUDRATE 9600;
CHECKSUM MODBUS SWAPPED;
TELEGRAM Read4 NAMED "Read 4" IS
QUESTION
DATA[0] := BYTE(Id); % Enhetens Modbus adress
DATA[1] := HEX(04); % Modbus kommando för att läsa register kod 04
DATA[2] := RWORD(185); % Start address
DATA[4] := RWORD(16); % Antal register att läsa
ANSWER SIZE 37 % (Antal register * 2) + 5
DATA[0] = BYTE(Id);
DATA[1] = BYTE(04);
DATA[2] = BYTE(32); % Antal Bytes
DATA[3] -> RWORD(V1 := DATA;);
DATA[5] -> RWORD(V2 := DATA;);
DATA[7] -> RWORD(V3 := DATA;);
DATA[9] -> RWORD(V4 := DATA;);
DATA[11] -> RWORD(V5 := DATA;);
DATA[13] -> RWORD(V6 := DATA;);
DATA[15] -> RWORD(V7 := DATA;);
DATA[17] -> RWORD(V8 := DATA;);
DATA[19] -> RWORD(V9 := DATA;);
DATA[21] -> RWORD(V10 := DATA;);
DATA[23] -> RWORD(V11 := DATA;);
DATA[25] -> RWORD(V12 := DATA;);
DATA[27] -> RWORD(V13 := DATA;);
DATA[29] -> RWORD(V14 := DATA;);
DATA[31] -> RWORD(V15 := DATA;);
DATA[33] -> RWORD(V16 := DATA;);
TIMEOUT 600
END;
END;
DEVICETYPE VEX360_2 NAMED "VEX360_2" TYPEID 21336 IS
PARAMETER
Id : "Adress";
PUBLIC
V1 : "Active profile" [""]; % 0 = Off 1 = Comfort 2 = Standby 3 = Economy
V2 : "TempRegMode" [""]; % 0 = Off 1 = On 2 = Heat 3 = Cool 4 = Heat recovery 5 = Cool recovery
V3 : "Heating1SP" ["%"]DEC1;
V4 : "HeatRecoverySP" ["%"]DEC1;
V5 : "CoolRecoverySP" ["%"]DEC1;
V6 : "CoolingSP" ["%"]DEC1;
V7 : "Supply temp" ["°C"]DEC1;
V8 : "Outdoor temp" ["°C"]DEC1;
V9 : "Exhaust temp" ["°C"]DEC1;
V10 : "Extract temp" ["°C"]DEC1;
V11 : "TE-RPT" ["°C"]DEC1; % Return pipe temperature heating coil 1
V12 : "TE-RPT-X" ["°C"]DEC1; % Return pipe temperature external heating coil 1
V13 : "TE-SPT" ["°C"]DEC1; % Supply pipe temperature heating coil 1
PRIVATE
BAUDRATE 9600;
CHECKSUM MODBUS SWAPPED;
TELEGRAM Read4 NAMED "Read 4" IS
QUESTION
DATA[0] := BYTE(Id); % Enhetens Modbus adress
DATA[1] := HEX(04); % Modbus kommando för att läsa register kod 04
DATA[2] := RWORD(210); % Start address
DATA[4] := RWORD(41); % Antal register att läsa
ANSWER SIZE 87 % (Antal register * 2) + 5
DATA[0] = BYTE(Id);
DATA[1] = BYTE(04);
DATA[2] = BYTE(82); % Antal Bytes
DATA[3] -> RWORD(V1 := DATA;);
DATA[29] -> RWORD(V2 := DATA;);
DATA[31] -> RWORD(V3 := DATA/10;);
DATA[33] -> RWORD(V4 := DATA/10;);
DATA[35] -> RWORD(V5 := DATA/10;);
DATA[37] -> RWORD(V6 := DATA/10;);
DATA[57] -> RWORD(V7 := DATA/10;);
DATA[65] -> RWORD(V8 := DATA/10;);
DATA[71] -> RWORD(V9 := DATA/10;);
DATA[73] -> RWORD(V10 := DATA/10;);
DATA[79] -> RWORD(V11 := DATA/10;);
DATA[81] -> RWORD(V12 := DATA/10;);
DATA[83] -> RWORD(V13 := DATA/10;);
TIMEOUT 600
END;
END;
PARAMETER
Id : "Adress";
PUBLIC
V1 : "Airflow SP" ["%"]DEC1;
V2 : "Temp SP" ["°C"]DEC1; % 100-350 °C
V3 : "FixAirflow SP" ["l/s"];
V4 : "Control mode" [""]; % 0=manual, 1= weelky plan
V5 : "ExtractAirFanSpd" ["%"]DEC1;
V6 : "SupplyAirFanSpd" ["%"]DEC1;
V7 : "AirflowRegStatus" [""]; % 0=off, 1=on
V8 : "AirflowRegMode" [""]; % 0 = OFF 1 = Starting 2 = Dampers opening 3 = Extract air fan starting 4 = Supply air fan starting 5 = Unit is running 6 = Unit is stopping but is doing post ventilation 7 = Dampers are closing
PRIVATE
BAUDRATE 9600;
CHECKSUM MODBUS SWAPPED;
TELEGRAM Read3 NAMED "Read 3" IS
QUESTION
DATA[0] := BYTE(Id); % Enhetens Modbus adress
DATA[1] := HEX(03); % Modbus kommando för att läsa register kod 03
DATA[2] := RWORD(7); % Start address
DATA[4] := RWORD(9); % Antal register att läsa
ANSWER SIZE 23 % (Antal register * 2) + 5
DATA[0] = BYTE(Id);
DATA[1] = BYTE(03);
DATA[2] = BYTE(18); % Antal Bytes
DATA[3] -> RWORD(V1 := DATA/10;);
DATA[5] -> RWORD(V2 := DATA/10;);
DATA[7] -> RWORD(V3 := DATA;);
DATA[19] -> RWORD(V4 := DATA;);
TIMEOUT 600
END;
TELEGRAM Read4 NAMED "Read 4" IS
QUESTION
DATA[0] := BYTE(Id); % Enhetens Modbus adress
DATA[1] := HEX(04); % Modbus kommando för att läsa register kod 04
DATA[2] := RWORD(154); % Start address
DATA[4] := RWORD(13); % Antal register att läsa
ANSWER SIZE 31 % (Antal register * 2) + 5
DATA[0] = BYTE(Id);
DATA[1] = BYTE(04);
DATA[2] = BYTE(26); % Antal Bytes
DATA[3] -> RWORD(V5 := DATA/10;);
DATA[9] -> RWORD(V6 := DATA/10;);
DATA[25] -> RWORD(V7 := DATA;);
DATA[27] -> RWORD(V8 := DATA;);
TIMEOUT 600
END;
END;
DEVICETYPE VEX360ALARM NAMED "VEX360ALARM" TYPEID 21335 IS
PARAMETER
Id : "Adress";
PUBLIC
V1 : "CurrentAlarm1" [""];
V2 : "CurrentAlarm2" [""];
V3 : "CurrentAlarm3" [""];
V4 : "CurrentAlarm4" [""];
V5 : "CurrentAlarm5" [""];
V6 : "CurrentAlarm6" [""];
V7 : "CurrentAlarm7" [""];
V8 : "CurrentAlarm8" [""];
V9 : "CurrentAlarm9" [""];
V10 : "CurrentAlarm10" [""];
V11 : "CurrentAlarm11" [""];
V12 : "CurrentAlarm12" [""];
V13 : "CurrentAlarm13" [""];
V14 : "CurrentAlarm14" [""];
V15 : "CurrentAlarm15" [""];
V16 : "CurrentAlarm16" [""];
PRIVATE
BAUDRATE 9600;
CHECKSUM MODBUS SWAPPED;
TELEGRAM Read4 NAMED "Read 4" IS
QUESTION
DATA[0] := BYTE(Id); % Enhetens Modbus adress
DATA[1] := HEX(04); % Modbus kommando för att läsa register kod 04
DATA[2] := RWORD(185); % Start address
DATA[4] := RWORD(16); % Antal register att läsa
ANSWER SIZE 37 % (Antal register * 2) + 5
DATA[0] = BYTE(Id);
DATA[1] = BYTE(04);
DATA[2] = BYTE(32); % Antal Bytes
DATA[3] -> RWORD(V1 := DATA;);
DATA[5] -> RWORD(V2 := DATA;);
DATA[7] -> RWORD(V3 := DATA;);
DATA[9] -> RWORD(V4 := DATA;);
DATA[11] -> RWORD(V5 := DATA;);
DATA[13] -> RWORD(V6 := DATA;);
DATA[15] -> RWORD(V7 := DATA;);
DATA[17] -> RWORD(V8 := DATA;);
DATA[19] -> RWORD(V9 := DATA;);
DATA[21] -> RWORD(V10 := DATA;);
DATA[23] -> RWORD(V11 := DATA;);
DATA[25] -> RWORD(V12 := DATA;);
DATA[27] -> RWORD(V13 := DATA;);
DATA[29] -> RWORD(V14 := DATA;);
DATA[31] -> RWORD(V15 := DATA;);
DATA[33] -> RWORD(V16 := DATA;);
TIMEOUT 600
END;
END;
DEVICETYPE VEX360_2 NAMED "VEX360_2" TYPEID 21336 IS
PARAMETER
Id : "Adress";
PUBLIC
V1 : "Active profile" [""]; % 0 = Off 1 = Comfort 2 = Standby 3 = Economy
V2 : "TempRegMode" [""]; % 0 = Off 1 = On 2 = Heat 3 = Cool 4 = Heat recovery 5 = Cool recovery
V3 : "Heating1SP" ["%"]DEC1;
V4 : "HeatRecoverySP" ["%"]DEC1;
V5 : "CoolRecoverySP" ["%"]DEC1;
V6 : "CoolingSP" ["%"]DEC1;
V7 : "Supply temp" ["°C"]DEC1;
V8 : "Outdoor temp" ["°C"]DEC1;
V9 : "Exhaust temp" ["°C"]DEC1;
V10 : "Extract temp" ["°C"]DEC1;
V11 : "TE-RPT" ["°C"]DEC1; % Return pipe temperature heating coil 1
V12 : "TE-RPT-X" ["°C"]DEC1; % Return pipe temperature external heating coil 1
V13 : "TE-SPT" ["°C"]DEC1; % Supply pipe temperature heating coil 1
PRIVATE
BAUDRATE 9600;
CHECKSUM MODBUS SWAPPED;
TELEGRAM Read4 NAMED "Read 4" IS
QUESTION
DATA[0] := BYTE(Id); % Enhetens Modbus adress
DATA[1] := HEX(04); % Modbus kommando för att läsa register kod 04
DATA[2] := RWORD(210); % Start address
DATA[4] := RWORD(41); % Antal register att läsa
ANSWER SIZE 87 % (Antal register * 2) + 5
DATA[0] = BYTE(Id);
DATA[1] = BYTE(04);
DATA[2] = BYTE(82); % Antal Bytes
DATA[3] -> RWORD(V1 := DATA;);
DATA[29] -> RWORD(V2 := DATA;);
DATA[31] -> RWORD(V3 := DATA/10;);
DATA[33] -> RWORD(V4 := DATA/10;);
DATA[35] -> RWORD(V5 := DATA/10;);
DATA[37] -> RWORD(V6 := DATA/10;);
DATA[57] -> RWORD(V7 := DATA/10;);
DATA[65] -> RWORD(V8 := DATA/10;);
DATA[71] -> RWORD(V9 := DATA/10;);
DATA[73] -> RWORD(V10 := DATA/10;);
DATA[79] -> RWORD(V11 := DATA/10;);
DATA[81] -> RWORD(V12 := DATA/10;);
DATA[83] -> RWORD(V13 := DATA/10;);
TIMEOUT 600
END;
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.