
      /*
      **********************************************************************
      ** HART Diagnostics Module
      **********************************************************************
      */

      MENU HartDiagnostics_WINDOW
      {
      LABEL "|en|Hart Diagnostics|de|HART Diagnose";
      STYLE WINDOW;
      ITEMS
      {
      DeviceStatus_PAGE,
      
        StatusGroup0_PAGE,
        StatusGroup1_PAGE,
        StatusGroup2_PAGE,
        StatusGroup3_PAGE,
        StatusGroup4_PAGE,
        StatusGroup14_PAGE,
        StatusGroup15_PAGE,
        StatusGroup16_PAGE,
        StatusGroup17_PAGE,
        StatusGroup18_PAGE,
        StatusGroup19_PAGE
      }
      }

      MENU DeviceStatus_PAGE
      {
      LABEL "|en|Device Status";
      STYLE PAGE;
      ITEMS
      {
      Header,
      DeviceStatus_GROUP
      

      }
      }
      
      MENU DeviceStatus_GROUP
      {
      LABEL "";
      STYLE GROUP;
      ITEMS
      {
      device_status(READ_ONLY),
      COLUMNBREAK,
      configuration_flag_reset_test,
      COLUMNBREAK,
      HartLogo_IMAGE(INLINE)
      }
      }
      
        MENU StatusGroup0_PAGE
        {
        LABEL "|en|Status Byte 0";
        STYLE PAGE;
        ITEMS
        {
        Header,
        StatusGroup0_GROUP
        }
        }
        
        MENU StatusGroup0_GROUP
        {
        LABEL "";
        STYLE GROUP;
        ITEMS
        {
        device_specific_status_0(READ_ONLY),
        COLUMNBREAK,
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
        
        MENU StatusGroup1_PAGE
        {
        LABEL "|en|Status Byte 1";
        STYLE PAGE;
        ITEMS
        {
        Header,
        StatusGroup1_GROUP
        }
        }
        
        MENU StatusGroup1_GROUP
        {
        LABEL "";
        STYLE GROUP;
        ITEMS
        {
        device_specific_status_1(READ_ONLY),
        COLUMNBREAK,
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
        
        MENU StatusGroup2_PAGE
        {
        LABEL "|en|Status Byte 2";
        STYLE PAGE;
        ITEMS
        {
        Header,
        StatusGroup2_GROUP
        }
        }
        
        MENU StatusGroup2_GROUP
        {
        LABEL "";
        STYLE GROUP;
        ITEMS
        {
        device_specific_status_2(READ_ONLY),
        COLUMNBREAK,
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
        
        MENU StatusGroup3_PAGE
        {
        LABEL "|en|Status Byte 3";
        STYLE PAGE;
        ITEMS
        {
        Header,
        StatusGroup3_GROUP
        }
        }
        
        MENU StatusGroup3_GROUP
        {
        LABEL "";
        STYLE GROUP;
        ITEMS
        {
        device_specific_status_3(READ_ONLY),
        COLUMNBREAK,
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
        
        MENU StatusGroup4_PAGE
        {
        LABEL "|en|Status Byte 4";
        STYLE PAGE;
        ITEMS
        {
        Header,
        StatusGroup4_GROUP
        }
        }
        
        MENU StatusGroup4_GROUP
        {
        LABEL "";
        STYLE GROUP;
        ITEMS
        {
        device_specific_status_4(READ_ONLY),
        COLUMNBREAK,
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
        
        MENU StatusGroup14_PAGE
        {
        LABEL "|en|Status Byte 14";
        STYLE PAGE;
        ITEMS
        {
        Header,
        StatusGroup14_GROUP
        }
        }
        
        MENU StatusGroup14_GROUP
        {
        LABEL "";
        STYLE GROUP;
        ITEMS
        {
        device_specific_status_14(READ_ONLY),
        COLUMNBREAK,
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
        
        MENU StatusGroup15_PAGE
        {
        LABEL "|en|Status Byte 15";
        STYLE PAGE;
        ITEMS
        {
        Header,
        StatusGroup15_GROUP
        }
        }
        
        MENU StatusGroup15_GROUP
        {
        LABEL "";
        STYLE GROUP;
        ITEMS
        {
        device_specific_status_15(READ_ONLY),
        COLUMNBREAK,
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
        
        MENU StatusGroup16_PAGE
        {
        LABEL "|en|Status Byte 16";
        STYLE PAGE;
        ITEMS
        {
        Header,
        StatusGroup16_GROUP
        }
        }
        
        MENU StatusGroup16_GROUP
        {
        LABEL "";
        STYLE GROUP;
        ITEMS
        {
        device_specific_status_16(READ_ONLY),
        COLUMNBREAK,
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
        
        MENU StatusGroup17_PAGE
        {
        LABEL "|en|Status Byte 17";
        STYLE PAGE;
        ITEMS
        {
        Header,
        StatusGroup17_GROUP
        }
        }
        
        MENU StatusGroup17_GROUP
        {
        LABEL "";
        STYLE GROUP;
        ITEMS
        {
        device_specific_status_17(READ_ONLY),
        COLUMNBREAK,
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
        
        MENU StatusGroup18_PAGE
        {
        LABEL "|en|Status Byte 18";
        STYLE PAGE;
        ITEMS
        {
        Header,
        StatusGroup18_GROUP
        }
        }
        
        MENU StatusGroup18_GROUP
        {
        LABEL "";
        STYLE GROUP;
        ITEMS
        {
        device_specific_status_18(READ_ONLY),
        COLUMNBREAK,
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
        
        MENU StatusGroup19_PAGE
        {
        LABEL "|en|Status Byte 19";
        STYLE PAGE;
        ITEMS
        {
        Header,
        StatusGroup19_GROUP
        }
        }
        
        MENU StatusGroup19_GROUP
        {
        LABEL "";
        STYLE GROUP;
        ITEMS
        {
        device_specific_status_19(READ_ONLY),
        COLUMNBREAK,
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
        

      //----------------------------------------------------------------------------

      MENU HartDiagnostics_DIALOG
      {
      LABEL "|en|Hart diagnosis|de|HART Diagnose";
      STYLE DIALOG;
      ITEMS
      {
      DeviceStatus_Dialog_PAGE,
      
        StatusGroup0_Dialog_PAGE,
        StatusGroup1_Dialog_PAGE,
        StatusGroup2_Dialog_PAGE,
        StatusGroup3_Dialog_PAGE,
        StatusGroup4_Dialog_PAGE,
        StatusGroup14_Dialog_PAGE,
        StatusGroup15_Dialog_PAGE,
        StatusGroup16_Dialog_PAGE,
        StatusGroup17_Dialog_PAGE,
        StatusGroup18_Dialog_PAGE,
        StatusGroup19_Dialog_PAGE
      }
      }

      MENU DeviceStatus_Dialog_PAGE
      {
      LABEL "|en|Device Status";
      STYLE PAGE;
      ITEMS
      {
      device_status(READ_ONLY),
      //configuration_flag_reset_test,
      COLUMNBREAK,
      HartLogo_IMAGE(INLINE)
      }
      }

      
        MENU StatusGroup0_Dialog_PAGE
        {
        LABEL "|en|Status Byte 0";
        STYLE PAGE;
        ITEMS
        {
        device_specific_status_0(READ_ONLY),
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
      
        MENU StatusGroup1_Dialog_PAGE
        {
        LABEL "|en|Status Byte 1";
        STYLE PAGE;
        ITEMS
        {
        device_specific_status_1(READ_ONLY),
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
      
        MENU StatusGroup2_Dialog_PAGE
        {
        LABEL "|en|Status Byte 2";
        STYLE PAGE;
        ITEMS
        {
        device_specific_status_2(READ_ONLY),
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
      
        MENU StatusGroup3_Dialog_PAGE
        {
        LABEL "|en|Status Byte 3";
        STYLE PAGE;
        ITEMS
        {
        device_specific_status_3(READ_ONLY),
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
      
        MENU StatusGroup4_Dialog_PAGE
        {
        LABEL "|en|Status Byte 4";
        STYLE PAGE;
        ITEMS
        {
        device_specific_status_4(READ_ONLY),
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
      
        MENU StatusGroup14_Dialog_PAGE
        {
        LABEL "|en|Status Byte 14";
        STYLE PAGE;
        ITEMS
        {
        device_specific_status_14(READ_ONLY),
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
      
        MENU StatusGroup15_Dialog_PAGE
        {
        LABEL "|en|Status Byte 15";
        STYLE PAGE;
        ITEMS
        {
        device_specific_status_15(READ_ONLY),
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
      
        MENU StatusGroup16_Dialog_PAGE
        {
        LABEL "|en|Status Byte 16";
        STYLE PAGE;
        ITEMS
        {
        device_specific_status_16(READ_ONLY),
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
      
        MENU StatusGroup17_Dialog_PAGE
        {
        LABEL "|en|Status Byte 17";
        STYLE PAGE;
        ITEMS
        {
        device_specific_status_17(READ_ONLY),
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
      
        MENU StatusGroup18_Dialog_PAGE
        {
        LABEL "|en|Status Byte 18";
        STYLE PAGE;
        ITEMS
        {
        device_specific_status_18(READ_ONLY),
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
      
        MENU StatusGroup19_Dialog_PAGE
        {
        LABEL "|en|Status Byte 19";
        STYLE PAGE;
        ITEMS
        {
        device_specific_status_19(READ_ONLY),
        COLUMNBREAK,
        HartLogo_IMAGE(INLINE)
        }
        }
      

      IMAGE HartLogo_IMAGE
      {
      LABEL "|en|HartLogo";
      PATH "|en|11670501_HP-Protocol-logo-med.GIF|en zz|11670501_nopicture.gif";
      }


      /*
      **********************************************************************
      ** Configuration Flag Reset
      **********************************************************************
      */

      #define configuration_flag_reset "Configuration Flag Reset|de|Konfigurationsmerker rücksetzen|fr|Remise ŕ zéro du mémento de configuration|it|Azzerare il flag di configurazione|sp|Reset del flag de configuración"
      #define configuration_flag_reset_help "Commands reset the configuration flag.|de|Bewirkt ein Rücksetzen des Konfigurationsmerkers.|fr|Commande provoquant la remise ŕ zéro du mémento de configuration.|it|Provoca un reset del flag di configurazione.|sp|Reposiciona el flag de configuración."
      #define configuration_flag_reset_execute "Execute Configuration Flag Reset?|de|Rücksetzen Konfigurationmerker durchführen?|fr|Effectuer une remise ŕ zéro du mémento de configuration ?|it|Eseguire l'azzeramento del flag di configurazione?|sp|żEjecutar reposición de indicador de configuración?"

      METHOD configuration_flag_reset_test
      {
      LABEL configuration_flag_reset;
      HELP configuration_flag_reset_help;
      CLASS		INPUT;
      DEFINITION
      {
      int		choice;
      char	disp_string1[60];
      char	disp_string2[60];
      int		slen1;
      int		slen2;

      slen1=60;
      slen2=60;

      //get_dictionary_string(configuration_flag_reset_execute, disp_string1, slen1);
      get_dictionary_string(yes_no, disp_string2, slen2);

      //choice= SELECT_FROM_LIST(disp_string1, disp_string2);
      choice= SELECT_FROM_LIST(configuration_flag_reset_execute, disp_string2);
      if ( choice == 0 )
      {
      send_command(38);
      }
      }
      }



      /*
      **********************************************************************
      ** End of HART Diagnostics Modul
      **********************************************************************
      */
    