Skip to content

Commit 49d3d38

Browse files
committed
move hmucode to templates and normalize identifiers, add missing units in preparation of #481 merge
1 parent 3c5a2d8 commit 49d3d38

File tree

2 files changed

+63
-58
lines changed

2 files changed

+63
-58
lines changed

src/vaillant/08.hmu.tsp

Lines changed: 3 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,15 @@ namespace Hmu {
224224
@inherit(r_2)
225225
@ext(0x3d)
226226
model FlowPressure {
227+
@unit("bar")
227228
@divisor(4)
228229
value: D2C;
229230
}
230231

231232
@inherit(r_2)
232233
@ext(0x3e)
233234
model SourcePressure {
235+
@unit("bar")
234236
@divisor(4)
235237
value: D2C;
236238
}
@@ -1457,8 +1459,7 @@ namespace Hmu {
14571459
@inherit(r_7)
14581460
@ext(0x53, 0xd)
14591461
model RunDataStatuscode {
1460-
@values(Values_RunDataStatuscode)
1461-
value: UIN;
1462+
value: hmucode;
14621463
}
14631464

14641465
@inherit(r_7)
@@ -1692,62 +1693,6 @@ namespace Hmu {
16921693
Cooling: 0x02,
16931694
}
16941695

1695-
enum Values_RunDataStatuscode {
1696-
Frost_protection: 34,
1697-
Standby: 100,
1698-
Heating_Compressor_shutdown: 101,
1699-
Heating_Compressor_blocked: 102,
1700-
Heating_Prerun: 103,
1701-
Heating_Compressor_active: 104,
1702-
Heating_Overrun: 107,
1703-
Cooling_Compressor_shutdown: 111,
1704-
Cooling_Compressor_blocked: 112,
1705-
Cooling_Prerun: 113,
1706-
Cooling_Compressor_active: 114,
1707-
Cooling_Overrun: 117,
1708-
Heating_Immersion_heater_active: 125,
1709-
Warm_Water_Compressor_blocked: 132,
1710-
Warm_Water_Prerun: 133,
1711-
Warm_Water_Compressor_active: 134,
1712-
Warm_Water_Immersion_Heater_active: 135,
1713-
Warm_Water_Overrun: 137,
1714-
Heating_Immersion_Heater_shutdown: 141,
1715-
Heating_Immersion_Heater_blocked: 142,
1716-
Warm_Water_Immersion_Heater_shutdown: 151,
1717-
Warm_Water_Immersion_Heater_blocked: 152,
1718-
Air_purging_program_active: 202,
1719-
Compressor_oil_heating_activated: 240,
1720-
Fan_1_blocked: 252,
1721-
Fan_1_air_inlet_too_high: 255,
1722-
Fan_1_air_inlet_too_low: 256,
1723-
Fan_2_blocked: 260,
1724-
Building_circuit_flow_too_low: 275,
1725-
Building_circuit_pump_fault: 277,
1726-
Frequency_converter_fault_Compressor: 280,
1727-
Frequency_converter_fault_Mains_voltage: 281,
1728-
Frequency_converter_fault_Overheating: 282,
1729-
Deicing_time_too_long: 283,
1730-
Deicing_flow_temperature_too_low: 284,
1731-
Compressor_outlet_temperature_too_high: 285,
1732-
Hot_gas_temperature_switch_open: 286,
1733-
Fan_1_Wind: 287,
1734-
Fan_2_Wind: 288,
1735-
Current_limt_active: 289,
1736-
High_pressure_switch_open: 302,
1737-
Compressor_outlet_temperature_too_high_1: 303,
1738-
Evaporation_temperature_too_low: 304,
1739-
Condensation_temperature_too_low: 305,
1740-
Evaporation_temperature_too_high: 306,
1741-
Condensation_temperature_too_high: 308,
1742-
Building_circuit_return_temperature_too_low: 312,
1743-
Building_circuit_return_temperature_too_high: 314,
1744-
Immersion_heater_Flow_temperature_too_high: 351,
1745-
Deicing_active: 516,
1746-
Frequency_converter_fault: 575,
1747-
Connection_fault_frequency_converter: 581,
1748-
_4_port_valve_position_fault: 590,
1749-
}
1750-
17511696
/** included parts */
17521697
union _includes {
17531698
Hcmode_inc,

src/vaillant/_templates.tsp

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,10 @@ model rTimeSlotWithoutTemp {
480480
@values(Values_appliancecode)
481481
scalar appliancecode extends UCH;
482482

483+
/** HMU Status code */
484+
@values(Values_hmucode)
485+
scalar hmucode extends UIN;
486+
483487
enum Values_daysel {
484488
selected: 0,
485489
Mo_Fr: 1,
@@ -742,6 +746,62 @@ enum Values_appliancecode {
742746
frost_protect: 34,
743747
}
744748

749+
enum Values_hmucode {
750+
frost_protect: 34,
751+
standby: 100,
752+
heat_compressor_shutdown: 101,
753+
heat_compressor_blocked: 102,
754+
heat_prerun: 103,
755+
heat_compressor_active: 104,
756+
heat_overrun: 107,
757+
cool_compressor_shutdown: 111,
758+
cool_compressor_blocked: 112,
759+
cool_prerun: 113,
760+
cool_compressor_active: 114,
761+
cool_overrun: 117,
762+
heat_immersion_heater_active: 125,
763+
hwc_compressor_blocked: 132,
764+
hwc_prerun: 133,
765+
hwc_compressor_active: 134,
766+
hwc_immersion_heater_active: 135,
767+
hwc_overrun: 137,
768+
heat_immersion_heater_shutdown: 141,
769+
heat_immersion_heater_blocked: 142,
770+
hwc_immersion_heater_shutdown: 151,
771+
hwc_immersion_heater_blocked: 152,
772+
air_purging_program_active: 202,
773+
compressor_oil_heating_active: 240,
774+
fan1_blocked: 252,
775+
fan1_airinlet_too_high: 255,
776+
fan1_airinlet_too_low: 256,
777+
fan2_blocked: 260,
778+
building_circuit_flow_too_low: 275,
779+
building_circuit_pump_fault: 277,
780+
frequency_converter_fault_compressor: 280,
781+
frequency_converter_fault_mains_voltage: 281,
782+
frequency_converter_fault_overheating: 282,
783+
deicing_time_too_long: 283,
784+
deicing_flow_temp_too_low: 284,
785+
compressor_outlet_temp_too_high: 285,
786+
hot_gas_temp_switch_open: 286,
787+
fan1_wind: 287,
788+
fan2_wind: 288,
789+
current_limt_active: 289,
790+
high_pressure_switch_open: 302,
791+
compressor_outlet_temp_too_high_1: 303,
792+
evaporation_temp_too_low: 304,
793+
condensation_temp_too_low: 305,
794+
evaporation_temp_too_high: 306,
795+
condensation_temp_too_high: 308,
796+
building_circuit_return_temp_too_low: 312,
797+
building_circuit_return_temp_too_high: 314,
798+
immersion_heater_flow_temp_too_high: 351,
799+
deicing_active: 516,
800+
frequency_converter_fault: 575,
801+
connection_fault_frequency_converter: 581,
802+
four_port_valve_position_fault: 590,
803+
}
804+
745805
/** default *r for register */
746806
@base(MF, 0x9, 0xd)
747807
model r {}

0 commit comments

Comments
 (0)