Loading…

方法名称: simulate_status_meth

方法ID: 0x1327

方法标签: Simulate Status Conditions

方法描述:


  • {
  • 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[25];
  • int result;
  • 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(661),literal_string(662)))
  • {
  • case 0:
  • _add_abort_method(4904);
  • status_simulate_mode = 1;
  • send(526,status);
  • if (status[0] != 0)
  • {
  • display_response_status(526,status[0]);
  • }


请登录以获得完整内容