Loading…

Method Name: gland_packing_method

Method ID: 0x4120

Method Label: Change Gland Packing Type

Method Help: Gland packing type parameter will be changed.


  • {
  • char status[3];
  • int tmp_data;
  • int act_size;
  • int hyst_code;
  • int hyst_code_new;
  • int choice;
  • int tmp_mode;
  • _set_all_resp_code(0);
  • _set_xmtr_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • send(196,status);
  • if (status[0])
  • {
  • display_response_status(196,status[0]);
  • DELAY(3,literal_string(1148));
  • process_abort();
  • }
  • tmp_mode = _ivar_value(16389);
  • if (tmp_mode != 0)
  • {
  • ACKNOWLEDGE(literal_string(1149));
  • process_abort();
  • }
  • send(133,status);
  • if (status[0])
  • {
  • display_response_status(133,status[0]);
  • DELAY(3,literal_string(1148));
  • process_abort();
  • }
  • tmp_data = _ivar_value(16395);
  • hyst_code = tmp_data & 0x07;
  • act_size = tmp_data & 0xf8;
  • tmp_data &= 0xf8;
  • hyst_code_new = hyst_code;
  • switch (act_size)
  • {
  • case 0x00:
  • ACKNOWLEDGE(literal_string(1182));
  • break;
  • case 0x08:
  • switch (hyst_code)
  • {
  • case 0x00:
  • choice = SELECT_FROM_LIST(literal_string(1183),literal_string(1184));
  • hyst_code_new = choice;
  • break;
  • case 0x01:


Please login for more