-
Notifications
You must be signed in to change notification settings - Fork 301
/
Copy pathopdata_inc.tsp
153 lines (120 loc) · 2.66 KB
/
opdata_inc.tsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
import "@ebusd/ebus-typespec";
import "./_templates.tsp";
using Ebus;
using Ebus.Num;
using Ebus.Dtm;
using Ebus.Str;
namespace Opdata_inc {
/** burner operational data */
@ext(0x5, 0x7)
model HcOperation {
/** status heat request */
@values(Values_status)
status: UCH;
/** variable consumers */
@values(Values_action)
action: UCH;
/** boiler target temperature */
desiredtemp: temp;
/** boiler target pressure */
desiredpress: press;
/** setting degree, steps instead of percent when action is 0x44=hwc_stepped */
settingdegree: percent1;
/** hot water target temperature */
hwcdesiredtemp: temp1;
/** fuel choice */
@values(Values_fuel)
fuel: UCH;
}
/** room controller target values */
@ext(0x8, 0)
model RcTarget {
/** boiler target temperature */
desiredtemp: temp2;
/** outside temperature */
outsidetemp: temp2;
/** forced performance */
@unit("%")
forced: D1B;
/** hot water active */
hwc: BI0;
/** heat active */
hc: BI1;
/** hot water target temperature */
hwcdesiredtemp: temp2;
}
/** room controller operational data */
@ext(0x8, 1)
model RcOperation {
/** boiler effective temperature */
temp: temp2;
/** hot water effective temperature */
buffertemp: temp2;
/** emission test */
@values(Values_emission_test)
emissiontest: UCH;
/** hot water active */
hwc: BI0;
/** pump active */
pump: BI1;
/** buffer 1 active */
buffer1: BI2;
/** buffer 2 active */
buffer2: BI3;
/** loading pump active */
loading: BI4;
/** hot water loading pump active */
hwcloading: BI5;
/** TBF connected */
tbfconnect: BI6;
/** return flow temperature */
returntemp: temp2;
}
/** control commands */
@ext(0x8, 0x2)
model ControlCmd {
/** boiler target temperature */
desiredtemp: temp2;
/** hot water target temperature */
hwcdesiredtemp: temp2;
/** expected performance */
@unit("%")
expected: D1B;
/** first device with error */
device: UCH;
/** error code */
error: UCH;
}
enum Values_status {
off: 0x00,
none: 0x01,
hwc: 0x55,
heat: 0xAA,
emissioncheck: 0xCC,
techcheck: 0xDD,
stop: 0xEE,
hwc_stop: 0x66,
hwc_heat: 0xBB,
hwc_stepped: 0x44,
}
enum Values_action {
none: 0x00,
pumpoff: 0x01,
pumpon: 0x02,
consumeoff: 0x03,
consumeon: 0x04,
}
enum Values_fuel {
dontcare: 0x00,
gas: 0x01,
oil: 0x02,
dontcare1: 0x03,
}
enum Values_emission_test {
none: 0,
br1: 1,
br1stb: 2,
br12: 3,
br12stb: 4,
}
}