Loading…
Loading…
方法名称: methodAutoTune
方法ID: 0x4026
方法标签: Autotune
方法描述: Run PID Autotune will automatically find best dynamic parameters for responsive valve positioning. Always isolate the valve from the process. The valve will move full open and full closed. The valve will continuously change position for about 5 minutes.
- {
- char nbr;
- char status[3];
- char prevMode;
- long ids[3];
- float fMin, fMax;
- int result;
- 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);
- if( _ivar_value(16518) == 1)
- {
- if( (_ivar_value(16521) == 1) ||
- (_ivar_value(16523) == 1) )
- {
- ACKNOWLEDGE("|en|Remove software limit stops to be able to perform autotune.");
- process_abort();
- }
- }
- ACKNOWLEDGE("|en|WARNING. This procedure will MOVE the valve. This will result in LOSS of process CONTROL. DO YOU WISH TO CONTINUE?");
- if ( _ivar_value(16470) == 7)
- _fassign(16688,(2.0));
- else if ( _ivar_value(16470) == 12)
- _fassign(16688,(200.0));
- else _fassign(16688,(30.0));
- _iassign(16689,(0));
请登录以获得完整内容