-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCabinet_Test.py
166 lines (158 loc) · 4.31 KB
/
Cabinet_Test.py
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
'''
This project simulate random supply temprature
'''
#Import Library
import csv
#from typing import ClassVar
from BACBase import *
# from ede357 import *
import random
# from basic_service import *
if __name__ == '__main__':
while True:
i=i+1
now = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
print("LoopIndex:" + str(i) + "Time:" + str(now))
# 1st minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,5)
bacWrite(HclElPos,0)
time.sleep(60)
# 2nd minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,20)
bacWrite(HclElPos,0)
time.sleep(60)
# 3rd minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,50)
bacWrite(HclElPos,0)
time.sleep(60)
# 4st minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,75)
bacWrite(HclElPos,0)
time.sleep(60)
# 5st minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,100)
bacWrite(HclElPos,0)
time.sleep(60)
# 6st minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,100)
bacWrite(HclElPos,50)
time.sleep(60)
# 7st minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,100)
bacWrite(HclElPos,100)
time.sleep(60)
# 8st minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,100)
bacWrite(HclElPos,100)
time.sleep(60)
# 9st minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,100)
bacWrite(HclElPos,100)
time.sleep(60)
# 10st minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,100)
bacWrite(HclElPos,75)
time.sleep(60)
# 11st minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,100)
bacWrite(HclElPos,35)
time.sleep(60)
# 12st minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,100)
bacWrite(HclElPos,0)
time.sleep(60)
# 13t minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,80)
bacWrite(HclElPos,0)
time.sleep(60)
# 14t minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,60)
bacWrite(HclElPos,0)
time.sleep(60)
# 15t minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,30)
bacWrite(HclElPos,0)
time.sleep(60)
# 16t minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,10)
bacWrite(HclElPos,0)
time.sleep(60)
# 17t minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,5)
bacWrite(HclElPos,0)
time.sleep(60)
# 18t minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,3)
bacWrite(HclElPos,0)
time.sleep(60)
# 19t minute
bacWrite(FanSuSpd,75)
bacWrite(FanEhSpd,75)
bacWrite(RotHExgSpd,0)
bacWrite(HclElPos,0)
time.sleep(60)
# 20~25 minute
bacWrite(FanSuSpd,50)
bacWrite(FanEhSpd,50)
bacWrite(RotHExgSpd,0)
bacWrite(HclElPos,0)
time.sleep(60*5)
# 25~30 minute
bacWrite(FanSuSpd,25)
bacWrite(FanEhSpd,25)
bacWrite(RotHExgSpd,0)
bacWrite(HclElPos,0)
time.sleep(60*5)
# i=0
# while True:
# # warmstart("192.168.1.102", "")
# i=i+1
# print("LoopIndex:" + str(i))
# # bacWrite(RotHExgSpd,3)
# bacWrite(RotHExgSpd,5)
# time.sleep(90)
# RotCur = bacRead(RotHExgCur)
# print("CoilCurrent " + str(RotCur))
# if RotCur == 0:
# now = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
# print(now)
# break
# else:
# bacWrite(RotHExgSpd,0)
# time.sleep(30)