Loading…

Method Name: methodResetContinuous

Method ID: 0x4049

Method Label: Reset Historian

Method Help: Reset valve historian data (stroke count, cycle count, time open, time closed and time near closed ) to 0. The previous data is lost and must be recorded to be used later.


  • {
  • char nbr;
  • char status[3];
  • char prevMode;
  • 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|After resetting, the current values will be lost. Press ABORT if you do not wish to proceed.");
  • send(140, status);
  • if( status[0] != 0 ) { display_response_status(140, status[0]); DELAY(3,"|en|Procedure aborted \nTry Again."); process_abort();; };
  • do { send(251, status); } while( status[0] == 0x20 );;
  • send(139, status);
  • ACKNOWLEDGE("|en|Valve Historian data was reset.");


Please login for more