Loading…
Loading…
Method Name: manual_setting_method
Method ID: 0x46C4
Method Label: Manual Setting
Method Help: A method of calibrating zero/span by specifying an actual valve closed/open position.
- {
- char status[3];
- int choice;
- int choice1;
- _set_all_resp_code(0);
- _set_xmtr_all_resp_code(0);
- _set_device_status(0xFF,0);
- _set_xmtr_device_status(0xFF,0);
- send_trans(164, 1, status); if(status[0]) { display_response_status(164, status[0]); DELAY(3,"|en|Aborting method due to last error"); process_abort(); } if(ope_authority_sts != 1) { ACKNOWLEDGE("|en|User does not have permission for the operation. Please allow operator action."); process_abort(); }
- ACKNOWLEDGE("|en|Caution!\nThis operation may cause sudden action of the valve.\nPlease ensure the safety of personnel and of the process operation before proceeding.");
- do
- {
- choice = SELECT_FROM_LIST("|en|Angle Correction will be done manually.\nSelect the desired Angle Correction operation.","|en|Exit;Travel Angle 0%;Travel Angle 100%");
- if(choice == 1)
- {
- ACKNOWLEDGE("|en|Travel Angle 0% will be corrected.\nPlease set the valve opening to the fully closed position manually.");
- do
- {
- send(128, status); if(status[0]) { display_response_status(128, status[0]); DELAY(3,"|en|Aborting method due to last error"); process_abort(); }
- choice1 = SELECT_FROM_LIST("|en|Set this position as Travel Angle 0%?\n\n%[L]{travel}: %{travel} %[U]{travel}" ,"|en|Read new value;Set as Travel Angle 0%");
- }while (choice1 != 1);
Please login for more