|
@@ -7,34 +7,34 @@ package com.hb.proj.gather.protocol;
|
|
*/
|
|
*/
|
|
public enum ZLOpdProtCMDEnum {
|
|
public enum ZLOpdProtCMDEnum {
|
|
|
|
|
|
- //20[应返回数据区字节数] 一次读取到油压、套压、回压、井口温度、载荷 01 03 01 2c 00 0a 校验位两字节 应返回字节数 每个数据项字节数 参数编码表
|
|
|
|
- PRESS_TEMP_LOAD(
|
|
|
|
|
|
+ //20-10[应返回数据区字节数] 一次读取到油压、套压、回压、井口温度、载荷 01 03 01 2c 00 0a 校验位两字节 应返回字节数 每个数据项字节数 参数编码表
|
|
|
|
+ SINGLE_PRESS_TEMP_LOAD(
|
|
new byte[] {0x01, 0x03, 0x01, 0x2c, 0x00, 0x0a, 0x05, (byte)0xf8},
|
|
new byte[] {0x01, 0x03, 0x01, 0x2c, 0x00, 0x0a, 0x05, (byte)0xf8},
|
|
0x14,
|
|
0x14,
|
|
- 4,
|
|
|
|
|
|
+ "single",
|
|
new String[]{"oil_press","casing_press","back_press","well_head_temp","load"}),
|
|
new String[]{"oil_press","casing_press","back_press","well_head_temp","load"}),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//48 电机电流A、B、C,电压A、B、C,有功功耗,无功功耗,有功功率,无功功率,反向功率,功率因数 01 03 01 5f 00 18
|
|
//48 电机电流A、B、C,电压A、B、C,有功功耗,无功功耗,有功功率,无功功率,反向功率,功率因数 01 03 01 5f 00 18
|
|
- CURR_VOL_LOS_PW(
|
|
|
|
|
|
+ SINGLE_CURR_VOL_LOS_PW(
|
|
new byte[] {0x01, 0x03, 0x01, 0x5f, 0x00, 0x18, 0x74, (byte)0x2e},
|
|
new byte[] {0x01, 0x03, 0x01, 0x5f, 0x00, 0x18, 0x74, (byte)0x2e},
|
|
0x30,
|
|
0x30,
|
|
- 4,
|
|
|
|
|
|
+ "single",
|
|
new String[]{"current_a","current_b","current_c","voltage_a","voltage_b","voltage_c","useful_power_loss","unuseful_power_loss","useful_power","unuseful_power","reverse_power","power_factor"}),
|
|
new String[]{"current_a","current_b","current_c","voltage_a","voltage_b","voltage_c","useful_power_loss","unuseful_power_loss","useful_power","unuseful_power","reverse_power","power_factor"}),
|
|
|
|
|
|
//8 冲次、冲程 01 03 01 a4 00 04
|
|
//8 冲次、冲程 01 03 01 a4 00 04
|
|
- FREQ_STROKE(
|
|
|
|
|
|
+ SINGLE_FREQ_STROKE(
|
|
new byte[] {0x01, 0x03, 0x01, (byte)0xa4, 0x00, 0x04, 0x04, 0x16},
|
|
new byte[] {0x01, 0x03, 0x01, (byte)0xa4, 0x00, 0x04, 0x04, 0x16},
|
|
0x08,
|
|
0x08,
|
|
- 4,
|
|
|
|
|
|
+ "single",
|
|
new String[]{"freq","stroke"}),
|
|
new String[]{"freq","stroke"}),
|
|
|
|
|
|
//2 功图实际点数 01 03 03 d7 00 01
|
|
//2 功图实际点数 01 03 03 d7 00 01
|
|
DIAGRAM_POINT_COUNT(
|
|
DIAGRAM_POINT_COUNT(
|
|
new byte[] {0x01, 0x03, 0x03, (byte)0xd7, 0x00, 0x01, 0x34, 0x76},
|
|
new byte[] {0x01, 0x03, 0x03, (byte)0xd7, 0x00, 0x01, 0x34, 0x76},
|
|
0x02,
|
|
0x02,
|
|
- 2,
|
|
|
|
|
|
+ "diagram",
|
|
new String[]{"diagram_point"}),
|
|
new String[]{"diagram_point"}),
|
|
|
|
|
|
|
|
|
|
@@ -44,21 +44,21 @@ public enum ZLOpdProtCMDEnum {
|
|
DIAGRAM_DISP_1(
|
|
DIAGRAM_DISP_1(
|
|
new byte[] {0x01, 0x03, 0x03, (byte)0xe8, 0x00, 0x62, (byte)0x44, 0x53},
|
|
new byte[] {0x01, 0x03, 0x03, (byte)0xe8, 0x00, 0x62, (byte)0x44, 0x53},
|
|
0xc4,
|
|
0xc4,
|
|
- 2,
|
|
|
|
|
|
+ "diagram",
|
|
new String[]{"disp_1"}),
|
|
new String[]{"disp_1"}),
|
|
|
|
|
|
//200-100 功图位移第2部分 01 03 04 4a 00 64
|
|
//200-100 功图位移第2部分 01 03 04 4a 00 64
|
|
DIAGRAM_DISP_2(
|
|
DIAGRAM_DISP_2(
|
|
new byte[] {0x01, 0x03, 0x04, 0x4a, 0x00, 0x64, 0x64, (byte)0xc7},
|
|
new byte[] {0x01, 0x03, 0x04, 0x4a, 0x00, 0x64, 0x64, (byte)0xc7},
|
|
0xc8,
|
|
0xc8,
|
|
- 2,
|
|
|
|
|
|
+ "diagram",
|
|
new String[]{"disp_2"}),
|
|
new String[]{"disp_2"}),
|
|
|
|
|
|
//104-52 功图位移第3部分 01 03 04 ae 00 34
|
|
//104-52 功图位移第3部分 01 03 04 ae 00 34
|
|
DIAGRAM_DISP_3(
|
|
DIAGRAM_DISP_3(
|
|
new byte[] {0x01, 0x03, 0x04, (byte)0xae, 0x00, 0x34, 0x24, (byte)0xcc},
|
|
new byte[] {0x01, 0x03, 0x04, (byte)0xae, 0x00, 0x34, 0x24, (byte)0xcc},
|
|
0x68,
|
|
0x68,
|
|
- 2,
|
|
|
|
|
|
+ "diagram",
|
|
new String[]{"disp_3"}),
|
|
new String[]{"disp_3"}),
|
|
|
|
|
|
|
|
|
|
@@ -68,21 +68,21 @@ public enum ZLOpdProtCMDEnum {
|
|
DIAGRAM_LOAD_1(
|
|
DIAGRAM_LOAD_1(
|
|
new byte[] {0x01, 0x03, 0x04, (byte)0xe2, 0x00, 0x60, (byte)0xe4, (byte)0xe4},
|
|
new byte[] {0x01, 0x03, 0x04, (byte)0xe2, 0x00, 0x60, (byte)0xe4, (byte)0xe4},
|
|
0xc0,
|
|
0xc0,
|
|
- 2,
|
|
|
|
|
|
+ "diagram",
|
|
new String[]{"chartload_1"}),
|
|
new String[]{"chartload_1"}),
|
|
|
|
|
|
//180-90 功图载荷第2部分 01 03 05 42 00 5a
|
|
//180-90 功图载荷第2部分 01 03 05 42 00 5a
|
|
DIAGRAM_LOAD_2(
|
|
DIAGRAM_LOAD_2(
|
|
new byte[] {0x01, 0x03, 0x05, 0x42, 0x00, 0x5a, 0x65, 0x29},
|
|
new byte[] {0x01, 0x03, 0x05, 0x42, 0x00, 0x5a, 0x65, 0x29},
|
|
0xb4,
|
|
0xb4,
|
|
- 2,
|
|
|
|
|
|
+ "diagram",
|
|
new String[]{"chartload_2"}),
|
|
new String[]{"chartload_2"}),
|
|
|
|
|
|
//128-64 功图载荷第3部分 01 03 05 9c 00 40
|
|
//128-64 功图载荷第3部分 01 03 05 9c 00 40
|
|
DIAGRAM_LOAD_3(
|
|
DIAGRAM_LOAD_3(
|
|
new byte[] {0x01, 0x03, 0x05, (byte)0x9c, 0x00, 0x40, (byte)0x84, (byte)0xd8},
|
|
new byte[] {0x01, 0x03, 0x05, (byte)0x9c, 0x00, 0x40, (byte)0x84, (byte)0xd8},
|
|
0x80,
|
|
0x80,
|
|
- 2,
|
|
|
|
|
|
+ "diagram",
|
|
new String[]{"chartload_3"}),
|
|
new String[]{"chartload_3"}),
|
|
|
|
|
|
|
|
|
|
@@ -94,21 +94,21 @@ public enum ZLOpdProtCMDEnum {
|
|
DIAGRAM_CURR_1(
|
|
DIAGRAM_CURR_1(
|
|
new byte[] {0x01, 0x03, 0x05, (byte)0xdc, 0x00, 0x5e, 0x05, 0x04},
|
|
new byte[] {0x01, 0x03, 0x05, (byte)0xdc, 0x00, 0x5e, 0x05, 0x04},
|
|
0xbc,
|
|
0xbc,
|
|
- 2,
|
|
|
|
|
|
+ "diagram",
|
|
new String[]{"chartcurr_1"}),
|
|
new String[]{"chartcurr_1"}),
|
|
|
|
|
|
//176-88 电流图电流第2部分 01 03 06 3a 00 58
|
|
//176-88 电流图电流第2部分 01 03 06 3a 00 58
|
|
DIAGRAM_CURR_2(
|
|
DIAGRAM_CURR_2(
|
|
new byte[] {0x01, 0x03, 0x06, 0x3a, 0x00, 0x58, 0x64, (byte)0xb5},
|
|
new byte[] {0x01, 0x03, 0x06, 0x3a, 0x00, 0x58, 0x64, (byte)0xb5},
|
|
0xb0,
|
|
0xb0,
|
|
- 2,
|
|
|
|
|
|
+ "diagram",
|
|
new String[]{"chartcurr_2"}),
|
|
new String[]{"chartcurr_2"}),
|
|
|
|
|
|
//136-68 电流图电流第3部分 01 03 06 92 00 44
|
|
//136-68 电流图电流第3部分 01 03 06 92 00 44
|
|
DIAGRAM_CURR_3(
|
|
DIAGRAM_CURR_3(
|
|
new byte[] {0x01, 0x03, 0x06, (byte)0x92, 0x00, 0x44, (byte)0xe4, (byte)0x9c},
|
|
new byte[] {0x01, 0x03, 0x06, (byte)0x92, 0x00, 0x44, (byte)0xe4, (byte)0x9c},
|
|
0x88,
|
|
0x88,
|
|
- 2,
|
|
|
|
|
|
+ "diagram",
|
|
new String[]{"chartcurr_3"}),
|
|
new String[]{"chartcurr_3"}),
|
|
|
|
|
|
|
|
|
|
@@ -119,21 +119,21 @@ public enum ZLOpdProtCMDEnum {
|
|
DIAGRAM_POWER_1(
|
|
DIAGRAM_POWER_1(
|
|
new byte[] {0x01, 0x03, 0x06, (byte)0xd6, 0x00, 0x5c, (byte)0xa4, (byte)0x83},
|
|
new byte[] {0x01, 0x03, 0x06, (byte)0xd6, 0x00, 0x5c, (byte)0xa4, (byte)0x83},
|
|
0xb8,
|
|
0xb8,
|
|
- 2,
|
|
|
|
|
|
+ "diagram",
|
|
new String[]{"chartpower_1"}),
|
|
new String[]{"chartpower_1"}),
|
|
|
|
|
|
//172-86 功率图功率第2部分 01 03 07 32 00 56
|
|
//172-86 功率图功率第2部分 01 03 07 32 00 56
|
|
DIAGRAM_POWER_2(
|
|
DIAGRAM_POWER_2(
|
|
new byte[] {0x01, 0x03, 0x07, 0x32, 0x00, 0x56, 0x65, 0x4f},
|
|
new byte[] {0x01, 0x03, 0x07, 0x32, 0x00, 0x56, 0x65, 0x4f},
|
|
0xac,
|
|
0xac,
|
|
- 2,
|
|
|
|
|
|
+ "diagram",
|
|
new String[]{"chartpower_2"}),
|
|
new String[]{"chartpower_2"}),
|
|
|
|
|
|
//144-72 功率图功率第3部分 01 03 07 88 00 48
|
|
//144-72 功率图功率第3部分 01 03 07 88 00 48
|
|
DIAGRAM_POWER_3(
|
|
DIAGRAM_POWER_3(
|
|
new byte[] {0x01, 0x03, 0x07, (byte)0x88, 0x00, 0x48, (byte)0xc4, (byte)0xa2},
|
|
new byte[] {0x01, 0x03, 0x07, (byte)0x88, 0x00, 0x48, (byte)0xc4, (byte)0xa2},
|
|
0x90,
|
|
0x90,
|
|
- 2,
|
|
|
|
|
|
+ "diagram",
|
|
new String[]{"chartpower_3"}),
|
|
new String[]{"chartpower_3"}),
|
|
|
|
|
|
|
|
|
|
@@ -141,7 +141,7 @@ public enum ZLOpdProtCMDEnum {
|
|
LIQUID_OTHER(
|
|
LIQUID_OTHER(
|
|
new byte[] {0x01, 0x03, 0x18, 0x00, 0x00, 0x09, (byte)0x83, 0x6c},
|
|
new byte[] {0x01, 0x03, 0x18, 0x00, 0x00, 0x09, (byte)0x83, 0x6c},
|
|
0x12,
|
|
0x12,
|
|
- 2,
|
|
|
|
|
|
+ "liquid",
|
|
new String[]{"test_time_yy","test_time_mm","test_time_dd","test_time_hr","test_time_mi","test_time_ss","sound_speed","test_depth","casing_pre"}
|
|
new String[]{"test_time_yy","test_time_mm","test_time_dd","test_time_hr","test_time_mi","test_time_ss","sound_speed","test_depth","casing_pre"}
|
|
),
|
|
),
|
|
|
|
|
|
@@ -149,241 +149,241 @@ public enum ZLOpdProtCMDEnum {
|
|
LIQUID_SERIAL_1(
|
|
LIQUID_SERIAL_1(
|
|
new byte[] {0x01,0x03,0x18,0x10,0x00,0x7d,(byte)0x82,(byte)0x8e},
|
|
new byte[] {0x01,0x03,0x18,0x10,0x00,0x7d,(byte)0x82,(byte)0x8e},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_1"}
|
|
new String[] {"serial_1"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_2(
|
|
LIQUID_SERIAL_2(
|
|
new byte[] {0x01,0x03,0x18,(byte)0x8D,0x00,0x7d,0x13,0x60},
|
|
new byte[] {0x01,0x03,0x18,(byte)0x8D,0x00,0x7d,0x13,0x60},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_2"}
|
|
new String[] {"serial_2"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_3(
|
|
LIQUID_SERIAL_3(
|
|
new byte[] {0x01,0x03,0x19,0x0A,0x00,0x7d,(byte)0xa2,(byte)0xb5},
|
|
new byte[] {0x01,0x03,0x19,0x0A,0x00,0x7d,(byte)0xa2,(byte)0xb5},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_3"}
|
|
new String[] {"serial_3"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_4(
|
|
LIQUID_SERIAL_4(
|
|
new byte[] {0x01,0x03,0x19,(byte)0x87,0x00,0x7d,0x32,(byte)0x9e},
|
|
new byte[] {0x01,0x03,0x19,(byte)0x87,0x00,0x7d,0x32,(byte)0x9e},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_4"}
|
|
new String[] {"serial_4"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_5(
|
|
LIQUID_SERIAL_5(
|
|
new byte[] {0x01,0x03,0x1A,0x04,0x00,0x7d,(byte)0xc3,0x32},
|
|
new byte[] {0x01,0x03,0x1A,0x04,0x00,0x7d,(byte)0xc3,0x32},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_5"}
|
|
new String[] {"serial_5"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_6(
|
|
LIQUID_SERIAL_6(
|
|
new byte[] {0x01,0x03,0x1A,(byte)0x81,0x00,0x7d,(byte)0xd2,(byte)0xdb},
|
|
new byte[] {0x01,0x03,0x1A,(byte)0x81,0x00,0x7d,(byte)0xd2,(byte)0xdb},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_6"}
|
|
new String[] {"serial_6"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_7(
|
|
LIQUID_SERIAL_7(
|
|
new byte[] {0x01,0x03,0x1A,(byte)0xFE,0x00,0x7d,(byte)0xe3,0x03},
|
|
new byte[] {0x01,0x03,0x1A,(byte)0xFE,0x00,0x7d,(byte)0xe3,0x03},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_7"}
|
|
new String[] {"serial_7"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_8(
|
|
LIQUID_SERIAL_8(
|
|
new byte[] {0x01,0x03,0x1B,0x7B,0x00,0x7d,(byte)0xf3,0x16},
|
|
new byte[] {0x01,0x03,0x1B,0x7B,0x00,0x7d,(byte)0xf3,0x16},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_8"}
|
|
new String[] {"serial_8"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_9(
|
|
LIQUID_SERIAL_9(
|
|
- new byte[] {0x01,0x03,0x1B,(byte)0xF8,0x00,0x7d},
|
|
|
|
|
|
+ new byte[] {0x01,0x03,0x1B,(byte)0xF8,0x00,0x7d,0x02,(byte)0xfe},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_9"}
|
|
new String[] {"serial_9"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_10(
|
|
LIQUID_SERIAL_10(
|
|
new byte[] {0x01,0x03,0x1C,0x75,0x00,0x7d,(byte)0x93,(byte)0xa1},
|
|
new byte[] {0x01,0x03,0x1C,0x75,0x00,0x7d,(byte)0x93,(byte)0xa1},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_10"}
|
|
new String[] {"serial_10"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_11(
|
|
LIQUID_SERIAL_11(
|
|
new byte[] {0x01,0x03,0x1C,(byte)0xF2,0x00,0x7d,0x23,(byte)0x88},
|
|
new byte[] {0x01,0x03,0x1C,(byte)0xF2,0x00,0x7d,0x23,(byte)0x88},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_11"}
|
|
new String[] {"serial_11"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_12(
|
|
LIQUID_SERIAL_12(
|
|
new byte[] {0x01,0x03,0x1D,0x6F,0x00,0x7d,(byte)0xb3,(byte)0x9a},
|
|
new byte[] {0x01,0x03,0x1D,0x6F,0x00,0x7d,(byte)0xb3,(byte)0x9a},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_12"}
|
|
new String[] {"serial_12"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_13(
|
|
LIQUID_SERIAL_13(
|
|
new byte[] {0x01,0x03,0x1D,(byte)0xEC,0x00,0x7d,0x42,0x72},
|
|
new byte[] {0x01,0x03,0x1D,(byte)0xEC,0x00,0x7d,0x42,0x72},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_13"}
|
|
new String[] {"serial_13"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_14(
|
|
LIQUID_SERIAL_14(
|
|
new byte[] {0x01,0x03,0x1E,0x69,0x00,0x7d,0x53,(byte)0xdf},
|
|
new byte[] {0x01,0x03,0x1E,0x69,0x00,0x7d,0x53,(byte)0xdf},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_14"}
|
|
new String[] {"serial_14"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_15(
|
|
LIQUID_SERIAL_15(
|
|
new byte[] {0x01,0x03,0x1E,(byte)0xE6,0x00,0x7d,0x62,0x34},
|
|
new byte[] {0x01,0x03,0x1E,(byte)0xE6,0x00,0x7d,0x62,0x34},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_15"}
|
|
new String[] {"serial_15"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_16(
|
|
LIQUID_SERIAL_16(
|
|
new byte[] {0x01,0x03,0x1F,0x63,0x00,0x7d,0x72,0x21},
|
|
new byte[] {0x01,0x03,0x1F,0x63,0x00,0x7d,0x72,0x21},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_16"}
|
|
new String[] {"serial_16"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_17(
|
|
LIQUID_SERIAL_17(
|
|
new byte[] {0x01,0x03,0x1F,(byte)0xE0,0x00,0x7d,(byte)0x83,(byte)0xc9},
|
|
new byte[] {0x01,0x03,0x1F,(byte)0xE0,0x00,0x7d,(byte)0x83,(byte)0xc9},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_17"}
|
|
new String[] {"serial_17"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_18(
|
|
LIQUID_SERIAL_18(
|
|
new byte[] {0x01,0x03,0x20,0x5D,0x00,0x7d,0x1f,(byte)0xf9},
|
|
new byte[] {0x01,0x03,0x20,0x5D,0x00,0x7d,0x1f,(byte)0xf9},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_18"}
|
|
new String[] {"serial_18"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_19(
|
|
LIQUID_SERIAL_19(
|
|
new byte[] {0x01,0x03,0x20,(byte)0xDA,0x00,0x7d,(byte)0xaf,(byte)0xd0},
|
|
new byte[] {0x01,0x03,0x20,(byte)0xDA,0x00,0x7d,(byte)0xaf,(byte)0xd0},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_19"}
|
|
new String[] {"serial_19"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_20(
|
|
LIQUID_SERIAL_20(
|
|
new byte[] {0x01,0x03,0x21,0x57,0x00,0x7d,0x3e,0x07},
|
|
new byte[] {0x01,0x03,0x21,0x57,0x00,0x7d,0x3e,0x07},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_20"}
|
|
new String[] {"serial_20"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_21(
|
|
LIQUID_SERIAL_21(
|
|
new byte[] {0x01,0x03,0x21,(byte)0xD4,0x00,0x7d,(byte)0xcf,(byte)0xef},
|
|
new byte[] {0x01,0x03,0x21,(byte)0xD4,0x00,0x7d,(byte)0xcf,(byte)0xef},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_21"}
|
|
new String[] {"serial_21"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_22(
|
|
LIQUID_SERIAL_22(
|
|
new byte[] {0x01,0x03,0x22,0x51,0x00,0x7d,(byte)0xde,0x42},
|
|
new byte[] {0x01,0x03,0x22,0x51,0x00,0x7d,(byte)0xde,0x42},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_22"}
|
|
new String[] {"serial_22"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_23(
|
|
LIQUID_SERIAL_23(
|
|
new byte[] {0x01,0x03,0x22,(byte)0xCE,0x00,0x7d,(byte)0xee,0x6c},
|
|
new byte[] {0x01,0x03,0x22,(byte)0xCE,0x00,0x7d,(byte)0xee,0x6c},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_23"}
|
|
new String[] {"serial_23"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_24(
|
|
LIQUID_SERIAL_24(
|
|
new byte[] {0x01,0x03,0x23,0x4B,0x00,0x7d,(byte)0xfe,0x79},
|
|
new byte[] {0x01,0x03,0x23,0x4B,0x00,0x7d,(byte)0xfe,0x79},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_24"}
|
|
new String[] {"serial_24"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_25(
|
|
LIQUID_SERIAL_25(
|
|
new byte[] {0x01,0x03,0x23,(byte)0xC8,0x00,0x7d,0x0f,(byte)0x91},
|
|
new byte[] {0x01,0x03,0x23,(byte)0xC8,0x00,0x7d,0x0f,(byte)0x91},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_25"}
|
|
new String[] {"serial_25"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_26(
|
|
LIQUID_SERIAL_26(
|
|
new byte[] {0x01,0x03,0x24,0x45,0x00,0x7d,(byte)0x9e,(byte)0xce},
|
|
new byte[] {0x01,0x03,0x24,0x45,0x00,0x7d,(byte)0x9e,(byte)0xce},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_26"}
|
|
new String[] {"serial_26"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_27(
|
|
LIQUID_SERIAL_27(
|
|
new byte[] {0x01,0x03,0x24,(byte)0xC2,0x00,0x7d,0x2e,(byte)0xe7},
|
|
new byte[] {0x01,0x03,0x24,(byte)0xC2,0x00,0x7d,0x2e,(byte)0xe7},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_27"}
|
|
new String[] {"serial_27"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_28(
|
|
LIQUID_SERIAL_28(
|
|
new byte[] {0x01,0x03,0x25,0x3F,0x00,0x7d,(byte)0xbe,(byte)0xeb},
|
|
new byte[] {0x01,0x03,0x25,0x3F,0x00,0x7d,(byte)0xbe,(byte)0xeb},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_28"}
|
|
new String[] {"serial_28"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_29(
|
|
LIQUID_SERIAL_29(
|
|
new byte[] {0x01,0x03,0x25,(byte)0xBC,0x00,0x7d,0x4f,0x03},
|
|
new byte[] {0x01,0x03,0x25,(byte)0xBC,0x00,0x7d,0x4f,0x03},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_29"}
|
|
new String[] {"serial_29"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_30(
|
|
LIQUID_SERIAL_30(
|
|
new byte[] {0x01,0x03,0x26,0x39,0x00,0x7d,0x5e,(byte)0xae},
|
|
new byte[] {0x01,0x03,0x26,0x39,0x00,0x7d,0x5e,(byte)0xae},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_30"}
|
|
new String[] {"serial_30"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_31(
|
|
LIQUID_SERIAL_31(
|
|
new byte[] {0x01,0x03,0x26,(byte)0xB6,0x00,0x7d,0x6f,0x45},
|
|
new byte[] {0x01,0x03,0x26,(byte)0xB6,0x00,0x7d,0x6f,0x45},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_31"}
|
|
new String[] {"serial_31"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_32(
|
|
LIQUID_SERIAL_32(
|
|
new byte[] {0x01,0x03,0x27,0x33,0x00,0x7d,0x7f,0x50},
|
|
new byte[] {0x01,0x03,0x27,0x33,0x00,0x7d,0x7f,0x50},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_32"}
|
|
new String[] {"serial_32"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_33(
|
|
LIQUID_SERIAL_33(
|
|
new byte[] {0x01,0x03,0x27,(byte)0xB0,0x00,0x7d,(byte)0x8e,(byte)0xb8},
|
|
new byte[] {0x01,0x03,0x27,(byte)0xB0,0x00,0x7d,(byte)0x8e,(byte)0xb8},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_33"}
|
|
new String[] {"serial_33"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_34(
|
|
LIQUID_SERIAL_34(
|
|
new byte[] {0x01,0x03,0x28,0x2D,0x00,0x7d,0x1c,0x42},
|
|
new byte[] {0x01,0x03,0x28,0x2D,0x00,0x7d,0x1c,0x42},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_34"}
|
|
new String[] {"serial_34"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_35(
|
|
LIQUID_SERIAL_35(
|
|
new byte[] {0x01,0x03,0x28,(byte)0xAA,0x00,0x7d,(byte)0xac,0x6b},
|
|
new byte[] {0x01,0x03,0x28,(byte)0xAA,0x00,0x7d,(byte)0xac,0x6b},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_35"}
|
|
new String[] {"serial_35"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_36(
|
|
LIQUID_SERIAL_36(
|
|
new byte[] {0x01,0x03,0x29,0x27,0x00,0x7d,0x3d,(byte)0xbc},
|
|
new byte[] {0x01,0x03,0x29,0x27,0x00,0x7d,0x3d,(byte)0xbc},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_36"}
|
|
new String[] {"serial_36"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_37(
|
|
LIQUID_SERIAL_37(
|
|
new byte[] {0x01,0x03,0x29,(byte)0xA4,0x00,0x7d,(byte)0xcc,0x54},
|
|
new byte[] {0x01,0x03,0x29,(byte)0xA4,0x00,0x7d,(byte)0xcc,0x54},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_37"}
|
|
new String[] {"serial_37"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_38(
|
|
LIQUID_SERIAL_38(
|
|
new byte[] {0x01,0x03,0x2A,0x21,0x00,0x7d,(byte)0xdd,(byte)0xf9},
|
|
new byte[] {0x01,0x03,0x2A,0x21,0x00,0x7d,(byte)0xdd,(byte)0xf9},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_38"}
|
|
new String[] {"serial_38"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_39(
|
|
LIQUID_SERIAL_39(
|
|
new byte[] {0x01,0x03,0x2A,(byte)0x9E,0x00,0x7d,(byte)0xec,0x1d},
|
|
new byte[] {0x01,0x03,0x2A,(byte)0x9E,0x00,0x7d,(byte)0xec,0x1d},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_39"}
|
|
new String[] {"serial_39"}
|
|
),
|
|
),
|
|
LIQUID_SERIAL_40(
|
|
LIQUID_SERIAL_40(
|
|
new byte[] {0x01,0x03,0x2B,0x1B,0x00,0x7d,(byte)0xfc,0x08},
|
|
new byte[] {0x01,0x03,0x2B,0x1B,0x00,0x7d,(byte)0xfc,0x08},
|
|
0xfa,
|
|
0xfa,
|
|
- 1,
|
|
|
|
|
|
+ "liquid",
|
|
new String[] {"serial_40"}
|
|
new String[] {"serial_40"}
|
|
);
|
|
);
|
|
|
|
|
|
@@ -391,14 +391,14 @@ public enum ZLOpdProtCMDEnum {
|
|
|
|
|
|
private int totalBytCount; //返回的字节数(以此区分不同指令的返回数据)
|
|
private int totalBytCount; //返回的字节数(以此区分不同指令的返回数据)
|
|
|
|
|
|
- private int itemBytCount; //每个数据项字节数 目前为4字节或2字节一个数据
|
|
|
|
|
|
+ private String type; //指令类型(single,diagram,liquid)
|
|
|
|
|
|
private String[] paramCodes; //返回数据项对应参数编码
|
|
private String[] paramCodes; //返回数据项对应参数编码
|
|
|
|
|
|
- private ZLOpdProtCMDEnum(byte[] cmd,int totalBytCount,int itemBytCount,String[] paramCodes) {
|
|
|
|
|
|
+ private ZLOpdProtCMDEnum(byte[] cmd,int totalBytCount,String type,String[] paramCodes) {
|
|
this.cmd=cmd;
|
|
this.cmd=cmd;
|
|
this.totalBytCount=totalBytCount;
|
|
this.totalBytCount=totalBytCount;
|
|
- this.itemBytCount=itemBytCount;
|
|
|
|
|
|
+ this.type=type;
|
|
this.paramCodes=paramCodes;
|
|
this.paramCodes=paramCodes;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -410,8 +410,8 @@ public enum ZLOpdProtCMDEnum {
|
|
return totalBytCount;
|
|
return totalBytCount;
|
|
}
|
|
}
|
|
|
|
|
|
- public int getItemBytCount() {
|
|
|
|
- return itemBytCount;
|
|
|
|
|
|
+ public String getType() {
|
|
|
|
+ return type;
|
|
}
|
|
}
|
|
|
|
|
|
public String[] getParamCodes() {
|
|
public String[] getParamCodes() {
|