-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.template
235 lines (201 loc) · 5.3 KB
/
main.template
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
record(mbbiDirect,"$(P):9001") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_btc 0 0xFFFF)")
field(SCAN,"$(SCAN)")
}
record(mbbiDirect,"$(P):903D") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_ctm 0 0xFFFF)")
field(SCAN,"$(SCAN)")
}
#record(bi,"$(P):0000") {
# field(DTYP,"asynUInt32Digital")
# field(INP,"@asynMask(MPPT_col 0 0x1)")
# field(SCAN,"$(SCAN)")
#}
#record(bi,"$(P):0001") {
# field(DTYP,"asynInt32")
# field(INP,"@asynMask(MPPT_col 0 0x1)")
# field(SCAN,"$(SCAN)")
#}
record(bi,"$(P):0002") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_cor 0 0x1)")
field(SCAN,"$(SCAN)")
field(ZNAM,"Low")
field(ONAM,"High")
field(ZSV,"NO_ALARM")
field(OSV,"MAJOR")
}
#record(bo,"$(P):0002W") {
# field(DTYP,"asynUInt32Digital")
# field(OUT,"@asynMask(MPPT_cow 0 0x1)")
# field(ZNAM,"Low")
# field(ONAM,"High")
#}
#record(bi,"$(P):0003") {
# field(DTYP,"asynUInt32Digital")
# field(INP,"@asynMask(MPPT_col 2 0x1)")
# field(SCAN,"$(SCAN)")
#}
#record(bi,"$(P):0005") {
# field(DTYP,"asynUInt32Digital")
# field(INP,"@asynMask(MPPT_col 5 0x1)")
# field(SCAN,"$(SCAN)")
#}
#record(bi,"$(P):0006") {
# field(DTYP,"asynUInt32Digital")
# field(INP,"@asynMask(MPPT_col 6 0x1)")
# field(SCAN,"$(SCAN)")
#}
record(bi,"$(P):200C") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_dnm 0 0x1)")
field(SCAN,"$(SCAN)")
field(ZNAM,"Low")
field(ONAM,"High")
field(ZSV,"NO_ALARM")
field(OSV,"MAJOR")
}
##############################
record(mbbiDirect,"$(P):3300") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_3300 0x0000 0xFFFF)")
field(SCAN,"$(SCAN)")
field(FLNK,"$(P):PV_V_MaxD")
}
record(calc,"$(P):PV_V_MaxD") {
field(CALC,"A/100")
field(INPA,"$(P):3300 NPP NMS")
field(PREC,"2")
field(EGU,"V")
}
record(mbbiDirect,"$(P):3301") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_3300 0x0001 0xFFFF)")
field(SCAN,"$(SCAN)")
field(FLNK,"$(P):PV_V_MinD")
}
record(calc,"$(P):PV_V_MinD") {
field(CALC,"A/100")
field(INPA,"$(P):3301 NPP NMS")
field(PREC,"2")
field(EGU,"V")
field(LOPR,"11")
field(HOPR,"15")
}
record(mbbiDirect,"$(P):3302") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_3300 0x0002 0xFFFF)")
field(SCAN,"$(SCAN)")
field(FLNK,"$(P):B_V_MaxD")
}
record(calc,"$(P):B_V_MaxD") {
field(CALC,"A/100")
field(INPA,"$(P):3302 NPP NMS")
field(PREC,"2")
field(EGU,"V")
field(LOPR,"11")
field(HOPR,"15")
}
record(mbbiDirect,"$(P):3303") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_3300 0x0003 0xFFFF)")
field(SCAN,"$(SCAN)")
field(FLNK,"$(P):B_V_MinD")
}
record(calc,"$(P):B_V_MinD") {
field(CALC,"A/100")
field(INPA,"$(P):3303 NPP NMS")
field(PREC,"2")
field(EGU,"V")
field(LOPR,"11")
field(HOPR,"15")
}
####
record(mbbiDirect,"$(P):3304") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_3300 0x0004 0xFFFF)")
field(SCAN,"$(SCAN)")
}
record(mbbiDirect,"$(P):3305") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_3300 0x0005 0xFFFF)")
field(SCAN,"$(SCAN)")
}
record(mbbiDirect,"$(P):330C") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_3300 0x000C 0xFFFF)")
field(SCAN,"$(SCAN)")
}
record(mbbiDirect,"$(P):330D") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_3300 0x000D 0xFFFF)")
field(SCAN,"$(SCAN)")
}
record(longin,"$(P):3312") {
field(DTYP,"asynInt32")
field(INP,"@asyn(MPPT_3300 0x0012)UINT16")
field(SCAN,"$(SCAN)")
field(FLNK,"$(P):E_G")
}
record(calc,"$(P):E_G") {
field(CALC,"A/100")
field(INPA,"$(P):3312 NPP NMS")
field(PREC,"2")
field(EGU,"KWH")
}
record(mbbiDirect,"$(P):331D") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_331A 0x0003 0xFFFF)")
field(SCAN,"$(SCAN)")
field(FLNK,"$(P):B_Ts")
}
record(calc,"$(P):B_Ts") {
field(CALC,"A/100")
field(INPA,"$(P):331D NPP NMS")
field(PREC,"2")
field(EGU,"Celcius")
}
record(mbbiDirect,"$(P):331E") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_331A 0x0004 0xFFFF)")
field(SCAN,"$(SCAN)")
field(FLNK,"$(P):A_Ts")
}
record(calc,"$(P):A_Ts") {
field(CALC,"A/100")
field(INPA,"$(P):331E NPP NMS")
field(PREC,"2")
field(EGU,"Celcius")
}
record(mbbiDirect,"$(P):9013L") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_9013 0x0000 0x00FF)")
field(SCAN,"$(SCAN)")
}
record(mbbiDirect,"$(P):9013H") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_9013 0x0000 0xFF00)")
field(SCAN,"$(SCAN)")
}
record(mbbiDirect,"$(P):9014L") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_9013 0x0001 0x00FF)")
field(SCAN,"$(SCAN)")
}
record(mbbiDirect,"$(P):9014H") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_9013 0x0001 0xFF00)")
field(SCAN,"$(SCAN)")
}
record(mbbiDirect,"$(P):9015L") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_9013 0x0002 0x00FF)")
field(SCAN,"$(SCAN)")
}
record(mbbiDirect,"$(P):9015H") {
field(DTYP,"asynUInt32Digital")
field(INP,"@asynMask(MPPT_9013 0x0002 0xFF00)")
field(SCAN,"$(SCAN)")
}