Loading…

Method Name: execute_pst_method

Method ID: 0x471C

Method Label: Execute PST

Method Help:


  • {
  • char status[3];
  • _set_all_resp_code(0);
  • _set_xmtr_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • send_trans(164, 1, status); if(status[0]) { display_response_status(164, status[0]); DELAY(3,"|en|Aborting method due to last error"); process_abort(); } if(ope_authority_sts != 1) { ACKNOWLEDGE("|en|User does not have permission for the operation. Please allow operator action."); process_abort(); }
  • send_trans(224, 0, status); if(status[0]) { display_response_status(224, status[0]); DELAY(3,"|en|Aborting method due to last error"); process_abort(); };
  • if (pst_enabled != 0)
  • {
  • ACKNOWLEDGE("|en|Caution!\nThis operation may cause sudden action of the valve.\nPlease ensure the safety of personnel and of the process operation before proceeding.");
  • ACKNOWLEDGE("|en|Execute Partial Stroke Test?");
  • send_trans(226, 0, status); if(status[0]) { display_response_status(226, status[0]); DELAY(3,"|en|Aborting method due to last error"); process_abort(); };
  • _add_abort_method(18205);
  • do{
  • DELAY(3,"|en|Partial Stroke Test is running.\nPlease wait.\n\n%[L]{input_percent}\t\t: %{input_percent} %[U]{input_percent}\n%[L]{set_point}\t: %{set_point} %[U]{set_point}\n%[L]{travel}\t\t: %{travel} %[U]{travel}\n%[L]{position}\t\t: %{position} %[U]{position}\n%[L]{drive_signal}\t: %{drive_signal} %[U]{drive_signal}");
  • send(48, status); if(status[0]) { display_response_status(48, status[0]); DELAY(3,"|en|Aborting method due to last error"); process_abort(); };
  • send(128, status); if(status[0]) { display_response_status(128, status[0]); DELAY(3,"|en|Aborting method due to last error"); process_abort(); };
  • }while(device_specific_status_15 & 0x01);


Please login for more