Loading…

Method Name: set_status_simulation

Method ID: 0x1327

Method Label: Симуляция бит состояния

Method Help:


  • {
  • char status[3];
  • unsigned int simulFlag;
  • DD_STRING promptStr;
  • DD_STRING OptionStr;
  • DD_STRING SelectedStr;
  • DD_STRING LabelStr;
  • DD_STRING strSearch;
  • unsigned int bitVal;
  • unsigned int byteVal;
  • unsigned int SimulatedItem;
  • unsigned int ItemValue[14];
  • int CheckMax;
  • int Count;
  • int bitPos;
  • _set_device_status(0xFF,0);
  • _set_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • switch (SELECT_FROM_LIST(literal_string(338),literal_string(339)))
  • {
  • case 0:
  • _add_abort_method(4904);
  • status_simulate_mode = 1;
  • send(526,status);
  • if (status[0] != 0)
  • {
  • display_response_status(526,status[0]);
  • }


Please login for more