Loading…

Method Name: MthSimulateFrequencyOutputIoD

Method ID: 0x455D

Method Label: Simulation

Method Help: Sets simulated output of frequency output D (Fct. C2.5.13)


  • {
  • char achCmdStatus[3];
  • long ai32VariableIds[4];
  • char stDisplay[60];
  • int iCntChars;
  • _set_device_status(0xFF,0);
  • _set_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • _iassign(17465,38);
  • _fassign(17707,1000.0);
  • ai32VariableIds[0] = 17465;
  • ai32VariableIds[1] = 17707;
  • _add_abort_method(17756);
  • while (1)
  • {
  • _get_dev_var_value(literal_string(1852),ai32VariableIds,17707);
  • _lassign(17153,10005);
  • send(186,achCmdStatus);
  • if (achCmdStatus[0] != 0)
  • {
  • display_response_status(186,achCmdStatus[0]);
  • }


Please login for more