Loading…
Loading…
Method Name: instrument_time_method
Method ID: 0x4327
Method Label: Edit Instrument Time
Method Help: 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;
- }
Please login for more