HSL2.0 - XML definition file
Content
1.
2.
3.
Description of the XML definition file

1.Introduction

The XML definition file specifies the basic properties of HSL-2.0 logic blocks:
From this XML definition file, the HSL 2.0 generator first creates a Python file. This file contains a Python class, which must be supplemented and programmed by the developer. With the help of the Python file and the XML definition file, the HSL 2.0 generator can then generate the finished logic module (.hsl file).

2.Structure of the XML definition file

<?xml version="1.0" encoding="UTF-8"?>
<config>
   <modules>
      <module category="" context="" id="" name="" version="">

         <inputs>
            <input type="" init_value="" const_name="">E_BEZ</input>
         </inputs>

         <outputs>
            <output type="" init_value="" const_name="">A_BEZ</output>
         </outputs>

         <remanent_variables>
            <remanent_variable type="" init_value="" const_name="">V_BEZ</remanent_variable>
         </remanent_variables>

         <imports>
            <import>M_NAME</import>
         </imports>

         <translations>
            <translation language="XX" name="" category="">
               <translation_inputs>
                  <translation_input>E_BEZ_IN_SPRACHE_XX</translation_input>
               </translation_inputs>
               <translation_outputs>
                  <translation_output>A_BEZ_IN_SPRACHE_XX</translation_output>
               </translation_outputs>
            </translation>
         </translations>

      </module>
   </modules>
   <logging type="" ip="" port="" />
</config>

3.Example of an XML definition file

01 <?xml version="1.0" encoding="UTF-8"?>
02 <config>
03   <modules>
04     <module category="Blind-Shutter-Partition Wall" context="JALOUSIE" id="19015" name="Storm shutter control " version="v1.0">
05       <inputs>
06         <input type="number">Long-term (1 bit; 1=close, 0=open)</input>
07         <input type="number">Short-term (1 bit)</input>
08         <input type="number">Measured movement time for Leaf 1 in seconds</input>
09         <input type="number">Measured movement time for Leaf 2 in seconds</input>
10       </inputs>
11       <outputs>
12         <output type="number">Long-term object (1 bit) Leaf 1</output>
13         <output type="number">Short-term object (1 bit) Leaf 1</output>
14         <output type="number">Long-term object (1 bit) Leaf 2</output>
15         <output type="number">Short-term object (1 bit) Leaf 2</output>
16       </outputs>
17       <remanent_variables>
18         <remanent_variable>Movement time for Leaf 1</remanent_variable>
19         <remanent_variable>Movement time for Leaf 1</remanent_variable>
20         <remanent_variable>Condition of Leaf</remanent_variable>
21       </remanent_variables>
22       <imports>
23         <import>hsl20_4_timer</import>
24       </imports>
25       <translations>
26         <translation language="de" name="Schlagladensteuerung" category="Jalousie-Rollladen-Trennwand">
27           <translation_inputs>
28             <translation_input>Eingang 1 (1 Bit; 0=öffnen/1=schließen)</translation_input>
29             <translation_input>Stop/Kurzzeit (1Bit)</translation_input>
30             <translation_input>Fahrzeit Flügel 1 (sek.)</translation_input>
31             <translation_input>Fahrzeit Flügel 2 (sek.)</translation_input>
32           </translation_inputs>
33           <translation_outputs>
34             <translation_output>Flügel 1 (Langzeit)</translation_output>
35             <translation_output>Flügel 1 (Kurzzeit)</translation_output>
36             <translation_output>Flügel 2 (Langzeit)</translation_output>
37             <translation_output>Flügel 2 (Kurzzeit)</translation_output>
38           </translation_outputs>
39         </translation>
40       </translations>
41     </module>
42   </modules>
43   <logging type="Syslog" ip="192.168.123.45" port="514" />
44 </config>
In the definition of the module the English language is used and there is a translation for the language German.
This means that if the language "German" is set for the HS/FS Expert, this block is displayed in German in the GLE.
When using any other language setting in the HS/FS Expert, the block is displayed in English in the GLE, as this is the default setting.