Loading…

Method Name: MthAlignHartUnits

Method ID: 0x44A4

Method Label: Align HART Units

Method Help: Align 'HART units' (for measured values) to 'display units' (for configuration parameters) or to default. (Fct. C6.5)


  • {
  • char achCmdStatus[3];
  • int iResult;
  • int iOptionForCopy;
  • iOptionForCopy = SELECT_FROM_LIST(literal_string(2171),literal_string(2172));
  • switch (iOptionForCopy)
  • {
  • case 0:
  • return;
  • case 1:
  • dunVolumeFlow = gdc_42206_32_Einheit_Volumendurchfluss;
  • dunVelocityOfSound = gdc_42202_32_Einheit_Geschwindigkeit;
  • dunMassFlow = gdc_42210_32_Einheit_Massendurchfluss;
  • dunFlowSpeed = gdc_42202_32_Einheit_Geschwindigkeit;
  • uniDecibel = 156;
  • dunHeatFlow = gdc_02946_32_UnitEnthalpyFlow;
  • dunColdFlow = gdc_02946_32_UnitEnthalpyFlow;
  • uniTemperature = gdc_42214_32_Einheit_Temperatur;
  • dunVolumeTotalizer1 = gdc_42198_32_Einheit_Volumen;
  • dunMassTotalizer1 = gdc_42199_32_Einheit_Masse;
  • dunEnergyTotalizer1 = gdc_02929_32_UnitEnthalpy;
  • dunVolumeTotalizer2 = gdc_42198_32_Einheit_Volumen;
  • dunMassTotalizer2 = gdc_42199_32_Einheit_Masse;
  • dunVolumeTotalizer3 = gdc_42198_32_Einheit_Volumen;
  • dunMassTotalizer3 = gdc_42199_32_Einheit_Masse;
  • dunEnergyTotalizer3 = gdc_02929_32_UnitEnthalpy;
  • dunOperatingHours = uniHourGdc_42185_32;
  • break;
  • case 2:
  • default:
  • ACKNOWLEDGE(literal_string(2173));
  • dunVolumeFlow = 138;
  • dunVelocityOfSound = 21;
  • dunMassFlow = 75;
  • dunFlowSpeed = 21;


Please login for more