Loading…
Loading…
Method Name: change_pst_enabled_method
Method ID: 0x471B
Method Label: Change PST Enabled
Method Help: Change the setting to PST Enabled. If "Scheduled" is selected, 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(); }
- 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(); }
- _get_dev_var_value(("|en|Select a PST Enabled value.\n\n%[L]{pst_enabled}: "),0,18046);
- send(225, status); if(status[0]) { display_response_status(225, status[0]); DELAY(3,"|en|Aborting method due to last error"); process_abort(); }
Please login for more