Updated RA Temp, SA Temp, RA Humidity Alarms
Added capability to set RA Temp, SA Temp, RA Humidity to Low, Normal, High range for alarms testing (added alarm registers). Updated Common alarm code appropriately.
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include <ModbusIP_ESP8266.h>
|
||||
const char *ssid = "ArduinoWifiB"; /**< @brief The SSID of the WiFi network. */
|
||||
const char *password = "123abc456"; /**< @brief The password for the WiFi network. */
|
||||
IPAddress local_IP(172, 17, 32, 10); /**< @brief The static IP address for the device. */
|
||||
IPAddress local_IP(172, 17, 32, 11); /**< @brief The static IP address for the device. */
|
||||
IPAddress gateway(172, 17, 32, 1); /**< @brief The gateway IP address. */
|
||||
IPAddress subnet(255, 255, 255, 0); /**< @brief The subnet mask. */
|
||||
|
||||
@@ -59,27 +59,42 @@
|
||||
modbusMap mb_map[] =
|
||||
{
|
||||
{COIL, 0, 0, "ON/OFF Command By BMS"}, // Receive signal from PLC
|
||||
{COIL, 1, 0, "Alarm Fan 1 ON"}, // Just for Arduino testing. Sets Alarm Fan 1 to 1.
|
||||
{COIL, 2, 0, "Alarm Fan 2 ON"}, // Just for Arduino testing. Sets Alarm Fan 2 to 1.
|
||||
{COIL, 3, 0, "Alarm Dirty Filter ON"}, // Just for Arduino testing. Sets Alarm Dirty Filter to 1.
|
||||
{COIL, 4, 0, "Alarm Leak Detect ON"}, // Just for Arduino testing. Sets Alarm Fan 1 to 1.
|
||||
{COIL, 5, 0, "RA Temp Low Alarm ON"}, // Just for Arduino testing. Sets RA Temp to 68F (low alarm)
|
||||
{COIL, 6, 0, "RA Temp High Alarm ON"}, // Just for Arduino testing. Sets RA Temp to 104F (high alarm)
|
||||
{COIL, 7, 0, "RA Humidity Low Alarm ON"}, // Just for Arduino testing. Sets RA Humidity to 15% (low alarm)
|
||||
{COIL, 8, 0, "RA Humidity High Alarm ON"}, // Just for Arduino testing. Sets RA Humidity to 65% (high alarm)
|
||||
{COIL, 9, 0, "Alarm Fan 3 ON"}, // Just for Arduino testing. Sets Alarm Fan 3 to 1.
|
||||
{COIL, 10, 0, "Alarm Fan 4 ON"}, // Just for Arduino testing. Sets Alarm Fan 4 to 1.
|
||||
{COIL, 11, 0, "Alarm Fan 5 ON"}, // Just for Arduino testing. Sets Alarm Fan 5 to 1.
|
||||
{COIL, 12, 0, "Alarm Fan 6 ON"}, // Just for Arduino testing. Sets Alarm Fan 6 to 1.
|
||||
{COIL, 13, 0, "Alarm Fan 7 ON"}, // Just for Arduino testing. Sets Alarm Fan 7 to 1.
|
||||
{COIL, 14, 0, "Alarm Fan 8 ON"}, // Just for Arduino testing. Sets Alarm Fan 8 to 1.
|
||||
{COIL, 15, 0, "Alarm Fan 9 ON"}, // Just for Arduino testing. Sets Alarm Fan 9 to 1.
|
||||
{COIL, 16, 0, "Alarm Condensate Pump ON"}, // Just for Arduino testing. Sets Alarm Condensate Pump to 1.
|
||||
{COIL, 17, 0, "Alarm Fire ON"}, // Just for Arduino testing. Sets Alarm Fire to 1.
|
||||
{COIL, 18, 0, "Alarm Smoke ON"}, // Just for Arduino testing. Sets Alarm Smoke to 1.
|
||||
{COIL, 1, 0, "Alarm Dirty Filter ON"}, // Just for Arduino testing. Sets Alarm Dirty Filter to 1.
|
||||
{COIL, 2, 0, "Alarm Leak Detect ON"}, // Just for Arduino testing. Sets Alarm Fan 1 to 1.
|
||||
|
||||
{COIL, 3, 0, "Alarm Fan 1 ON"}, // Just for Arduino testing. Sets Alarm Fan 1 to 1.
|
||||
{COIL, 4, 0, "Alarm Fan 2 ON"}, // Just for Arduino testing. Sets Alarm Fan 2 to 1.
|
||||
{COIL, 5, 0, "Alarm Fan 3 ON"}, // Just for Arduino testing. Sets Alarm Fan 3 to 1.
|
||||
{COIL, 6, 0, "Alarm Fan 4 ON"}, // Just for Arduino testing. Sets Alarm Fan 4 to 1.
|
||||
{COIL, 7, 0, "Alarm Fan 5 ON"}, // Just for Arduino testing. Sets Alarm Fan 5 to 1.
|
||||
{COIL, 8, 0, "Alarm Fan 6 ON"}, // Just for Arduino testing. Sets Alarm Fan 6 to 1.
|
||||
{COIL, 9, 0, "Alarm Fan 7 ON"}, // Just for Arduino testing. Sets Alarm Fan 7 to 1.
|
||||
{COIL, 10, 0, "Alarm Fan 8 ON"}, // Just for Arduino testing. Sets Alarm Fan 8 to 1.
|
||||
{COIL, 11, 0, "Alarm Fan 9 ON"}, // Just for Arduino testing. Sets Alarm Fan 9 to 1.
|
||||
{COIL, 12, 0, "Alarm Condensate Pump ON"}, // Just for Arduino testing. Sets Alarm Condensate Pump to 1.
|
||||
{COIL, 13, 0, "Alarm Fire ON"}, // Just for Arduino testing. Sets Alarm Fire to 1.
|
||||
{COIL, 14, 0, "Alarm Smoke ON"}, // Just for Arduino testing. Sets Alarm Smoke to 1.
|
||||
|
||||
{COIL, 15, 0, "RA Temp Low Alarm ON"}, // Just for Arduino testing. Sets RA Temp to 68F (low alarm)
|
||||
{COIL, 16, 0, "RA Temp NORMAL"}, // Just for Arduino testing. Sets RA Temp to 68F (low alarm)
|
||||
{COIL, 17, 0, "RA Temp High Alarm ON"}, // Just for Arduino testing. Sets RA Temp to 104F (high alarm)
|
||||
|
||||
{COIL, 18, 0, "SA Temp Low Alarm ON"}, // Just for Arduino testing. Sets RA Temp to 68F (low alarm)
|
||||
{COIL, 19, 0, "SA Temp NORMAL"}, // Just for Arduino testing. Sets RA Temp to 68F (low alarm)
|
||||
{COIL, 20, 0, "SA Temp High Alarm ON"}, // Just for Arduino testing. Sets RA Temp to 104F (high alarm)
|
||||
|
||||
{COIL, 21, 0, "RA Humidity Low Alarm ON"}, // Just for Arduino testing. Sets RA Humidity to 15% (low alarm)
|
||||
{COIL, 22, 0, "RA Humidity NORMAL"}, // Just for Arduino testing. Sets RA Temp to 68F (low alarm)
|
||||
{COIL, 23, 0, "RA Humidity High Alarm ON"}, // Just for Arduino testing. Sets RA Humidity to 65% (high alarm)
|
||||
|
||||
{DI, 4, 0, "Alarm Leak Detect"},
|
||||
{DI, 5, 0, "Alarm Dirty Filter"},
|
||||
{DI, 6, 0, "Alarm High Return Air Temp"}, // suggested default 100, operator inputs High RA Temp SP for alarm limit
|
||||
{DI, 7, 0, "Alarm Low Return Air Temp"}, // suggested default 72, operator inputs Low RA Temp SP for alarm limit
|
||||
{DI, 8, 0, "Alarm High Supply Temp"}, // suggested default 78, operator inputs High SA Temp SP for alarm limit
|
||||
{DI, 9, 0, "Alarm Low Supply Temp"}, // suggested default 72, operator inputs Low SA Temp SP for alarm limit
|
||||
{DI, 10, 0, "Alarm High Return Humidity"}, // suggested default 60, operator inputs High Return Humidity SP for alarm limit
|
||||
{DI, 11, 0, "Alarm Low Return Humidity"}, // suggested default 20, operator inputs Low Return Humidity SP for alarm limit
|
||||
{DI, 12, 0, "Common Alarm"}, // Send to PLC
|
||||
{DI, 14, 0, "Alarm Condensate Pump"},
|
||||
{DI, 15, 0, "Alarm Smoke"},
|
||||
@@ -137,12 +152,12 @@ modbusMap mb_map[] =
|
||||
{IR_FLOAT, 77, 0, "Amps Fan 8"},
|
||||
{IR_FLOAT, 79, 0, "Amps Fan 9"},
|
||||
|
||||
{HR_FLOAT, 1, 0, "High Return Air Temp Setpoint"}, // default: 100, set locally on unit
|
||||
{HR_FLOAT, 3, 0, "Low Return Air Temp Setpoint"}, // default: 72, set locally on unit
|
||||
{HR_FLOAT, 5, 0, "High Supply Air Temp Setpoint"}, // default: 78, set locally on unit
|
||||
{HR_FLOAT, 7, 0, "Low Return Air Temp Setpoint"}, // default: 72, set locally on unit
|
||||
{HR_FLOAT, 9, 0, "High Return Humidity Setpoint"}, // default: 60, set locally on unit
|
||||
{HR_FLOAT, 11, 0, "Low Return Humidity Setpoint"}, // default: 20, set locally on unit
|
||||
{HR_FLOAT, 1, 100, "Return Air Temp Alarm High SP"}, // default: 100, set locally on unit
|
||||
{HR_FLOAT, 3, 72, "Return Air Temp Alarm Low SP"}, // default: 72, set locally on unit
|
||||
{HR_FLOAT, 5, 78, "Supply Air Temp Alarm High SP"}, // default: 78, set locally on unit
|
||||
{HR_FLOAT, 7, 72, "Supply Air Temp Alarm Low SP"}, // default: 72, set locally on unit
|
||||
{HR_FLOAT, 9, 60, "Return Humidity Alarm High SP"}, // default: 60, set locally on unit
|
||||
{HR_FLOAT, 11, 20, "Return Humidity Alarm Low SP"}, // default: 20, set locally on unit
|
||||
{HR_FLOAT, 13, 0, "Fan Speed Setpoint"}, // Receive signal from PLC
|
||||
{HR_FLOAT, 17, 0, "Supply Air Temp Setpoint"}, // Receive signal from PLC
|
||||
{HR_FLOAT, 19, 0, "Return Air Temp Setpoint"}, // set locally on unit
|
||||
|
||||
Reference in New Issue
Block a user