Loading…

Method Name: device_setup_method

Method ID: 0x434F

Method Label: Device Setup

Method Help: Prompts the user for pressure information and to select subsequent menu items for instrument setup. Note: All items on the Auto Setup menu must be selected in order for basic setup.


  • {
  • int q;
  • int q0;
  • int q1;
  • int q2;
  • int q3;
  • float qa;
  • char S[3];
  • int q01;
  • int q02;
  • int q03;
  • int q04;
  • int q05;
  • int q06;
  • int q07;
  • int q08;
  • int q09;
  • int q10;
  • int q11;
  • int q12;
  • int q13;
  • int q14;
  • int q15;
  • int q16;
  • int q17;
  • int q18;
  • int q19;
  • int q20;
  • int q21;
  • int q22;
  • int q23;
  • int q24;
  • int q25;
  • int q26;
  • int q27;
  • int q28;
  • int q29;
  • int q30;
  • int q31;
  • int q32;
  • int q33;
  • int q34;
  • int q35;
  • int q36;
  • int q37;
  • int q38;
  • int q39;
  • int q40;
  • int qj;
  • int qk;
  • int qm;
  • float qa0;
  • float qa1;
  • float qa2;
  • float qa3;
  • float qa4;
  • float qa5;
  • float qa6;
  • float qa7;
  • float qa8;
  • float qa9;
  • float qb0;
  • float qb1;
  • float qb2;
  • float qb3;
  • float qb4;
  • float qb5;
  • float qb6;
  • float qb7;
  • float qb8;
  • float qb9;
  • float qc0;
  • float qc1;
  • float qc2;
  • float qc3;
  • float qc4;
  • float qc5;
  • float qc6;
  • float qc7;
  • float qc8;
  • float qc9;
  • float qd0;
  • float qd1;
  • float qd2;
  • float qd3;
  • float qd4;
  • float qd5;
  • float qd6;
  • float qd7;
  • float qd8;
  • float qd9;
  • float qe0;
  • float qe1;
  • float qe2;
  • float qe3;
  • float qe4;
  • float qe5;
  • float qe6;
  • float qe7;
  • float qe8;
  • float qx;
  • float qy;
  • float qz;
  • long ids[5];
  • unsigned long act_mfg;
  • unsigned int act_model;
  • unsigned int act_size;
  • unsigned int range_units;
  • int pc;
  • int i;
  • int j;
  • int cFlag;
  • int ActFlag;
  • int s;
  • int iAct;
  • int t;
  • int p;
  • int r;
  • int PSTsp_0;
  • int as_0;
  • int rt_0;
  • int zpc_0;
  • float c;
  • float psi_3;
  • float psi_6;
  • float psi_15;
  • float psi_30;
  • float tGain;
  • float tRate;
  • float tMLFB;
  • float pProp;
  • float pInteg;
  • float pMLFB;
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_all_resp_code(1);
  • _set_resp_code(8,0);
  • _set_no_device(2);
  • send(151,S);
  • if (_ivar_value(16804) > 2)
  • {
  • ACKNOWLEDGE(literal_string(2015));
  • return;
  • }
  • ;
  • if ((_ivar_value(16532) & 0x18) > 0)
  • {
  • ACKNOWLEDGE(literal_string(2300));
  • process_abort();
  • }
  • ;
  • send(138,S);
  • if (_ivar_value(171) > 0)
  • {
  • send(3,S);
  • while (_fvar_value(237) < 3.8)
  • {
  • if (select_from_list(literal_string(2288),ids,literal_string(2287)))
  • {
  • process_abort();
  • }
  • send(3,S);
  • }
  • }
  • ;
  • send_trans(136,2,S);
  • save_values();
  • if (0 == _ivar_value(16784))
  • {
  • send_trans(136,0,S);
  • }
  • cFlag = 2;
  • pc = 0;
  • send_trans(129,38,S);
  • if (0 == _ivar_value(16642))
  • {
  • pc = 1;
  • cFlag = 0;
  • ACKNOWLEDGE(literal_string(2655));
  • }
  • if (_ivar_value(171) == 0)
  • {
  • if ((_ivar_value(16496) & 0x01) > 0)
  • {
  • cFlag = 1 - SELECT_FROM_LIST(literal_string(2228),literal_string(2226));
  • }
  • }
  • else
  • {
  • if ((_ivar_value(16496) & 0x01) == 0)
  • {
  • cFlag = 2 * (1 - SELECT_FROM_LIST(literal_string(2485),literal_string(2226)));
  • }
  • }
  • if (cFlag != 0)
  • {
  • send_trans(129,0,S);
  • _vassign(16452,16427);
  • save_values();
  • if (1 == _ivar_value(167))
  • {
  • ACKNOWLEDGE(literal_string(2274));
  • process_abort();
  • }
  • if (_ivar_value(16427))
  • {
  • if ((_ivar_value(16465) & 0x01C0) == 0x0100)
  • {
  • _get_dev_var_value(literal_string(2275),0,16452);
  • }
  • else
  • {
  • _get_dev_var_value(literal_string(2276),0,16452);
  • }
  • save_values();
  • if (_ivar_value(16452) > 0)
  • {
  • ACKNOWLEDGE(literal_string(2277));
  • 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(literal_string(2256));
  • }
  • else
  • {
  • ACKNOWLEDGE(literal_string(2257));
  • }
  • process_abort();
  • }
  • _add_abort_method(17167);
  • DELAY(1,literal_string(2223));
  • send(138,S);
  • send_trans(129,0,S);
  • if ((_ivar_value(16790) & 0x31) > 0 || _ivar_value(10098) == 0)
  • {
  • send_trans(142,8,S);
  • send_trans(142,1,S);
  • send_trans(157,0,S);
  • if (1 != _ivar_value(167))
  • {
  • local_man_loader_status = 0;
  • save_values();
  • send_trans(130,75,S);
  • }
  • if (_ivar_value(171) == 0)
  • local_control_mode = 2;
  • else
  • local_control_mode = 3;
  • save_values();
  • send_trans(130,7,S);
  • send_trans(129,0,S);
  • DELAY(1,literal_string(2223));
  • }
  • ;
  • remove_all_abort();
  • _add_abort_method(17230);
  • send_trans(129,29,S);
  • _get_dev_var_value(literal_string(124),0,16434);
  • device_variable_code = 8;
  • save_values();
  • send(53,S);
  • ActFlag = 0;
  • s = 1;
  • local_LCP_mounted = 0;
  • local_bellows_prompt = 0;
  • save_values();
  • send_trans(129,35,S);
  • send_trans(129,39,S);
  • PSTsp_0 = _ivar_value(16529);
  • as_0 = _ivar_value(16530);
  • rt_0 = _ivar_value(16532);
  • zpc_0 = _ivar_value(16508);
  • send(132,S);
  • send_trans(129,34,S);
  • send_trans(164,4,S);
  • if (0 == _ivar_value(16861))
  • {
  • spec_actuator_manufacturer = 0x005100;
  • spec_actuator_model = 14;
  • spec_actuator_size = 27;
  • }
  • else
  • if (0 == _ivar_value(16862))
  • {
  • spec_actuator_model = 0xFFFF;
  • spec_actuator_size = 0xFFFF;
  • }
  • else
  • if (0 == _ivar_value(16863))
  • {
  • spec_actuator_size = 0xFFFF;
  • }
  • save_values();
  • act_mfg = _ivar_value(16861);
  • act_model = _ivar_value(16862);
  • _vassign(17108,16861);
  • _vassign(17109,16862);
  • _vassign(17112,16863);
  • save_values();
  • do {
  • if (1 == s)
  • {
  • _get_dev_var_value(literal_string(389),0,16533);
  • _vassign(16532,16533);
  • tvl_press_select = 0x00;
  • if (_ivar_value(16509) != 0x02)
  • {
  • local_bellows_prompt = 0;
  • save_values();
  • }
  • else
  • {
  • cFlag = 1;
  • }
  • _get_dev_var_value(literal_string(225),0,16947);
  • if ((_ivar_value(16532) & 0x18) > 0)
  • {
  • switch (_ivar_value(16434))
  • {
  • case 6:
  • while (_fvar_value(16947) < 40 | _fvar_value(16947) > 150)
  • {
  • ACKNOWLEDGE(literal_string(2656));
  • _get_dev_var_value(literal_string(225),0,16947);
  • }
  • break;
  • case 12:
  • while (_fvar_value(16947) < 275.79 | _fvar_value(16947) > 1034.21)
  • {
  • ACKNOWLEDGE(literal_string(2657));
  • _get_dev_var_value(literal_string(225),0,16947);
  • }
  • break;
  • case 7:
  • while (_fvar_value(16947) < 2.76 | _fvar_value(16947) > 10.34)
  • {
  • ACKNOWLEDGE(literal_string(2658));
  • _get_dev_var_value(literal_string(225),0,16947);
  • }
  • break;
  • case 10:
  • while (_fvar_value(16947) < 2.81 | _fvar_value(16947) > 10.55)
  • {
  • ACKNOWLEDGE(literal_string(2659));
  • _get_dev_var_value(literal_string(225),0,16947);
  • }
  • break;
  • }
  • }
  • save_values();
  • save_values();
  • t = 99;
  • iAct = 0x0000;
  • if (_ivar_value(16412))
  • {
  • t = 2;
  • _get_dev_var_value(literal_string(2660),0,16508);
  • save_values();
  • }
  • else
  • {
  • _get_dev_var_value(literal_string(1237),0,17108);
  • save_values();
  • if (act_mfg != _ivar_value(17108))
  • {
  • act_mfg = _ivar_value(17108);
  • switch (act_mfg)
  • {
  • case 0x005100:
  • q = 14;
  • break;
  • case 0xFF0016:
  • q = 2000;
  • break;
  • case 0xFF0001:
  • q = 4000;
  • break;
  • case 0xFF0010:
  • q = 6000;
  • break;
  • case 0x0B87A3:
  • q = 8000;
  • break;
  • case 0xFF0005:
  • q = 10000;
  • break;
  • case 0xFF0013:
  • q = 12000;
  • break;
  • case 0xFF0006:
  • q = 14000;
  • break;
  • case 0x000E05:
  • q = 16000;
  • break;
  • case 0x524149:
  • q = 18000;
  • break;
  • case 0x014A7E:
  • q = 20000;
  • break;
  • case 0xFF0017:
  • q = 22000;
  • break;
  • default:
  • q = 0xFFFF;
  • break;
  • }
  • local_actuator_model = q;
  • save_values();
  • }
  • if (0x00FFFFFF != act_mfg)
  • {
  • if ((_ivar_value(16532) & 0x03) > 0 || (_ivar_value(16532) & 0x18) == 24 || (_ivar_value(16532) & 0x18) > 0 && (_ivar_value(16532) & 0x01) > 0)
  • {
  • _vassign(17111,17109);
  • save_values();
  • _get_dev_var_value(literal_string(1247),0,17111);
  • _vassign(17109,17111);
  • }
  • else
  • if (0x00 != _ivar_value(16509))
  • {
  • _vassign(17110,17109);
  • save_values();
  • _get_dev_var_value(literal_string(1247),0,17110);
  • _vassign(17109,17110);
  • }
  • else
  • {
  • _get_dev_var_value(literal_string(1247),0,17109);
  • }
  • save_values();
  • if (act_model != _ivar_value(17109))
  • {
  • act_model = _ivar_value(17109);
  • switch (act_model)
  • {
  • case 33:
  • case 34:
  • case 35:
  • q = 15;
  • break;
  • case 1:
  • q = 21;
  • break;
  • case 2:
  • case 3:
  • case 40:
  • case 22000:
  • q = 33;
  • break;
  • case 5:
  • case 10:
  • q = 10;
  • break;
  • case 4:
  • case 6:
  • case 7:
  • case 18:
  • case 19:
  • case 21:
  • case 22:
  • q = 19;
  • break;
  • case 8:
  • case 9:
  • case 8000:
  • case 20000:
  • q = 23;
  • break;
  • case 11:
  • case 12:
  • case 13:
  • case 14:
  • case 20:
  • case 29:
  • case 30:
  • q = 27;
  • break;
  • case 41:
  • q = 57;
  • break;
  • case 15:
  • q = 93;
  • break;
  • case 16:
  • case 38:
  • case 39:
  • q = 37;
  • break;
  • case 17:
  • q = 130;
  • break;
  • case 23:
  • case 24:
  • case 27:
  • case 28:
  • q = 65;
  • break;
  • case 25:
  • q = 1;
  • break;
  • case 26:
  • q = 72;
  • break;
  • case 2000:
  • q = 8;
  • break;
  • case 2002:
  • q = 4;
  • break;
  • case 4000:
  • case 4001:
  • q = 17;
  • break;
  • case 4002:
  • case 36:
  • case 37:
  • q = 14;
  • break;
  • case 6000:
  • q = 144;
  • break;
  • case 6001:
  • case 6002:
  • q = 154;
  • break;
  • case 6003:
  • q = 203;


Please login for more