Loading…

方法名称: instrument_time_method

方法ID: 0x4327

方法标签: Edit Instrument Time

方法描述: Enter the date and time for the instrument.


  • {
  • char S[3];
  • int qMonth;
  • int qLeap;
  • int qAccumDays;
  • int qJDay;
  • int qDays;
  • int j;
  • int i;
  • int ns;
  • int sd;
  • int dd;
  • int mo;
  • int yy;
  • int hh;
  • int mm;
  • int last_jday[13];
  • long t;
  • long ids[2];
  • _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) > 2)
  • {
  • ACKNOWLEDGE(literal_string(2015));
  • return;
  • }
  • ;
  • ids[0] = 16389;
  • sd = 0;
  • ns = 0;
  • send_trans(129,0,S);
  • send(15,S);
  • if (_ivar_value(167) == 1)
  • {
  • sd = 1;
  • }
  • else
  • if (_ivar_value(16427) == 0)
  • {
  • if (1 == _ivar_value(16472) || 5 == _ivar_value(16472))
  • {
  • if (1 == _ivar_value(16472))
  • {
  • ACKNOWLEDGE(literal_string(2256));
  • }
  • else
  • {
  • ACKNOWLEDGE(literal_string(2257));
  • }
  • sd = 2;
  • }


请登录以获得完整内容