Loading…
Loading…
Method Name: methodPerformDiagnostics
Method ID: 0x401C
Method Label: Run Diagnostics
Method Help: Perform valve signature and valve functional analysis. Displays the diagnostic test results.
- {
- char nbr;
- char status[3];
- char prevMode;
- char cSpeedTemp;
- int result;
- long ids[8];
- send(249, status); if( status[0] != 0 ) { display_response_status(249, status[0]); DELAY(3,"|en|Procedure aborted \nTry Again."); process_abort();; }; if( (_ivar_value(16385) != 0) ) { ACKNOWLEDGE("|en|WARNING. This procedure requires to enter setup mode and will result in LOSS of PROCESS CONTROL. Do you wish to proceed ?"); PUT_MESSAGE("|en|Changing mode to Setup"); _add_abort_method(16390); _iassign(16684,(0)); send(135, status); if( status[0] != 0 ) { display_response_status(135, status[0]); DELAY(3,"|en|Procedure aborted \nTry Again."); process_abort();; }; nbr=0; do { nbr += 1; if( nbr == 10 ) { DELAY(3,"|en|Procedure aborted \nTry Again."); process_abort();; }; send(249, status); } while( _ivar_value(16385) != 0 ); };
- ACKNOWLEDGE("|en|WARNING. This procedure will MOVE the valve. This will result in LOSS of process CONTROL. DO YOU WISH TO CONTINUE?");
- send(210, status);
- send(200, status);
- if( _ivar_value(16518) == 1)
- {
- if( (_ivar_value(16521) == 1) ||
- (_ivar_value(16523) == 1) ||
- (_ivar_value(16525) == 1) )
- {
- ACKNOWLEDGE("|en|Remove software limit stops to be able to perform diagnostics.");
- process_abort();
- }
- }
- result=SELECT_FROM_LIST("|en|Select Diagnostic Type:",
Please login for more