Commit 1c813898f1e086878584e65ab28dbc1f25315a06

Authored by 김태훈
1 parent aa759e27a7
Exists in master and in 2 other branches fhd, fhd-demo

프로토콜 변경 대응

- 모델 유형 설정 추가 (전기식/가스식, 단 설정)
app/app-prime-modbus/app/app-prime-modbus/rs485_serial.c
... ... @@ -238,6 +238,8 @@ static void set_value( command_t *pcmd){
238 238 case TG_BURNER1_2_RPM : addr = 0x29; break;
239 239 case TG_BURNER23_1_RPM : addr = 0x2A; break;
240 240 case TG_BURNER23_2_RPM : addr = 0x2B; break;
  241 + case TG_PRODUCT_TYPE : addr = 0x2C; break;
  242 + case TG_MODEL_TYPE : addr = 0x2D; break;
241 243 case TG_ERROR_CLEAR : addr = 0x31; break;
242 244 }
243 245  
... ...
app/app-prime-modbus/include/all_share.h
... ... @@ -50,6 +50,8 @@ enum target_value_t {
50 50 TG_BURNER1_2_RPM,
51 51 TG_BURNER23_1_RPM,
52 52 TG_BURNER23_2_RPM,
  53 + TG_PRODUCT_TYPE,
  54 + TG_MODEL_TYPE,
53 55 TG_ERROR_CLEAR
54 56 };
55 57  
... ... @@ -157,8 +159,8 @@ typedef struct {
157 159 U16 burner1_2_rpm; // 29
158 160 U16 burner23_1_rpm; // 2A
159 161 U16 burner23_2_rpm; // 2B
160   - U16 reserved2c; // 2C
161   - U16 reserved2d; // 2D
  162 + U16 product_type; // 2C
  163 + U16 model_type; // 2D
162 164 U16 reserved2e; // 2E
163 165 U16 reserved2f; // 2F
164 166 U16 reserved30; // 30
... ...