Loading…
Loading…
Method Name: highcv_tvl_tuning
Method ID: 0x45FB
Method Label: Tvl Tune Set
Method Help:
- {
- float qa, qb, qc, qd, qe, mpp; int q, q0, q1, q2, q3, q4, q5, q6, q7, q8; char S[3];
- long ids[4];
- _set_device_status(0xFF,0);
- _set_xmtr_device_status(0xFF,0);
- _set_resp_code((8),0);
- if(((_ivar_value(16532)&0x18)>0)) { ACKNOWLEDGE("|en|This instrument's Relay Type is set to a High Cv Spool Valve. This is not supported by this version of the DD. Please use a version of ValveLink Software or ValveLink Mobile that supports the High Cv Relay Type to properly configure this instrument."); process_abort(); };
- send_trans(129, 60, S);
- if(((_ivar_value(16532)&0x18)>0) == 0)
- {
- ACKNOWLEDGE("|en|The DD must be restarted before tuning changes can be made!");
- process_abort();
- }
- if((_ivar_value(16427)))
- {
- ids[0] = 17855;
- acknowledge("|en|%[L]{0}: %{0}", ids);
- ACKNOWLEDGE("|en|To change, place 'Out of Service'.");
- }
- else
- {
- 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(17167); DELAY(1,"|en|Please wait...");
- _get_dev_var_value(("|en|Travel Tuning Set:"),0,17855);
- _get_dev_var_value(("|en|Pressure Tuning Set:"),0,17856);
- save_values();
- DELAY(1,"|en|Sending tuning change to the instrument. Please wait...");
- _iassign(17857,((_ivar_value(17857) | 0x01)));
- if(((_ivar_value(16532)&0x18)>0) & ((_ivar_value(17857) & 0x01) > 0))
- {
- switch(_ivar_value(16434))
- {
- case 6:
- mpp = _fvar_value(16947);
- break;
- case 12:
- mpp = _fvar_value(16947) * 0.1450377;
- break;
- case 7:
- mpp = _fvar_value(16947) * 14.50377;
- break;
- case 10:
- mpp = _fvar_value(16947) * 14.2233;
- break;
- default:
- ACKNOWLEDGE("|en|The DD revision is not compatible with the firmware in the device.\nContact your Fisher sales office for an upgrade to your DD.");
- process_abort();
- break;
- }
- if(((_ivar_value(16532)&0x18) == 8))
- {
- switch(_ivar_value(17856))
- {
- case 2:
- _fassign(16552,(1.70));
- _fassign(16553,((( 15.0 * mpp ) / 60 )));
- _fassign(16525,(0.020));
- _iassign(16528,(1));
- break;
- case 3:
- _fassign(16552,(4.50));
- _fassign(16553,((( 10.0 * mpp ) / 60 )));
- _fassign(16525,(0.038));
- _iassign(16528,(0));
- break;
- case 4:
- _fassign(16552,(6.10));
- _fassign(16553,((( 10.0 * mpp ) / 60 )));
- _fassign(16525,(0.041));
- _iassign(16528,(0));
- break;
- case 5:
- _fassign(16552,(7.70));
- _fassign(16553,((( 10.0 * mpp ) / 60 )));
- _fassign(16525,(0.045));
- _iassign(16528,(0));
- break;
- case 6:
- _fassign(16552,(9.00));
- _fassign(16553,((( 10.0 * mpp ) / 60 )));
- _fassign(16525,(0.049));
- _iassign(16528,(0));
- break;
- case 7:
- _fassign(16552,(10.60));
- _fassign(16553,((( 10.0 * mpp ) / 60 )));
- _fassign(16525,(0.050));
- _iassign(16528,(0));
- break;
- case 8:
- _fassign(16552,(12.30));
Please login for more