Loading…

Method Name: stabilize_opt_method

Method ID: 0x431E

Method Label: Stabilize/Optimize

Method Help:


  • {
  • float qa, qb, qc, qd, qe; int q, q0, q1, q2, q3; char S[3];
  • int t,
  • mmax,
  • gmax,
  • i,
  • c;
  • float x,
  • v0,
  • m0,
  • dg,
  • dv,
  • dm,
  • g,
  • v,
  • m;
  • long ids[4];
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_all_resp_code(1);
  • _set_resp_code((8),0);
  • send(151,S); if(_ivar_value(16804) > 1) { ACKNOWLEDGE("|en|The DD revision is not compatible with the firmware in the device.\nContact your Fisher sales office for an upgrade to your Device Description."); return; };
  • send_trans(129,0,S); _vassign(16452,16427); save_values(); if(1==_ivar_value(167)) { ACKNOWLEDGE("|en|Protection must be disabled to perform this operation."); process_abort(); } if((_ivar_value(16427))) { if(((_ivar_value(16465) & 0x01C0) == 0x0100)) { _get_dev_var_value(("|en|WARNING! Output will not track input and the SIS safety function will be disabled when Instrument Mode is Out of Service."),0,16452); } else { _get_dev_var_value(("|en|WARNING! Output will not track input when Instrument Mode is Out of Service."),0,16452); } save_values(); if(_ivar_value(16452)>0) { ACKNOWLEDGE("|en|Instrument Mode is still In Service."); process_abort(); } else { send_trans(130,6,S); } } send_trans(129,0,S); if((1==_ivar_value(16472)) || (5==_ivar_value(16472))) { if(1==_ivar_value(16472)) { ACKNOWLEDGE("|en|Access restricted\n\nInstrument was set to 'Out of Service' by a secondary master."); } else { ACKNOWLEDGE("|en|Access restricted\n\nInstrument was set to 'Out of Service' by a primary master."); } process_abort(); } _add_abort_method(17169); DELAY(1,"|en|Please wait...");
  • ACKNOWLEDGE("|en|WARNING! The device will track set point changes, which may cause the valve to move.");
  • DELAY(1,"|en|Please wait...");
  • send(138,S); send_trans(129,0,S); if(((_ivar_value(16790) & 0x31) > 0) || (_ivar_value(10098) == 0)) { send_trans(142,6,S); send_trans(142,1,S); send_trans(157,0,S); if(1 != _ivar_value(167)) { _iassign(16622,(0)); save_values(); send_trans(130,74,S); } if((_ivar_value(171) == 0)) _iassign(16453,(2)); else if(((_ivar_value(16465) & 0x01C0) == 0x0100)) _iassign(16453,(3)); else { ACKNOWLEDGE("|en|Calibration or diagnostics was in progress.\nReset Control Mode, if required."); if(0 == _ivar_value(10098)) { _iassign(16453,(3)); } else { _vassign(16453,10098); } save_values(); _get_dev_var_value(("|en|Control Mode"),0,16453); } save_values(); send_trans(130,7,S); send_trans(129,0,S); DELAY(1,"|en|Please wait..."); };
  • if(((_ivar_value(16496) & 0x01) > 0)) { if(((_ivar_value(16465) & 0x01C0) != 0x0100)) { ACKNOWLEDGE("|en|The Hardware Shutdown DIP Switch on the main electronics board must be 'Disabled' for throttling control."); process_abort(); } else { if((_ivar_value(171) == 0)) { ACKNOWLEDGE("|en|The Hardware Shutdown DIP switch on the main electronics board must be Disabled to operate in multidrop mode."); process_abort(); } else { send(3,S); if((3 == _ivar_value(16496))) { while (_fvar_value(16418) > 9.0) { if(select_from_list("|en|Adjust the Analog Input current to move the valve to its normal (not tripped) position.", ids,"|en|Adjust Analog Input and continue;Exit")) { process_abort(); } send(3,S); } } if((1 == _ivar_value(16496))) { while (_fvar_value(16418) < 15.0) { if(select_from_list("|en|Adjust the Analog Input current to move the valve to its normal (not tripped) position.", ids,"|en|Adjust Analog Input and continue;Exit")) { process_abort(); } send(3,S); } } } } } else { send(138,S); if((_ivar_value(171) > 0)) { send(3,S); while (_fvar_value(16418) < 3.8) { if(1 != _ivar_value(16464)) { if(select_from_list("|en|Input must exceed 3.8 mA", ids,"|en|Adjust Analog Input and continue;Exit")) { process_abort(); } } else { if(select_from_list("|en|Input must exceed 3.8 mA (7.8 mA if loop powered local control panel is attached.)", ids,"|en|Adjust Analog Input and continue;Exit")) { process_abort(); } } send(3,S); } }; };
  • send_trans(129,31,S);
  • send_trans(129,14,S);
  • send(132,S);
  • _vassign(16975,16673);
  • _vassign(16956,16522);
  • _vassign(16957,16523);
  • _vassign(16958,16524);
  • save_values();
  • remove_all_abort();
  • _add_abort_method(17183);
  • send_trans(142,0,S);
  • _vassign(16942,10098);
  • save_values();
  • if ((_ivar_value(171) == 0) || ((_ivar_value(16496) & 0x01) > 0))
  • {
  • _iassign(16453,(0));
  • }
  • else
  • {
  • _iassign(16453,(3));
  • }
  • save_values();
  • send_trans(130,7,S);
  • if(((_ivar_value(16465) & 0x0040) == 0x0040))
  • {
  • mmax = 48;
  • }
  • else
  • {
  • mmax = 25;
  • }
  • send_trans(129,38,S);
  • _get_dev_var_value(("|en|Does the valve have Graphite Packing?"),0,16535);
  • send_trans(130,90,S);


Please login for more