added comments
This commit is contained in:
@@ -28,6 +28,12 @@
|
||||
#include <ModbusRTU.h>
|
||||
#endif
|
||||
|
||||
/** The purpose of this function is to change the RA Temp, SA Temp, RA Humidity values for the purpose of testing alarms in Ignition.
|
||||
* There are LOW and HIGH coils, which when activated will set the analog to a low/high range.
|
||||
* The NORMAL coil will send a one-shot to set the associated analog value back into a normal range.
|
||||
* If in a RunningState, the analog value will follow it's normal function (typically a sawStrategy).
|
||||
*/
|
||||
|
||||
void updateAnalogs(Equipment<ModbusIP>* equipment){
|
||||
if (equipment->getModbus_Point("RA Temp NORMAL")->getValue()==1){
|
||||
equipment->setModbus_Point("Return Air Temp", 84.0f);
|
||||
@@ -75,6 +81,7 @@ void updateAnalogs(Equipment<ModbusIP>* equipment){
|
||||
}
|
||||
}
|
||||
|
||||
//This function updates the Alarm bit for the Return Air Temp
|
||||
void updateReturnAirTempAlarms(Equipment<ModbusIP>* equipment){
|
||||
Modbus_Point<ModbusIP>* returnAirTemp = equipment -> getModbus_Point("Return Air Temp");
|
||||
Modbus_Point<ModbusIP>* returnTempHighAlarmSP = equipment->getModbus_Point("Return Air Temp Alarm High SP");
|
||||
@@ -94,6 +101,7 @@ void updateReturnAirTempAlarms(Equipment<ModbusIP>* equipment){
|
||||
}
|
||||
}
|
||||
|
||||
// This function updates the Alarm bit for the Supply Air Temp
|
||||
void updateSupplyAirTempAlarms(Equipment<ModbusIP>* equipment){
|
||||
Modbus_Point<ModbusIP>* supplyAirTemp = equipment -> getModbus_Point("Supply Air Temp");
|
||||
Modbus_Point<ModbusIP>* supplyTempHighAlarmSP = equipment->getModbus_Point("Supply Air Temp Alarm High SP");
|
||||
@@ -113,6 +121,7 @@ void updateSupplyAirTempAlarms(Equipment<ModbusIP>* equipment){
|
||||
}
|
||||
}
|
||||
|
||||
//This function updates the Alarm bit for the Return Humidity
|
||||
void updateReturnHumidityAlarms(Equipment<ModbusIP>* equipment){
|
||||
Modbus_Point<ModbusIP>* returnHumidity = equipment -> getModbus_Point("Return Humidity");
|
||||
Modbus_Point<ModbusIP>* returnHumHighAlarmSP = equipment->getModbus_Point("Return Humidity Alarm High SP");
|
||||
|
||||
Reference in New Issue
Block a user