Loading…
Loading…
方法名称: methodResetCalibrationData
方法ID: 0x4018
方法标签: Reset Cal Factory Defaults
方法描述: Reset Calibration Data: This will restore all sensor calibration data to factory defaults. If calibrations have been performed they will be lost!
- {
- char nbr;
- char status[3];
- char prevMode;
- int result;
- char bValueOK;
- long ids[5];
- ACKNOWLEDGE("|en|WARNING. To continue this procedure will reset calibration data to factory defaults. DO YOU WISH TO CONTINUE?");
- 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 ); };
- send(183, status);
- if( status[0] != 0 ) { display_response_status(183, status[0]); DELAY(3,"|en|Procedure aborted \nTry Again."); process_abort();; };
- ACKNOWLEDGE("|en|Calibraton data have been reset to factory defaults.");
请登录以获得完整内容