Loading…

Method Name: auto_range_method

Method ID: 0x4155

Method Label: Auto Range (Closed Tank)

Method Help: Auto Range (closed tank)- Automatically calculates the range (LRV and URV). The user must enter the high pressure flange location, specific gravity, fill fluid, span, flange span, and distance of the zero level above the lower flange. This function is valid when Display Function is linear.


  • {
  • char status[3];
  • char disp_string[60];
  • int slen;
  • float pv;
  • float d;
  • int choice;
  • float new_lrv, new_urv;
  • int choice_tank;
  • float conversion_unit_value;
  • float density_value;
  • char flange_loc[10];
  • char fill_fluid[30];
  • char disp_unit[15];
  • slen = 60;
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • _get_dictionary_string(19726337,(disp_string),(slen));
  • _add_abort_method(4118);
  • ACKNOWLEDGE(disp_string);
  • choice_tank = SELECT_FROM_LIST("|en|Select the location where the high-pressure flange is installed.","|en|Top;Bottom");
  • if (choice_tank == 0)
  • {
  • flange_loc ="|en|Top";
  • }
  • else
  • {
  • flange_loc ="|en|Bottom";
  • choice = SELECT_FROM_LIST("|en|Is the model GTX35R/JTE929?","|en|Yes;No");
  • if (choice == 1)
  • {
  • ACKNOWLEDGE("|en|If the high-pressure flange is installed near the bottom of the tank, accuracy is not guaranteed.\nDo you wish to proceed anyway?");
  • }
  • }
  • while(1)
  • {
  • _get_dev_var_value(("|en|Enter the Specific Gravity (ρ) of the liquid in the tank.\n\n%[L]{specific_gravity}: "),0,16689);
  • if (specific_gravity < 0.0)
  • {


Please login for more