Loading…
Loading…
方法名称: check_conf_history
方法ID: 0x4207
方法标签: Config History
方法描述: Allows to check the configuration history. Select the parameter number to read history stored under it.Parameter 1 gives the latest history and Parameter 5 gives the oldest.
- {
- char status[3];
- long temp_int_val;
- long temp_flt_1;
- long temp_flt_2;
- long temp_flt_3;
- long temp_flt_4;
- float temp_float_val;
- unsigned char i_cntr;
- unsigned char my_char;
- int abc;
- _set_device_status(0xFF,0);
- _set_xmtr_device_status(0xFF,0);
- _set_all_resp_code(0);
- _set_xmtr_all_resp_code(0);
- if (conf_histoy_code < 1 || conf_histoy_code > 5)
- {
- conf_histoy_code = 1;
- }
- do {
- _get_dev_var_value(literal_string(1542),0,16729);
- send_command(177);
- if (conf_histoy_code >= 1 && conf_histoy_code <= 5)
- {
- send_trans(178,0,status);
- _vassign(16699,16697);
- if (_ivar_value(16699) == 1 || _ivar_value(16699) == 3 || _ivar_value(16699) == 8 || _ivar_value(16699) == 9 || _ivar_value(16699) == 10 || _ivar_value(16699) == 13 || _ivar_value(16699) == 14 || _ivar_value(16699) == 16 || _ivar_value(16699) == 35 || _ivar_value(16699) == 37)
- {
- send_command_trans(178,2);
- }
- else
- if (_ivar_value(16699) == 0 || _ivar_value(16699) == 2)
- {
- send_command_trans(178,3);
- }
- else
请登录以获得完整内容