Added General Alarm, Fail State
Added General Alarm, Fail State, changed some registers to 10x.
This commit is contained in:
@@ -1,16 +1,12 @@
|
||||
# CHILLER YORK YVAA 0428IOK46BAVTXX TCP
|
||||
|
||||
## Brief Introduction
|
||||
|
||||
*** NOTE! ***
|
||||
This code has not been verified with Chiller and Chiller Manager PLC program.
|
||||
It is a best-guess based on a preliminary review of Chiller PLC program, but
|
||||
has yet to be fully vetted and local tested with PLC programs.
|
||||
|
||||
Chiller receives Temp SP and Enable from PLC (Modscan)
|
||||
Alarms are also simulated via Modscan, though those signals will be internal to Chiller
|
||||
Many hard IO points are simulated using Modscan.
|
||||
Assumes all Modbus points are for monitoring only and go to Ignition - not sent to PLC
|
||||
Chiller receives Chiller Temp SP and Enable from PLC. The Supply Temp will ramp to Chiller Temp SP in Run Mode.
|
||||
Alarms are also simulated via Modscan, though those signals will be internal to Chiller.
|
||||
Hard IO points simulated with Modscan: Sys 1 Alarm, Sys 2 Alarm.
|
||||
Chiller Status is sent back to PLC.
|
||||
In practice, all Modbus points are for monitoring only and go to Ignition - not sent to PLC.
|
||||
For the sake of simulation, some hard IO points (simulated as Modbus points) will go back to PLC for feedback or will be sent from PLC to Arduino.
|
||||
|
||||
## List of Equipment
|
||||
This cofiguration has been used for these models:
|
||||
@@ -24,20 +20,51 @@ The code is written for an ESP8266/ESP32-style microcontroller with WiFi capabil
|
||||
---
|
||||
|
||||
## States and Strategies
|
||||
Updates Alarms States. If any active alarms --> FailState
|
||||
Updates Alarms States. Only the Sys 1 Fan Fault or Sys 2 Fan Fault will end unit --> FailState
|
||||
Sys 1 Alarm, Sys 2 Alarm, and General Alarm will annunciate only, will not stop the unit (this is an assumption the program follows, may differ in field).
|
||||
Updates Free Cooling Mode: Free Cooling Mode is activated using a coil, for simulation purposes only.
|
||||
Modbus points are simulated, mostly with a SingleValue strategy for image verification in Ignition.
|
||||
While in RunningState, the Supply Temp dynamically ramps to the Supply Temp SP sent from PLC (Modscan)
|
||||
While in RunningState, the Supply Temp dynamically ramps to the Supply Temp SP sent from PLC (or Modscan)
|
||||
The CHW In and CHW Out temperature values also dynamically ramp to match the Return and Supply Temps.
|
||||
|
||||
### Standby State
|
||||
* **Chiller Status**: set to 0
|
||||
* **Operational Code**: set to 77
|
||||
* **Chiller Start Command**: set to 0
|
||||
Supply Temp = 80 +/- 1
|
||||
Return Temp = 80 +/- 1
|
||||
System CHW Out = 80 +/- 1
|
||||
System CHW In = 80 +/- 1
|
||||
Ambient Temp = 1-- +/- 1
|
||||
Sys 1, 2 Oil Pressure = 420 +/- 1
|
||||
Sys 1, 2 Suction Pressure = 70 +/- 1
|
||||
Sys 1, 2 Discharge Pressure = 70 +/- 1
|
||||
Sys 1, 2 Condenser Temp = 124 +/- 1
|
||||
|
||||
### Running State
|
||||
* **Chiller status**: set to 1
|
||||
* **Supply Temperature**: **Ramp Strategy** ramps to Temp Setpoint from PLC (Modscan)
|
||||
* **Operational Code**: set to 78 (running)
|
||||
* **Supply Temperature**: **Ramp Strategy** ramps to Chiller Temp Setpoint from PLC (Modscan)
|
||||
Supply Temp dynamically ramps to Chiller Temp Setpoint as sent from PLC (or Modscan)
|
||||
Return Temp sawStrategy (79-83)
|
||||
System CHW Out dynamically ramps to follow Supply Temp
|
||||
System CHW In dynamically ramps to follow Return Temp
|
||||
Ambient Temp = 1-- +/- 1
|
||||
Sys 1, 2 Oil Pressure = 450 +/- 5
|
||||
Sys 1, 2 Suction Pressure = 70 +/- 2
|
||||
Sys 1, 2 Discharge Pressure = 375 +/- 4
|
||||
Sys 1, 2 Compressor Pct FLA = 93 +/- 2
|
||||
Sys 1, 2 Condenser Temp = 125 +/- 5
|
||||
Sys 1 Fan kW = 35 +/- 2
|
||||
Sys 2 Fan kW = 23 +/- 2
|
||||
Sys 1 Compressor kW = 304 +/- 5
|
||||
Sys 2 Compressor kW = 198 +/- 5
|
||||
|
||||
### Fail State
|
||||
* **Chiller Status**: set to 0
|
||||
All values match that of Standby State.
|
||||
The difference is in Fail State, if a Start Command is sent it will not start the Chiller.
|
||||
All faults must be cleared, then unit transitions to Standby State.
|
||||
* **Chiller Status**: set to 0
|
||||
* **Operational Code**: set to 77
|
||||
* **Chiller Start Command**: set to 0
|
||||
All analog values same as in Standby State
|
||||
@@ -32,19 +32,19 @@
|
||||
* @brief Updates Alarms states
|
||||
*
|
||||
* This function will update the Alarm status DI bits according to the Alarm Commands from Coils (Modscan)
|
||||
* The appropriate Fault Code will also be set to 56 (Condenser Fan VSD Warning)
|
||||
* The appropriate Fault Code will also be set to 56 (Condenser Fan VSD Warning).
|
||||
* Also updates the General Alarm bit. If any alarms are active, General Alarm --> 1, else 0.
|
||||
*
|
||||
* This is a function used in the update() of the Standby, Running, and Fail States.
|
||||
*
|
||||
*/
|
||||
|
||||
void updateAlarms(Equipment<ModbusRTU>* equipment){
|
||||
// Updates Sys 1, 2 Fan Fault Alarms with associated Fault Code
|
||||
Modbus_Point<ModbusRTU>* Sys1FanAlarmCommand = equipment->getModbus_Point("Sys 1 Fan Fault ON");
|
||||
Modbus_Point<ModbusRTU>* Sys2FanAlarmCommand = equipment->getModbus_Point("Sys 2 Fan Fault ON");
|
||||
Modbus_Point<ModbusRTU>* GeneralAlarmCommand = equipment->getModbus_Point("General Alarm ON");
|
||||
Modbus_Point<ModbusRTU>* Sys1FanAlarm = equipment->getModbus_Point("Sys 1 Fan Fault Alarm");
|
||||
Modbus_Point<ModbusRTU>* Sys2FanAlarm = equipment->getModbus_Point("Sys 2 Fan Fault Alarm");
|
||||
Modbus_Point<ModbusRTU>* GeneralAlarm = equipment->getModbus_Point("General Alarm");
|
||||
if (Sys1FanAlarmCommand) {
|
||||
Sys1FanAlarm->setValue(Sys1FanAlarmCommand->getValue());
|
||||
if (Sys1FanAlarmCommand->getValue() == 1){
|
||||
@@ -59,8 +59,20 @@ void updateAlarms(Equipment<ModbusRTU>* equipment){
|
||||
}
|
||||
else equipment->setModbus_Point("Sys 2 Fault Code", 0);
|
||||
}
|
||||
GeneralAlarm->setValue(GeneralAlarmCommand->getValue());
|
||||
|
||||
// Update General Alarm (if any Alarm is active, make general alarm active)
|
||||
const std::vector<std::string> alarmDescriptions = {
|
||||
"Sys 1 Alarm", "Sys 2 Alarm", "Sys 1 Fan Fault Alarm", "Sys 2 Fan Fault Alarm"
|
||||
};
|
||||
int numAlarms = 0;
|
||||
for (int i =0; i < alarmDescriptions.size(); ++i) {
|
||||
Modbus_Point<ModbusRTU>* alarmPoint = equipment->getModbus_Point(alarmDescriptions[i]);
|
||||
if (alarmPoint) {
|
||||
if (alarmPoint->getValue() == 1) numAlarms++;
|
||||
}
|
||||
}
|
||||
if (numAlarms >= 1) equipment->setModbus_Point("General Alarm", 1);
|
||||
else equipment->setModbus_Point("General Alarm", 0);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -80,14 +92,4 @@ void updateFreeCooling(Equipment<ModbusRTU>* equipment){
|
||||
Modbus_Point<ModbusRTU>* FreeCoolingValve = equipment->getModbus_Point("Free Cooling Valve");
|
||||
FreeCoolingMode->setValue(FreeCoolingCommand->getValue());
|
||||
FreeCoolingValve->setValue(FreeCoolingCommand->getValue());
|
||||
/**
|
||||
if (FreeCoolingCommand->getValue() == 1) {
|
||||
FreeCoolingMode->setValue(1);
|
||||
FreeCoolingValve->setValue(1);
|
||||
}
|
||||
else {
|
||||
FreeCoolingMode->setValue(0);
|
||||
FreeCoolingValve->setValue(0);
|
||||
}
|
||||
*/
|
||||
}
|
||||
@@ -6,6 +6,7 @@
|
||||
*
|
||||
* This file contains the implementation for the FailState, which defines
|
||||
* the behavior of the equipment when it has entered a fault condition.
|
||||
* The unit enters Fail State if Sys 1 Fan Fault Alarm or Sys 2 Fan Fault Alarm is active.
|
||||
*/
|
||||
#include "ModbusPoints/Modbus_Point.h"
|
||||
#include "Equipment/Equipment.h"
|
||||
@@ -29,15 +30,31 @@
|
||||
* @brief Constructs a new FailState object.
|
||||
*
|
||||
* This constructor receives a list of alarm descriptions and creates strategies
|
||||
* to set the Compressor and Fan kW to 0.
|
||||
* to set the unit back into an idle, de-energized state.
|
||||
*
|
||||
* @param activeAlarms A vector of strings, where each string is the
|
||||
* description of a Modbus point to be set as an active alarm.
|
||||
* @param activeFaults A vector of strings, where each string is the
|
||||
* description of the currently active faults.
|
||||
*/
|
||||
template<>
|
||||
FailState<ModbusRTU>::FailState(const std::vector<std::string>& activeAlarms) {
|
||||
FailState<ModbusRTU>::FailState(const std::vector<std::string>& activeFaults) {
|
||||
addStrategy("Supply Temp", new SingleValueStrategy(80.0f, 1.0f, 1000));
|
||||
addStrategy("Return Temp", new SingleValueStrategy(80.0f, 1.0f, 1000));
|
||||
addStrategy("Ambient Temp", new SingleValueStrategy(100.0f, 1.0f, 1000));
|
||||
|
||||
addStrategy("System CHW Out", new SingleValueStrategy(80.0f, 1.0f, 1000));
|
||||
addStrategy("System CHW In", new SingleValueStrategy(80.0f, 1.0f, 1000));
|
||||
addStrategy("Sys 1 Condenser Temp", new SingleValueStrategy(124.0f, 1.0f, 1000));
|
||||
addStrategy("Sys 2 Condenser Temp", new SingleValueStrategy(124.0f, 1.0f, 1000));
|
||||
addStrategy("Sys 1 Oil Pressure", new SingleValueStrategy(420.0f, 1.0f, 1000));
|
||||
addStrategy("Sys 2 Oil Pressure", new SingleValueStrategy(420.0f, 1.0f, 1000));
|
||||
addStrategy("Sys 1 Suction Pressure", new SingleValueStrategy(70.0f, 1.0f, 1000));
|
||||
addStrategy("Sys 2 Suction Pressure", new SingleValueStrategy(70.0f, 1.0f, 1000));
|
||||
addStrategy("Sys 1 Discharge Pressure", new SingleValueStrategy(70.0f, 1.0f, 1000));
|
||||
addStrategy("Sys 2 Discharge Pressure", new SingleValueStrategy(70.0f, 1.0f, 1000));
|
||||
addStrategy("Sys 1 Compressor Pct FLA", new SingleValueStrategy(0.0f, 0.0f, 1000));
|
||||
addStrategy("Sys 2 Compressor Pct FLA", new SingleValueStrategy(0.0f, 0.0f, 1000));
|
||||
addStrategy("Local Leaving Temp Setpoint", new SingleValueStrategy(70.0f, 0.0f, 1000));
|
||||
addStrategy("VSD Output Frequency", new SingleValueStrategy(0.0f, 0.0f, 1000));
|
||||
addStrategy("Sys 1 Fan KW", new SingleValueStrategy(0.0f, 0.0f, 1000));
|
||||
addStrategy("Sys 2 Fan KW", new SingleValueStrategy(0.0f, 0.0f, 1000));
|
||||
addStrategy("Sys 1 Compressor KW", new SingleValueStrategy(0.0f, 0.0f, 1000));
|
||||
@@ -48,33 +65,44 @@ FailState<ModbusRTU>::FailState(const std::vector<std::string>& activeAlarms) {
|
||||
* @brief Executes the fail state's logic for one update cycle.
|
||||
*
|
||||
* This method first updates all alarms states and Free Cooling Mode (for ease of testing).
|
||||
* If all alarms have been cleared --> StandbyState.
|
||||
* If alarms are still active, ensures the Chiller Start Command remains at 0.
|
||||
* If all faults have been cleared --> StandbyState.
|
||||
* If faults are still active, ensures the Chiller Start Command remains at 0.
|
||||
*
|
||||
* @param equipment Pointer to the Equipment instance.
|
||||
* @return A pointer to a new State if a transition should occur, otherwise nullptr.
|
||||
*/
|
||||
template<>
|
||||
State<ModbusRTU>* FailState<ModbusRTU>::update(Equipment<ModbusRTU>* equipment) {
|
||||
// Update alarms states, Free Cooling mode, Freeze Protection Mode
|
||||
// Update alarms states, Free Cooling mode
|
||||
updateAlarms(equipment);
|
||||
updateFreeCooling(equipment);
|
||||
|
||||
const std::vector<std::string> alarmDescriptions = {
|
||||
"Sys 1 Alarm", "Sys 2 Alarm", "Sys 1 Fan Fault Alarm", "Sys 2 Fan Fault Alarm",
|
||||
const std::vector<std::string> FaultDescriptions = {
|
||||
"Sys 1 Fan Fault Alarm", "Sys 2 Fan Fault Alarm",
|
||||
};
|
||||
|
||||
// If no alarms active --> send to StandbyState()
|
||||
bool alarms_active = false;
|
||||
for (const auto& desc : alarmDescriptions) {
|
||||
// If no faults active --> send to StandbyState()
|
||||
bool faults_active = false;
|
||||
for (const auto& desc : FaultDescriptions) {
|
||||
Modbus_Point<ModbusRTU>* point = equipment->getModbus_Point(desc);
|
||||
if (point->getValue() == 1) {
|
||||
alarms_active = true;
|
||||
faults_active = true;
|
||||
}
|
||||
}
|
||||
if (!alarms_active) return new StandbyState<ModbusRTU>();
|
||||
if (!faults_active) return new StandbyState<ModbusRTU>();
|
||||
|
||||
setPointValue(equipment, "Chiller Start Command", 0);
|
||||
|
||||
// Update Operational Code depending on Free Cooling Mode
|
||||
int freeCoolingState = getPointValue(equipment, "Free Cooling Mode ON");
|
||||
if (freeCoolingState == 1){
|
||||
setPointValue(equipment, "Sys 1 Operational Code", 82);
|
||||
setPointValue(equipment, "Sys 2 Operational Code", 82);
|
||||
}
|
||||
else{
|
||||
setPointValue(equipment, "Sys 1 Operational Code", 77);
|
||||
setPointValue(equipment, "Sys 2 Operational Code", 77);
|
||||
}
|
||||
|
||||
_applyStrategies(equipment);
|
||||
return nullptr;
|
||||
|
||||
@@ -60,11 +60,11 @@ RunningState<ModbusRTU>::RunningState() {
|
||||
addStrategy("Sys 1 Run Hours", new TotalizerStrategy(1000));
|
||||
addStrategy("Sys 2 Run Hours", new TotalizerStrategy(1000));
|
||||
addStrategy("Local Leaving Temp Setpoint", new SingleValueStrategy(70.0f, 0.0f, 1000));
|
||||
addStrategy("VSD Output Frequency", new SingleValueStrategy(59.0f, 1.0f, 1000));
|
||||
addStrategy("Sys 1 Fan KW", new SingleValueStrategy(35.0f, 2.0f, 1000));
|
||||
addStrategy("Sys 2 Fan KW", new SingleValueStrategy(23.0f, 2.0f, 1000));
|
||||
addStrategy("Sys 1 Compressor KW", new SingleValueStrategy(304.0f, 5.0f, 1000));
|
||||
addStrategy("Sys 2 Compressor KW", new SingleValueStrategy(198.0f, 5.0f, 1000));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -88,23 +88,23 @@ State<ModbusRTU>* RunningState<ModbusRTU>::update(Equipment<ModbusRTU>* equipmen
|
||||
updateAlarms(equipment);
|
||||
updateFreeCooling(equipment);
|
||||
|
||||
std::vector<std::string> activeAlarmsDescriptions = {};
|
||||
const std::vector<std::string> alarmDescriptions = {
|
||||
"Sys 1 Alarm", "Sys 2 Alarm", "Sys 1 Fan Fault Alarm", "Sys 2 Fan Fault Alarm",
|
||||
std::vector<std::string> activeFaultDescriptions = {};
|
||||
const std::vector<std::string> FaultDescriptions = {
|
||||
"Sys 1 Fan Fault Alarm", "Sys 2 Fan Fault Alarm"
|
||||
};
|
||||
|
||||
// Loop through alarms, create array of active alarms and send to FailState if any alarms are active
|
||||
bool alarms_active = false;
|
||||
for (const auto& desc : alarmDescriptions) {
|
||||
// Loop through faults, create array of active faults and send to FailState if any faults are active
|
||||
bool faults_active = false;
|
||||
for (const auto& desc : FaultDescriptions) {
|
||||
Modbus_Point<ModbusRTU>* point = equipment->getModbus_Point(desc);
|
||||
if (point->getValue() == 1) {
|
||||
activeAlarmsDescriptions.push_back(desc);
|
||||
alarms_active = true;
|
||||
activeFaultDescriptions.push_back(desc);
|
||||
faults_active = true;
|
||||
}
|
||||
}
|
||||
if (alarms_active) return new FailState<ModbusRTU>(activeAlarmsDescriptions);
|
||||
if (faults_active) return new FailState<ModbusRTU>(activeFaultDescriptions);
|
||||
|
||||
// If no alarms active and Start Command = 0--> send to StandbyState()
|
||||
// If no faults active and Start Command = 0--> send to StandbyState()
|
||||
int Chiller_Enable = getPointValue(equipment, "Chiller Start Command"); // Modscan COIL 1
|
||||
if (Chiller_Enable == 0){
|
||||
return new StandbyState<ModbusRTU>();
|
||||
@@ -124,6 +124,17 @@ State<ModbusRTU>* RunningState<ModbusRTU>::update(Equipment<ModbusRTU>* equipmen
|
||||
static_cast<RampStrategy*>(CHW_In_strat)->setTarget(returnTemp);
|
||||
}
|
||||
|
||||
// Update Operational Code depending on Free Cooling Mode
|
||||
int freeCoolingState = getPointValue(equipment, "Free Cooling Mode ON");
|
||||
if (freeCoolingState == 1){
|
||||
setPointValue(equipment, "Sys 1 Operational Code", 82);
|
||||
setPointValue(equipment, "Sys 2 Operational Code", 82);
|
||||
}
|
||||
else{
|
||||
setPointValue(equipment, "Sys 1 Operational Code", 78);
|
||||
setPointValue(equipment, "Sys 2 Operational Code", 78);
|
||||
}
|
||||
|
||||
// Apply any strategies defined for the standby state
|
||||
_applyStrategies(equipment);
|
||||
return nullptr;
|
||||
|
||||
@@ -55,6 +55,7 @@ StandbyState<ModbusRTU>::StandbyState() {
|
||||
addStrategy("Sys 1 Compressor Pct FLA", new SingleValueStrategy(0.0f, 0.0f, 1000));
|
||||
addStrategy("Sys 2 Compressor Pct FLA", new SingleValueStrategy(0.0f, 0.0f, 1000));
|
||||
addStrategy("Local Leaving Temp Setpoint", new SingleValueStrategy(70.0f, 0.0f, 1000));
|
||||
addStrategy("VSD Output Frequency", new SingleValueStrategy(0.0f, 0.0f, 1000));
|
||||
addStrategy("Sys 1 Fan KW", new SingleValueStrategy(0.0f, 0.0f, 1000));
|
||||
addStrategy("Sys 2 Fan KW", new SingleValueStrategy(0.0f, 0.0f, 1000));
|
||||
addStrategy("Sys 1 Compressor KW", new SingleValueStrategy(0.0f, 0.0f, 1000));
|
||||
@@ -82,7 +83,7 @@ State<ModbusRTU>* StandbyState<ModbusRTU>::update(Equipment<ModbusRTU>* equipmen
|
||||
|
||||
std::vector<std::string> activeAlarmsDescriptions = {};
|
||||
const std::vector<std::string> alarmDescriptions = {
|
||||
"Sys 1 Alarm", "Sys 2 Alarm", "Sys 1 Fan Fault Alarm", "Sys 2 Fan Fault Alarm",
|
||||
"Sys 1 Fan Fault Alarm", "Sys 2 Fan Fault Alarm"
|
||||
};
|
||||
|
||||
// Loop through alarms, create array of active alarms and send to FailState if any alarms are active
|
||||
@@ -102,6 +103,17 @@ State<ModbusRTU>* StandbyState<ModbusRTU>::update(Equipment<ModbusRTU>* equipmen
|
||||
return new RunningState<ModbusRTU>();
|
||||
}
|
||||
|
||||
// Update Operational Code depending on Free Cooling Mode
|
||||
int freeCoolingState = getPointValue(equipment, "Free Cooling Mode ON");
|
||||
if (freeCoolingState == 1){
|
||||
setPointValue(equipment, "Sys 1 Operational Code", 82);
|
||||
setPointValue(equipment, "Sys 2 Operational Code", 82);
|
||||
}
|
||||
else{
|
||||
setPointValue(equipment, "Sys 1 Operational Code", 77);
|
||||
setPointValue(equipment, "Sys 2 Operational Code", 77);
|
||||
}
|
||||
|
||||
// Apply any strategies defined for the standby state
|
||||
_applyStrategies(equipment);
|
||||
return nullptr;
|
||||
|
||||
@@ -55,58 +55,57 @@
|
||||
modbusMap mb_map[] =
|
||||
{
|
||||
{COIL, 0, 0, "Chiller Start Command"}, // Use in Modscan - Hard IO in SCP, Used for Arduino simulation only. Signal should come from PLC.
|
||||
{COIL, 1, 0, "Sys 1 Alarm"}, // Use in Modscan - Hard IO in SCP, Used for Arduino simulation only --> INDICATION ONLY
|
||||
{COIL, 2, 0, "Sys 2 Alarm"}, // Use in Modscan - Hard IO in SCP, Used for Arduino simulation only --> INDICATION ONLY
|
||||
{COIL, 3, 0, "Sys 1 Fan Fault ON"}, // Use in Modscan - Used for Arduino simulation only --> FAILSTATE
|
||||
{COIL, 4, 0, "Sys 2 Fan Fault ON"}, // Use in Modscan - Used for Arduino simulation only --> FAILSTATE
|
||||
{COIL, 5, 0, "Free Cooling Mode ON"}, // Use in Modscan - Used for Arduino simulation only
|
||||
{COIL, 6, 0, "General Alarm ON"}, // Use in Modscan - Used for Arduino simulation only
|
||||
{COIL, 1, 0, "Sys 1 Alarm"}, // Use in Modscan - Hard IO in SCP, Used for Arduino simulation only --> INDICATION ONLY (assumption)
|
||||
{COIL, 2, 0, "Sys 2 Alarm"}, // Use in Modscan - Hard IO in SCP, Used for Arduino simulation only --> INDICATION ONLY (assumption)
|
||||
{COIL, 3, 0, "Sys 1 Fan Fault ON"}, // Use in Modscan - Used for Arduino simulation only --> FAILSTATE (assumption)
|
||||
{COIL, 4, 0, "Sys 2 Fan Fault ON"}, // Use in Modscan - Used for Arduino simulation only --> FAILSTATE (assumption)
|
||||
{COIL, 5, 0, "Free Cooling Mode ON"}, // Use in Modscan - Used for Arduino simulation only
|
||||
|
||||
{DI, 65, 0, "General Alarm"}, // part of Modbus map, but not included in code --> INDICATION ONLY
|
||||
{DI, 65, 0, "General Alarm"}, // if any alarm is active, General Alarm = 1 --> used for INDICATION ONLY (assumption)
|
||||
{DI, 174, 0, "Sys 1 Fan Fault Alarm"},
|
||||
{DI, 175, 0, "Sys 2 Fan Fault Alarm"},
|
||||
|
||||
{IR, 130, 0, "Free Cooling Mode"},
|
||||
{IR, 165, 0, "Free Cooling Valve"},
|
||||
|
||||
{HR, 0, 0, "Chiller Status"}, // Use in Modscan - Hard IO in SCP, Used for Arduino simulation only
|
||||
{HR, 1, 0, "Chiller Temp Setpoint"}, // Use in Modscan - Hard IO in SCP, Used for Arduino simulation only
|
||||
{HR, 2, 0, "Supply Temp"}, // Use in Modscan - Hard IO in SCP (PICS?), Used for Arduino simulation only
|
||||
{HR, 3, 0, "Return Temp"}, // Use in Modscan - Hard IO in SCP (PICS?), Used for Arduino simulation only
|
||||
{HR, 0, 0, "Chiller Status"}, // Use in Modscan - Hard IO in SCP, Used for Arduino simulation only
|
||||
{HR, 1, 0, "Chiller Temp Setpoint"}, // Use in Modscan - Hard IO in SCP, Used for Arduino simulation only
|
||||
{HR, 2, 0, "Supply Temp"}, // Use in Modscan - Hard IO in SCP, Used for Arduino simulation only
|
||||
{HR, 3, 0, "Return Temp"}, // Use in Modscan - Hard IO in SCP, Used for Arduino simulation only
|
||||
|
||||
{HR, 4, 70, "System CHW Out"},
|
||||
{HR, 5, 70, "System CHW In"},
|
||||
{HR, 7, 0, "Sys 1 Condenser Temp"},
|
||||
{HR, 9, 0, "Ambient Temp"},
|
||||
{HR_10x, 7, 0, "Sys 1 Condenser Temp"},
|
||||
{HR_10x, 9, 0, "Ambient Temp"},
|
||||
|
||||
{HR, 11, 0, "Sys 1 Oil Pressure"},
|
||||
{HR, 12, 0, "Sys 1 Suction Pressure"},
|
||||
{HR, 13, 0, "Sys 1 Discharge Pressure"},
|
||||
{HR, 14, 0, "Sys 1 Compressor Pct FLA"},
|
||||
{HR, 15, 0, "Sys 1 Run Hours"},
|
||||
{HR, 16, 0, "Sys 1 Starts"},
|
||||
{HR_10x, 11, 0, "Sys 1 Oil Pressure"},
|
||||
{HR_10x, 12, 0, "Sys 1 Suction Pressure"},
|
||||
{HR_10x, 13, 0, "Sys 1 Discharge Pressure"},
|
||||
{HR_10x, 14, 0, "Sys 1 Compressor Pct FLA"},
|
||||
{HR, 15, 0, "Sys 1 Run Hours"},
|
||||
{HR, 16, 0, "Sys 1 Starts"},
|
||||
|
||||
{HR, 20, 0, "Sys 2 Oil Pressure"},
|
||||
{HR, 21, 0, "Sys 2 Suction Pressure"},
|
||||
{HR, 22, 0, "Sys 2 Discharge Pressure"},
|
||||
{HR, 23, 0, "Sys 2 Compressor Pct FLA"},
|
||||
{HR, 24, 0, "Sys 2 Run Hours"},
|
||||
{HR, 25, 0, "Sys 2 Starts"},
|
||||
{HR_10x, 20, 0, "Sys 2 Oil Pressure"},
|
||||
{HR_10x, 21, 0, "Sys 2 Suction Pressure"},
|
||||
{HR_10x, 22, 0, "Sys 2 Discharge Pressure"},
|
||||
{HR_10x, 23, 0, "Sys 2 Compressor Pct FLA"},
|
||||
{HR, 24, 0, "Sys 2 Run Hours"},
|
||||
{HR, 25, 0, "Sys 2 Starts"},
|
||||
|
||||
{HR, 26, 0, "VSD Output Frequency"}, // part of Modbus map, but not included in code
|
||||
{HR_10x, 26, 0, "VSD Output Frequency"}, // part of Modbus map, but not included in code
|
||||
|
||||
{HR, 29, 77, "Sys 1 Operational Code"},
|
||||
{HR, 30, 0, "Sys 1 Fault Code"},
|
||||
{HR, 31, 77, "Sys 2 Operational Code"},
|
||||
{HR, 32, 0, "Sys 2 Fault Code"},
|
||||
{HR, 29, 77, "Sys 1 Operational Code"}, // 77:not running, 78:running, 82:free cooling
|
||||
{HR, 30, 0, "Sys 1 Fault Code"}, // 56:condenser fan VSD warning
|
||||
{HR, 31, 77, "Sys 2 Operational Code"}, // 77:not running, 78:running, 82:free cooling
|
||||
{HR, 32, 0, "Sys 2 Fault Code"}, // 56:condenser fan VSD warning
|
||||
|
||||
{HR, 39, 0, "Local Leaving Temp Setpoint"},
|
||||
{HR, 39, 0, "Local Leaving Temp Setpoint"},
|
||||
|
||||
{HR, 49, 0, "Sys 2 Condenser Temp"},
|
||||
{HR, 140, 0, "Sys 1 Fan KW"},
|
||||
{HR, 141, 0, "Sys 1 Compressor KW"},
|
||||
{HR, 142, 0, "Sys 2 Fan KW"},
|
||||
{HR, 143, 0, "Sys 2 Compressor KW"},
|
||||
{HR_10x, 49, 0, "Sys 2 Condenser Temp"},
|
||||
{HR_10x, 140, 0, "Sys 1 Fan KW"},
|
||||
{HR_10x, 141, 0, "Sys 1 Compressor KW"},
|
||||
{HR_10x, 142, 0, "Sys 2 Fan KW"},
|
||||
{HR_10x, 143, 0, "Sys 2 Compressor KW"},
|
||||
|
||||
};
|
||||
//Size of modbus map used in FOR cycles, automatically calculated.
|
||||
|
||||
Reference in New Issue
Block a user