From 1c813898f1e086878584e65ab28dbc1f25315a06 Mon Sep 17 00:00:00 2001 From: victor Date: Wed, 7 Jun 2017 11:11:41 +0900 Subject: [PATCH] =?UTF-8?q?=ED=94=84=EB=A1=9C=ED=86=A0=EC=BD=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20=EB=8C=80=EC=9D=91=20-=20=EB=AA=A8?= =?UTF-8?q?=EB=8D=B8=20=EC=9C=A0=ED=98=95=20=EC=84=A4=EC=A0=95=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20(=EC=A0=84=EA=B8=B0=EC=8B=9D/=EA=B0=80=EC=8A=A4?= =?UTF-8?q?=EC=8B=9D,=20=EB=8B=A8=20=EC=84=A4=EC=A0=95)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app-prime-modbus/app/app-prime-modbus/rs485_serial.c | 2 ++ app/app-prime-modbus/include/all_share.h | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/app-prime-modbus/app/app-prime-modbus/rs485_serial.c b/app/app-prime-modbus/app/app-prime-modbus/rs485_serial.c index 33a87f0..0e6815b 100644 --- a/app/app-prime-modbus/app/app-prime-modbus/rs485_serial.c +++ b/app/app-prime-modbus/app/app-prime-modbus/rs485_serial.c @@ -238,6 +238,8 @@ static void set_value( command_t *pcmd){ case TG_BURNER1_2_RPM : addr = 0x29; break; case TG_BURNER23_1_RPM : addr = 0x2A; break; case TG_BURNER23_2_RPM : addr = 0x2B; break; + case TG_PRODUCT_TYPE : addr = 0x2C; break; + case TG_MODEL_TYPE : addr = 0x2D; break; case TG_ERROR_CLEAR : addr = 0x31; break; } diff --git a/app/app-prime-modbus/include/all_share.h b/app/app-prime-modbus/include/all_share.h index 74273aa..3f86657 100644 --- a/app/app-prime-modbus/include/all_share.h +++ b/app/app-prime-modbus/include/all_share.h @@ -50,6 +50,8 @@ enum target_value_t { TG_BURNER1_2_RPM, TG_BURNER23_1_RPM, TG_BURNER23_2_RPM, + TG_PRODUCT_TYPE, + TG_MODEL_TYPE, TG_ERROR_CLEAR }; @@ -157,8 +159,8 @@ typedef struct { U16 burner1_2_rpm; // 29 U16 burner23_1_rpm; // 2A U16 burner23_2_rpm; // 2B - U16 reserved2c; // 2C - U16 reserved2d; // 2D + U16 product_type; // 2C + U16 model_type; // 2D U16 reserved2e; // 2E U16 reserved2f; // 2F U16 reserved30; // 30 -- 2.1.4