Loading…
Loading…
Method Name: show_error_log
Method ID: 0x41EB
Method Label: Show Error Log
Method Help: Displays Error Log with time-stamps of device
- {
- int temp;
- int which_error;
- int local_tm_in_svc,local_log,time_stamp_of_err,local_time_stamp;
- int yrs, mnths, dys, hrs, mins;
- long ids[5];
- int code_no;
- _set_device_status(0xFF,0);
- _set_xmtr_device_status(0xFF,0);
- _set_all_resp_code(0);
- _set_xmtr_all_resp_code(0);
- do
- {
- send_command (213);
- send_command (214);
- local_tm_in_svc = (_ivar_value(16521));
- which_error = SELECT_FROM_LIST("|en|Choose the Error Number","|en|Error 1;Error 2;Error 3;Error 4;Error 5;Error 6;Error 7;Error 8;Error 9;Error 10;Exit");
- switch (which_error)
- {
- case 0:
- local_log = (_ivar_value(16522));
- time_stamp_of_err = (_ivar_value(16532));
- break;
- case 1:
- local_log = (_ivar_value(16523));
- time_stamp_of_err = (_ivar_value(16533));
- break;
- case 2:
- local_log = (_ivar_value(16524));
- time_stamp_of_err = (_ivar_value(16534));
- break;
- case 3:
- local_log = (_ivar_value(16525));
- time_stamp_of_err = (_ivar_value(16535));
- break;
- case 4:
- local_log = (_ivar_value(16526));
- time_stamp_of_err = (_ivar_value(16536));
- break;
- case 5:
- local_log = (_ivar_value(16527));
- time_stamp_of_err = (_ivar_value(16537));
- break;
- case 6:
- local_log = (_ivar_value(16528));
- time_stamp_of_err = (_ivar_value(16538));
- break;
- case 7:
- local_log = (_ivar_value(16529));
- time_stamp_of_err = (_ivar_value(16539));
- break;
- case 8:
- local_log = (_ivar_value(16530));
- time_stamp_of_err = (_ivar_value(16540));
- break;
- case 9:
- local_log = (_ivar_value(16531));
- time_stamp_of_err = (_ivar_value(16541));
- break;
- case 10:
- process_abort ();
- }
- local_time_stamp = local_tm_in_svc - time_stamp_of_err;
- if (local_time_stamp < 60)
- {
- mins = local_time_stamp;
- code_no = 1;
Please login for more