Loading…

Method Name: Method_simulation

Method ID: 0x4389

Method Label: Simulate Values

Method Help:


  • {
  • char status[3];
  • char string1[60];
  • char disp_string1[60];
  • int len1;
  • float min;
  • float max;
  • len1 = 60;
  • _set_all_resp_code(0);
  • _set_xmtr_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _get_dictionary_string(19726337,string1,len1);
  • ACKNOWLEDGE(string1);
  • _add_abort_method(17396);
  • index_array_SimulateDeviceVariable = 0;
  • send_command(176);
  • index_array_SimulateDeviceVariable = 1;
  • send_command(176);
  • index_array_SimulateDeviceVariable = 2;
  • send_command(176);
  • index_array_SimulateDeviceVariable = 3;
  • send_command(176);
  • index_array_SimulateDeviceVariable = 4;
  • send_command(176);
  • index_array_SimulateDeviceVariable = 5;
  • send_command(176);
  • index_array_SimulateDeviceVariable = 6;
  • send_command(176);
  • index_array_SimulateDeviceVariable = 7;
  • send_command(176);
  • index_array_SimulateDeviceVariable = 8;
  • send_command(176);
  • index_array_SimulateDeviceVariable = 9;
  • send_command(176);
  • index_array_SimulateDeviceVariable = 10;
  • send_command(176);
  • index_array_SimulateDeviceVariable = 11;
  • send_command(176);
  • index_array_CalculationUnsignedCharVariable = 23;
  • send_command(128);
  • index_array_IOBUSUnsignedCharVariable = 9;
  • send_command(130);
  • _get_dev_var_value(literal_string(1248),0,16431);
  • index_array_CalculationUnsignedCharVariable = 49;
  • send_command(129);
  • do {
  • if (simulationMode == 1)
  • {
  • index_array_FloatVariable = 33;
  • send_command(140);
  • min = 0.15 * Qv_MaxDN;
  • max = 1 * Qv_MaxDN;
  • index_array_CalculationUnsignedCharVariable = 6;
  • send_command(128);
  • QvSimObj_Unit = Qv_UnitCode;
  • QvSimEnable = 0;
  • _get_dev_var_value(literal_string(1249),0,16915);
  • index_array_SimulateDeviceVariable = 0;
  • send(177,status);
  • if (status[0])
  • {
  • display_response_status(177,status[0]);
  • _get_dictionary_string(19726342,disp_string1,len1);
  • DELAY(2,disp_string1);
  • process_abort();
  • }


Please login for more