Loading…

方法名称: basic_setup_method

方法ID: 0x40EC

方法标签: Basic Setup

方法描述: Set up the control unit to measure Sludge Density using known information.


  • {
  • char status[3];
  • char set_frequency;
  • char frequency_in_use;
  • int op_select;
  • int select_yn;
  • long ids[6];
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • SET_NUMBER_OF_RETRIES(2);
  • ACKNOWLEDGE(literal_string(469));
  • _add_abort_method(4118);
  • while (1)
  • {
  • select_yn = 0;
  • op_select = SELECT_FROM_LIST(literal_string(477),literal_string(478));
  • if (op_select == 0)
  • {
  • while (select_yn == 0)
  • {
  • set_frequency = _ivar_value(16432);
  • if (set_frequency == 0)
  • {
  • send(162,status);
  • if (status[0])
  • {
  • display_response_status(162,status[0]);
  • }
  • frequency_in_use = _ivar_value(16510);
  • if (frequency_in_use == 1)
  • select_yn = SELECT_FROM_LIST(literal_string(479),literal_string(471));
  • else
  • select_yn = SELECT_FROM_LIST(literal_string(480),literal_string(471));
  • }
  • else
  • if (set_frequency == 1)
  • {
  • send(162,status);
  • if (status[0])
  • {
  • display_response_status(162,status[0]);
  • }


请登录以获得完整内容