Dear Trnsys users,
we have to create a solar cooling control system based on the following strategy:
If ((mode = 0)and (mode_status = 1)) then
If (T_supply_air < (T_set_supply_air - dT_dec))
then
mode =
-1
mode_status =
0
Endif
If (T_supply_air > (T_set_supply_air + dT_dec))
then
mode =
1
mode_status =
0
Endif
endif
If ((mode = -1) and (mode_status = 1)) then
If
(T_supply_air < (T_set_supply_air - dT_dec))
then
mode =
-2
mode_status =
0
Endif
IF (T_supply_air >
(T_set_supply_air + dT_dec)) then
mode =
0
mode_status =
0
Endif
endif
If ((mode = 1) and (mode_status = 1)) then
If
(T_supply_air < (T_set_supply_air - dT_dec))
then
mode =
0
mode_status =
0
Endif
... (continue) ....
Is it possible to implement the whole strategy into the Equation tool or is it necessary to use other types? Specifically, is it possible to introduce into the equation tool the "if... then..." function?
In addition, does exist a manual for the equation tool?