Loading…
Loading…
Method Name: methodCalibPressure
Method ID: 0x4030
Method Label: Pressure Sensor
Method Help: This operation will change zero calibration of all available pressure sensors .
- {
- char nbr;
- char status[3];
- char prevMode;
- int result;
- int DblActAndP2;
- char bValueOK;
- long ids[5];
- 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(210, status);
- send(200, status);
- DblActAndP2 = _ivar_value(16668) & 0x02;
- if( (_ivar_value(16668) & 0x01) != 0x01 )
- {
- ACKNOWLEDGE("|en|The device has no pressure sensor to calibrate.");
- process_abort();
- }
- ACKNOWLEDGE("|en|WARNING. This procedure will MOVE the valve. This will result in LOSS of process CONTROL. DO YOU WISH TO CONTINUE?");
- ACKNOWLEDGE("|en|WARNING. Turn off all the air to the valve and wait until air is fullyexhausted! Then press OK to continue.");
- do
- {
- send(201, status);
- ids[0]=16470;
- ids[1]=16471;
- ids[2]=16473;
- ids[3]=16562;
Please login for more