Loading…
Loading…
Method Name: ejx_method_master_test
Method ID: 0x4017
Method Label: Master test
Method Help: Master Reset- Commands the EJX-MV electronics to reset and perform a selftest. Reports any errors that occured.
- {
- char status[3];
- char xmtr_status[25];
- int number_of_tries;
- int slen1;
- char disp_string1[60];
- {
- _set_all_resp_code(0);
- _set_device_status(0xFF,0);
- _set_xmtr_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- }
- ;
- if (SELECT_FROM_LIST(literal_string(657),literal_string(658)) == 0)
- {
- process_abort();
- }
- slen1 = 60;
- _get_dictionary_string(19726337,disp_string1,slen1);
- ACKNOWLEDGE(disp_string1);
- send(42,status);
- DELAY(8,literal_string(659));
- if (status[0] == 7)
- {
- display_response_status(42,status[0]);
- abort();
- }
- number_of_tries = 0;
- do {
- get_more_status(status,xmtr_status);
- }
- while (status[0] == 32 && number_of_tries++ < 3);
- if (status[0] == 32)
- {
- ACKNOWLEDGE(literal_string(660));
- }
- else
- if (xmtr_status[0] || xmtr_status[1] || xmtr_status[2] || xmtr_status[3] || xmtr_status[4] || xmtr_status[5] || xmtr_status[14] || xmtr_status[15])
- {
- {
- {
- {
- {
- if (0 < 6)
- {
- if (xmtr_status[0] & 0x80)
- _display_xmtr_status(4021,0x80);
- }
- }
- ;
- {
- if (0 < 6)
- {
- if (xmtr_status[0] & 0x20)
- _display_xmtr_status(4021,0x20);
- }
- }
- ;
- {
- if (0 < 6)
- {
- if (xmtr_status[0] & 0x10)
- _display_xmtr_status(4021,0x10);
- }
- }
- ;
- {
- if (0 < 6)
- {
- if (xmtr_status[0] & 0x04)
- _display_xmtr_status(4021,0x04);
- }
- }
- ;
- {
- if (0 < 6)
- {
- if (xmtr_status[0] & 0x02)
- _display_xmtr_status(4021,0x02);
- }
- }
- ;
- }
- ;
- {
- {
- if (1 < 6)
- {
- if (xmtr_status[1] & 0x80)
- _display_xmtr_status(4022,0x80);
- }
- }
- ;
- {
- if (1 < 6)
- {
- if (xmtr_status[1] & 0x04)
- _display_xmtr_status(4022,0x04);
Please login for more