-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented the read portion of the modbus registers from Manual Section
B.4.2.
- Loading branch information
Showing
3 changed files
with
279 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
146 changes: 146 additions & 0 deletions
146
src/main/java/com/rbrubaker/multizone4j/reference/RefrigerantType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
package com.rbrubaker.multizone4j.reference; | ||
|
||
public class RefrigerantType { | ||
|
||
public static final int CO2_R744 = 0; | ||
public static final int NH3_R717 = 0; | ||
public static final int R11 = 0; | ||
public static final int R12 = 1; | ||
public static final int R22 = 2; | ||
public static final int R23 = 3; | ||
public static final int R113 = 4; | ||
public static final int R114 = 5; | ||
public static final int R123 = 6; | ||
public static final int R124 = 7; | ||
public static final int R134A = 8; | ||
public static final int R401A = 9; | ||
public static final int R402A = 10; | ||
public static final int R402B = 11; | ||
public static final int R404A = 12; | ||
public static final int R407A = 13; | ||
public static final int R407C = 14; | ||
public static final int R409A = 15; | ||
public static final int R410A = 16; | ||
public static final int R500 = 17; | ||
public static final int R502 = 18; | ||
public static final int R503 = 19; | ||
public static final int R507 = 20; | ||
public static final int R508B = 21; | ||
public static final int H1301 = 22; | ||
public static final int R408A = 23; | ||
public static final int FA188 = 24; | ||
public static final int R236FA = 25; | ||
public static final int N1230 = 26; | ||
public static final int R227 = 27; | ||
public static final int HFP = 28; | ||
public static final int FC72 = 29; | ||
public static final int R21 = 30; | ||
public static final int R125 = 31; | ||
public static final int H1211 = 32; | ||
public static final int H2402 = 33; | ||
public static final int R245FA = 34; | ||
public static final int R422A = 35; | ||
public static final int R422D = 36; | ||
public static final int R427A = 37; | ||
public static final int H1234YF = 38; | ||
public static final int R424A = 39; | ||
public static final int R426A = 40; | ||
public static final int R438A = 41; | ||
public static final int R32 = 42; | ||
public static final int H1234ZE = 43; | ||
public static final int R407F = 44; | ||
public static final int N7100 = 45; | ||
public static final int N7200 = 46; | ||
public static final int N7300 = 47; | ||
public static final int N7600 = 48; | ||
public static final int H1233ZDE = 49; | ||
public static final int N4710 = 50; | ||
public static final int R448A = 51; | ||
public static final int R449A = 52; | ||
public static final int R513A = 53; | ||
public static final int R452A = 54; | ||
public static final int R452B = 55; | ||
public static final int R514A = 56; | ||
public static final int H1336E = 57; | ||
public static final int H1336Z = 58; | ||
public static final int N5110 = 59; | ||
public static final int R454A = 60; | ||
public static final int R454B = 61; | ||
public static final int R454C = 62; | ||
public static final int R455A = 63; | ||
public static final int H1224ydZ = 64; | ||
public static final int FC3284 = 65; | ||
|
||
public String getValueOf(int refrigerantType) { | ||
switch (refrigerantType) { | ||
case 0: return "CO2/R-744, NH3/R-717, R-11"; | ||
case 1: return "R-12"; | ||
case 2: return "R-22"; | ||
case 3: return "R-23"; | ||
case 4: return "R-113"; | ||
case 5: return "R-114"; | ||
case 6: return "R-123"; | ||
case 7: return "R-124"; | ||
case 8: return "R-134A"; | ||
case 9: return "R-401A"; | ||
case 10: return "R-402A"; | ||
case 11: return "R-402B"; | ||
case 12: return "R-404A"; | ||
case 13: return "R-407A"; | ||
case 14: return "R-407C"; | ||
case 15: return "R-409A"; | ||
case 16: return "R-410A"; | ||
case 17: return "R-500"; | ||
case 18: return "R-502"; | ||
case 19: return "R-503"; | ||
case 20: return "R-507"; | ||
case 21: return "R-508B"; | ||
case 22: return "H1301"; | ||
case 23: return "R-408A"; | ||
case 24: return "FA188"; | ||
case 25: return "R-236FA"; | ||
case 26: return "N1230"; | ||
case 27: return "R-227"; | ||
case 28: return "HFP"; | ||
case 29: return "FC72"; | ||
case 30: return "R-21"; | ||
case 31: return "R-125"; | ||
case 32: return "H1211"; | ||
case 33: return "H2402"; | ||
case 34: return "R-245FA"; | ||
case 35: return "R-422A"; | ||
case 36: return "R-422D"; | ||
case 37: return "R-427A"; | ||
case 38: return "H1234YF"; | ||
case 39: return "R-424A"; | ||
case 40: return "R-426A"; | ||
case 41: return "R-438A"; | ||
case 42: return "R-32"; | ||
case 43: return "H1234ZE"; | ||
case 44: return "R-407F"; | ||
case 45: return "N7100"; | ||
case 46: return "N7200"; | ||
case 47: return "N7300"; | ||
case 48: return "N7600"; | ||
case 49: return "H1233ZDE"; | ||
case 50: return "N4710"; | ||
case 51: return "R-448A"; | ||
case 52: return "R-449A"; | ||
case 53: return "R-513A"; | ||
case 54: return "R-452A"; | ||
case 55: return "R-452B"; | ||
case 56: return "R-514A"; | ||
case 57: return "H1336E"; | ||
case 58: return "H1336Z"; | ||
case 59: return "N5110"; | ||
case 60: return "R-454A"; | ||
case 61: return "R-454B"; | ||
case 62: return "R-454C"; | ||
case 63: return "R-455A"; | ||
case 64: return "H1224ydZ"; | ||
case 65: return "FC3284"; | ||
default: return "Unknown refrigerant type"; | ||
} | ||
} | ||
|
||
} |