Loading…

Method Name: set_pst_schedule_method

Method ID: 0x472B

Method Label: Set PST Schedule

Method Help: Set the start time and execution cycle for the PST.


  • {
  • char status[3];
  • float next_time_hour;
  • _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(); }
  • {
  • enter_pst_schedule_method();
  • send_trans(226, 3, status); if(status[0]) { display_response_status(226, status[0]); DELAY(3,"|en|Aborting method due to last error"); process_abort(); }
  • send_trans(224, 2, status); if(status[0]) { display_response_status(224, status[0]); DELAY(3,"|en|Aborting method due to last error"); process_abort(); }
  • next_time_hour = pst_next_exec_time * 24;
  • ACKNOWLEDGE("|en|Schedule is set.\nThe next PST will take place in %{pst_next_exec_time} days (%[.2f]{next_time_hour} hours). ");
  • }
  • send_trans(184, 2, status); if(status[0]) { display_response_status(184, status[0]); DELAY(3,"|en|Aborting method due to last error"); process_abort(); }


Please login for more