<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE functionblock [
   <!ELEMENT enum_definition ANY>
   <!ATTLIST enum_definition id ID #REQUIRED
                  typeid CDATA "_0x0"
                  name CDATA ""
                  note CDATA ""
                  udf CDATA "">
   <!ELEMENT enum_value ANY>
   <!ATTLIST enum_value id ID #REQUIRED
                  typeid CDATA "_0x0"
                  name CDATA ""
                  note CDATA ""
                  index CDATA "0"
                  udf CDATA "">
   <!ELEMENT functionblock ANY>
   <!ATTLIST functionblock id ID #REQUIRED
                  name CDATA ""
                  master_schneider_electric (yes | no) "no"
                  master_type CDATA ""
                  master_version CDATA ""
                  master_name CDATA ""
                  master_programmer CDATA ""
                  master_date_year CDATA "0"
                  master_date_month CDATA "0"
                  master_date_day CDATA "0"
                  locked (yes | no) "no"
                  icon CDATA "_0x0"
                  note CDATA ""
                  helpfile CDATA ""
                  udf CDATA "">
   <!ELEMENT inputs ANY>
   <!ATTLIST inputs id ID #REQUIRED
                  name CDATA ""
                  icon CDATA "_0x0"
                  note CDATA ""
                  udf CDATA "">
   <!ELEMENT resource_input ANY>
   <!ATTLIST resource_input id ID #REQUIRED
                  name CDATA ""
                  backup (yes | no) "no"
                  icon CDATA "_0x0"
                  note CDATA ""
                  inivalue (on | off) "off"
                  accessibility (read | write | read-write) "read-write"
                  note-2 CDATA ""
                  udf CDATA "">
   <!ELEMENT link_to_resource ANY>
   <!ATTLIST link_to_resource id ID #REQUIRED
                  name CDATA ""
                  icon CDATA "_0x0"
                  note CDATA ""
                  link IDREF #REQUIRED
                  udf CDATA "">
   <!ELEMENT outputs ANY>
   <!ATTLIST outputs id ID #REQUIRED
                  name CDATA ""
                  icon CDATA "_0x0"
                  note CDATA ""
                  udf CDATA "">
   <!ELEMENT resource_scene ANY>
   <!ATTLIST resource_scene id ID #REQUIRED
                  name CDATA ""
                  note CDATA ""
                  icon CDATA "_0x89"
                  hide_dialog (yes | no) "no"
                  note-2 CDATA ""
                  udf CDATA "">
   <!ELEMENT scene_link ANY>
   <!ATTLIST scene_link id ID #REQUIRED
                  name CDATA ""
                  icon CDATA "_0x0"
                  note CDATA ""
                  link IDREF #REQUIRED
                  udf CDATA "">
   <!ELEMENT resource_output ANY>
   <!ATTLIST resource_output id ID #REQUIRED
                  name CDATA ""
                  backup (yes | no) "no"
                  icon CDATA "_0x0"
                  note CDATA ""
                  inivalue (on | off) "off"
                  accessibility (read | write | read-write) "read-write"
                  note-2 CDATA ""
                  udf CDATA "">
   <!ELEMENT link_from_resource ANY>
   <!ATTLIST link_from_resource id ID #REQUIRED
                  name CDATA ""
                  icon CDATA "_0x0"
                  note CDATA ""
                  link IDREF #REQUIRED
                  udf CDATA "">
   <!ELEMENT settings ANY>
   <!ATTLIST settings id ID #REQUIRED
                  name CDATA ""
                  icon CDATA "_0x0"
                  note CDATA ""
                  udf CDATA "">
   <!ELEMENT resource_timer ANY>
   <!ATTLIST resource_timer id ID #REQUIRED
                  name CDATA ""
                  backup (yes | no) "no"
                  icon CDATA "_0x0"
                  note CDATA ""
                  hour CDATA #REQUIRED
                  minute CDATA #REQUIRED
                  second CDATA #REQUIRED
                  millisecond CDATA #REQUIRED
                  note-2 CDATA ""
                  udf CDATA "">
   <!ELEMENT resource_enum ANY>
   <!ATTLIST resource_enum id ID #REQUIRED
                  name CDATA ""
                  typedef IDREF #REQUIRED
                  inivalue IDREF #REQUIRED
                  backup (yes | no) "no"
                  icon CDATA "_0x0"
                  note CDATA ""
                  accessibility (read | write | read-write) "read-write"
                  note-2 CDATA ""
                  udf CDATA "">
   <!ELEMENT resource_time ANY>
   <!ATTLIST resource_time id ID #REQUIRED
                  name CDATA ""
                  backup (yes | no) "no"
                  icon CDATA "_0x0"
                  note CDATA ""
                  hour CDATA #REQUIRED
                  minute CDATA #REQUIRED
                  second CDATA #REQUIRED
                  note-2 CDATA ""
                  udf CDATA "">
   <!ELEMENT internalsettings ANY>
   <!ATTLIST internalsettings id ID #REQUIRED
                  name CDATA ""
                  icon CDATA "_0x0"
                  note CDATA ""
                  udf CDATA "">
   <!ELEMENT resource_flag ANY>
   <!ATTLIST resource_flag id ID #REQUIRED
                  name CDATA ""
                  backup (yes | no) "no"
                  icon CDATA "_0x0"
                  note CDATA ""
                  inivalue (on | off) "off"
                  accessibility (read | write | read-write) "read-write"
                  note-2 CDATA ""
                  udf CDATA "">
   <!ELEMENT programs ANY>
   <!ATTLIST programs id ID #REQUIRED
                  name CDATA ""
                  icon CDATA "_0x0"
                  note CDATA ""
                  udf CDATA "">
   <!ELEMENT program_simple ANY>
   <!ATTLIST program_simple id ID #REQUIRED
                  name CDATA ""
                  icon CDATA "_0x0"
                  note CDATA ""
                  udf CDATA "">
   <!ELEMENT events ANY>
   <!ATTLIST events id ID #REQUIRED
                  name CDATA ""
                  icon CDATA "_0x0"
                  note CDATA ""
                  udf CDATA "">
   <!ELEMENT event ANY>
   <!ATTLIST event id ID #REQUIRED
                  name CDATA ""
                  icon CDATA "_0x0"
                  note CDATA ""
                  link1 IDREF #IMPLIED
                  link2 IDREF #IMPLIED
                  method CDATA "_0x0"
                  udf CDATA "">
   <!ELEMENT actions ANY>
   <!ATTLIST actions id ID #REQUIRED
                  name CDATA ""
                  icon CDATA "_0x0"
                  note CDATA ""
                  type CDATA "_0x0"
                  udf CDATA "">
   <!ELEMENT program_sub ANY>
   <!ATTLIST program_sub id ID #REQUIRED
                  name CDATA ""
                  icon CDATA "_0x0"
                  note CDATA ""
                  udf CDATA "">
   <!ELEMENT conditions ANY>
   <!ATTLIST conditions id ID #REQUIRED
                  name CDATA ""
                  icon CDATA "_0x0"
                  note CDATA ""
                  type (and | or) "and"
                  udf CDATA "">
   <!ELEMENT condition ANY>
   <!ATTLIST condition id ID #REQUIRED
                  name CDATA ""
                  icon CDATA "_0x0"
                  note CDATA ""
                  link1 IDREF #IMPLIED
                  link2 IDREF #IMPLIED
                  method CDATA "_0x0"
                  udf CDATA "">
   <!ELEMENT action ANY>
   <!ATTLIST action id ID #REQUIRED
                  name CDATA ""
                  icon CDATA "_0x0"
                  note CDATA ""
                  link1 IDREF #IMPLIED
                  link2 IDREF #IMPLIED
                  method CDATA "_0x0"
                  udf CDATA "">
   <!ELEMENT event_power ANY>
   <!ATTLIST event_power id ID #REQUIRED
                  name CDATA ""
                  icon CDATA "_0x0"
                  note CDATA ""
                  type (up | down) "up"
                  udf CDATA "">
]>
<functionblock id="_0x4a28" name="Dimmer og pir ver2" master_name="Dimmer og pir ver2" master_programmer="Bruger" master_date_year="2016" master_date_month="4" master_date_day="12" locked="yes" icon="_0x10" note="Kort tryk på Touch kipper lyset, langt tryk regulerer lyset op/ned,  hvis lyset tændes spærres PIR&#xD;&#xA;PIR tænder på 2 niveauer afhængigt af indgang UR, men kun hvis det er mørkt.&#xD;&#xA;Lyset kan slukkes via ?Sluk alt?, ?Godnat? osv.&#xD;&#xA;Blokken kan indstilles til om spærringen af PIR skal afstilles automatisk og efter hvor lang tid.">
   <enum_definition id="_0x8347" name="Sidste retning">
      <enum_value id="_0x8448" name="Op"/>
      <enum_value id="_0x8548" name="Ned" index="1"/>
   </enum_definition>
   <enum_definition id="_0x1cf47" name="Ja/Nej">
      <enum_value id="_0x1d048" name="Ja"/>
      <enum_value id="_0x1d148" name="Nej" index="1"/>
   </enum_definition>
      <inputs id="_0x4b23" name="Input" icon="_0x4" note="Variablene i denne gruppering er input til funktionsblokken">
         <resource_input id="_0x5311" name="Touch" icon="_0x36" note="Kort tryk tænder/slukker lyset, hvis lyset tændes spærres PIR&#xD;&#xA;Langt tryk regulerer lyset op/ned">
         </resource_input>
         <resource_input id="_0x22911" name="Skumring" icon="_0x36"/>
         <resource_input id="_0x5411" name="PIR" icon="_0x36" note="Tænder lyset på to forskellige niveauer alt efter om indgang for UR er On eller Off">
         </resource_input>
         <resource_input id="_0x5511" name="UR" icon="_0x36" note="Hvis indgangen er On tænder PIR lyset på niveau 1&#xD;&#xA;ved Off tændes på niveau 2"/>
         <resource_input id="_0x5611" name="Sluk lyset" icon="_0x36" note="Slukker lyset og resetter en evt spærring">
         </resource_input>
         <resource_input id="_0x6c11" name="Tilbagemelding" icon="_0x36" note="Skal forbindes til lysindikering fra lysdæmper">
         </resource_input>
      </inputs>
      <outputs id="_0x4c24" name="Output" icon="_0x14" note="Variablene i denne gruppering er output fra funktionsblokken">
         <resource_scene id="_0x574a" name="PIR Scenarie med ur = On">
         </resource_scene>
         <resource_scene id="_0x584a" name="PIR Scenarie med ur = Off">
         </resource_scene>
         <resource_scene id="_0x594a" name="Scenarie ved manuel tænding">
         </resource_scene>
         <resource_output id="_0x1c712" name="Manuelt betjent" icon="_0x39">
         </resource_output>
      </outputs>
      <settings id="_0x4d25" name="Indstillinger" icon="_0xd" note="Variablene i denne gruppering er indstillinger til funktionsblokken">
         <resource_timer id="_0xa810" name="PIR slukker lyset efter" backup="yes" icon="_0x43" hour="0" minute="2" second="0" millisecond="0"/>
         <resource_enum id="_0x1d20f" name="Ønskes autoreset af manuel betjening" typedef="_0x1cf47" inivalue="_0x1d148" backup="yes" icon="_0x22" note="Hvis ja så resettes manuelt betjening efter den tid der er spcificeret i &quot;Tid inden reset af manuelt&quot; og lyset slukkes"/>
         <resource_time id="_0x1e20d" name="Tid inden autoreset af manuel betjening" icon="_0x2f" hour="1" minute="0" second="0"/>
      </settings>
      <internalsettings id="_0x4e29" name="Interne variable" icon="_0x13" note="Variablene i denne gruppe er private variable til funktionsblokken">
         <resource_enum id="_0x860f" name="Sidste retning" typedef="_0x8347" inivalue="_0x8548" icon="_0x22"/>
         <resource_timer id="_0x6a10" name="- tid inden lyset justrers" icon="_0x43" hour="0" minute="0" second="0" millisecond="400"/>
         <resource_time id="_0x1e10d" name="- tidspunkt for reset af manuelt" icon="_0x2f" hour="0" minute="0" second="0"/>
         <resource_time id="_0x1e50d" name="- autoreset af manuelt" icon="_0x2f" hour="0" minute="0" second="0"/>
         <resource_flag id="_0x1fb0a" name="- sluk pga. autoreset" icon="_0x33"/>
      </internalsettings>
      <programs id="_0x4f26" name="Programmer" icon="_0x19" note="Gruppering af funktionblokkens programmer">
         <program_simple id="_0x611e" name="Touch ændres" icon="_0x7">
            <events id="_0x6264" name="Hændelser" icon="_0xb" note="Hændelser som starter program">
               <event id="_0x64c8" name="%P bliver ændret" icon="_0xc" note="Start program når %P skifter værdi" link1="_0x5311" method="_0x96"/>
            </events>
            <actions id="_0x6366" name="Kommandoer" icon="_0x8" note="Gruppering af kommandoer som udføres når hændelse er indtruffet" type="_0x2">
               <program_sub id="_0x651f" name="Under program" icon="_0x7">
                  <conditions id="_0x6665" name="Betingelser" icon="_0x16" note="Gruppering af betingelser til logisk test">
                     <condition id="_0x69c9" name="%P = ON" icon="_0x1a" note="Betingelse at %P er ON" link1="_0x5311" method="_0xa"/>
                  </conditions>
                  <actions id="_0x6766" name="Kommandoer ved betingelser sande" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er sande" type="_0x1">
                     <action id="_0x6bca" name="Aktiver nedtælling på %P med initial værdi" icon="_0x9" note="Aktiver nedtælling på %P med initial værdi" link1="_0x6a10" method="_0xbe"/>
                  </actions>
                  <actions id="_0x6866" name="Kommandoer ved betingelser falske" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er falske">
                     <action id="_0x6dca" name="Stands tælling på %P" icon="_0x9" note="Standser evt. igangværende optælling eller nedtælling på %P" link1="_0x6a10" method="_0xdc"/>
                     <program_sub id="_0x6e1f" name="Under program" icon="_0x7">
                        <conditions id="_0x6f65" name="Betingelser" icon="_0x16" note="Gruppering af betingelser til logisk test">
                           <condition id="_0x73c9" name="%P &gt; %S" icon="_0x1a" note="Betingelse at %P er større end %S" link1="_0x6a10" link2="_0x7410" method="_0x32">
                              <resource_timer id="_0x7410" name="Timer" icon="_0x43" hour="0" minute="0" second="0" millisecond="1"/>
                           </condition>
                        </conditions>
                        <actions id="_0x7066" name="Kommandoer ved betingelser sande" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er sande" type="_0x1">
                           <program_sub id="_0x751f" name="Under program" icon="_0x7">
                              <conditions id="_0x7665" name="Betingelser" icon="_0x16" note="Gruppering af betingelser til logisk test">
                                 <condition id="_0x79c9" name="%P = ON" icon="_0x1a" note="Betingelse at %P er ON" link1="_0x6c11" method="_0xa"/>
                              </conditions>
                              <actions id="_0x7766" name="Kommandoer ved betingelser sande" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er sande" type="_0x1">
                                 <action id="_0x7aca" name="Regulér %P ned" icon="_0x9" note="Regulér lysniveauet ned for scenariet" link1="_0x594a" method="_0x3c"/>
                                 <action id="_0x7bca" name="Stop regulering af %P" icon="_0x9" note="Stop regulering af lysniveauet for scenariet" link1="_0x594a" method="_0x46"/>
                                 <action id="_0x7cca" name="%P = OFF" icon="_0x9" note="Sætter %P til OFF" link1="_0x6c11" method="_0x14"/>
                                 <action id="_0x89ca" name="%P = %S" icon="_0x9" note="Sætter %P til samme tilstand som %S" link1="_0x860f" link2="_0x8a0f" method="_0x1e">
                                    <resource_enum id="_0x8a0f" name="Enumerator" typedef="_0x8347" inivalue="_0x8548" icon="_0x22"/>
                                 </action>
                                 <action id="_0x1c8ca" name="%P = OFF" icon="_0x9" note="Sætter %P til OFF" link1="_0x1c712" method="_0x14"/>
                                 <action id="_0x23cca" name="Stands tælling på %P" icon="_0x9" note="Standser evt. igangværende optælling eller nedtælling på %P" link1="_0xa810" method="_0xdc"/>
                              </actions>
                              <actions id="_0x7866" name="Kommandoer ved betingelser falske" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er falske">
                                 <action id="_0x7dca" name="Fremkald %P" icon="_0x9" note="Aktiver scenarie" link1="_0x594a" method="_0xa"/>
                                 <action id="_0x7fca" name="%P = ON" icon="_0x9" note="Sætter %P til ON" link1="_0x6c11" method="_0xa"/>
                                 <action id="_0x87ca" name="%P = %S" icon="_0x9" note="Sætter %P til samme tilstand som %S" link1="_0x860f" link2="_0x880f" method="_0x1e">
                                    <resource_enum id="_0x880f" name="Enumerator" typedef="_0x8347" inivalue="_0x8448" icon="_0x22"/>
                                 </action>
                                 <action id="_0x1c9ca" name="%P = ON" icon="_0x9" note="Sætter %P til ON" link1="_0x1c712" method="_0xa"/>
                              </actions>
                           </program_sub>
                        </actions>
                        <actions id="_0x7166" name="Kommandoer ved betingelser falske" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er falske">
                           <action id="_0xf0ca" name="Stop regulering af %P" icon="_0x9" note="Stop regulering af lysniveauet for scenariet" link1="_0x594a" method="_0x46"/>
                        </actions>
                     </program_sub>
                  </actions>
               </program_sub>
            </actions>
         </program_simple>
         <program_simple id="_0x801e" name="Langt tryk" icon="_0x7">
            <events id="_0x8164" name="Hændelser" icon="_0xb" note="Hændelser som starter program">
               <event id="_0x8bc8" name="%P -&gt; 0" icon="_0xc" note="Start program når %P skifter til 0" link1="_0x6a10" method="_0xa"/>
            </events>
            <actions id="_0x8266" name="Kommandoer" icon="_0x8" note="Gruppering af kommandoer som udføres når hændelse er indtruffet" type="_0x2">
               <program_sub id="_0xd71f" name="Under program" icon="_0x7">
                  <conditions id="_0xd865" name="Betingelser" icon="_0x16" note="Gruppering af betingelser til logisk test">
                     <condition id="_0xdbc9" name="%P = ON" icon="_0x1a" note="Betingelse at %P er ON" link1="_0x5311" method="_0xa"/>
                  </conditions>
                  <actions id="_0xd966" name="Kommandoer ved betingelser sande" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er sande" type="_0x1">
                     <program_sub id="_0x8c1f" name="Under program" icon="_0x7">
                        <conditions id="_0x8d65" name="Betingelser" icon="_0x16" note="Gruppering af betingelser til logisk test">
                           <condition id="_0x90c9" name="%P = %S" icon="_0x1a" note="Betingelse at %P er samme som %S" link1="_0x860f" link2="_0x910f" method="_0x1e">
                              <resource_enum id="_0x910f" name="Enumerator" typedef="_0x8347" inivalue="_0x8548" icon="_0x22"/>
                           </condition>
                        </conditions>
                        <actions id="_0x8e66" name="Kommandoer ved betingelser sande" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er sande" type="_0x1">
                           <action id="_0x92ca" name="Regulér %P op" icon="_0x9" note="Regulér lysniveauet op for scenariet" link1="_0x594a" method="_0x32"/>
                           <action id="_0x94ca" name="%P = %S" icon="_0x9" note="Sætter %P til samme tilstand som %S" link1="_0x860f" link2="_0x950f" method="_0x1e">
                              <resource_enum id="_0x950f" name="Enumerator" typedef="_0x8347" inivalue="_0x8448" icon="_0x22"/>
                           </action>
                           <action id="_0x98ca" name="%P = ON" icon="_0x9" note="Sætter %P til ON" link1="_0x6c11" method="_0xa"/>
                           <action id="_0x1caca" name="%P = ON" icon="_0x9" note="Sætter %P til ON" link1="_0x1c712" method="_0xa"/>
                        </actions>
                        <actions id="_0x8f66" name="Kommandoer ved betingelser falske" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er falske">
                           <action id="_0x93ca" name="Regulér %P ned" icon="_0x9" note="Regulér lysniveauet ned for scenariet" link1="_0x594a" method="_0x3c"/>
                           <action id="_0x96ca" name="%P = %S" icon="_0x9" note="Sætter %P til samme tilstand som %S" link1="_0x860f" link2="_0x970f" method="_0x1e">
                              <resource_enum id="_0x970f" name="Enumerator" typedef="_0x8347" inivalue="_0x8548" icon="_0x22"/>
                           </action>
                        </actions>
                     </program_sub>
                  </actions>
                  <actions id="_0xda66" name="Kommandoer ved betingelser falske" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er falske"/>
               </program_sub>
            </actions>
         </program_simple>
         <program_simple id="_0x501e" name="PIR" icon="_0x7">
            <events id="_0x5164" name="Hændelser" icon="_0xb" note="Hændelser som starter program">
               <event id="_0x5bc8" name="%P bliver ændret" icon="_0xc" note="Start program når %P skifter værdi" link1="_0x5411" method="_0x96"/>
            </events>
            <actions id="_0x5266" name="Kommandoer" icon="_0x8" note="Gruppering af kommandoer som udføres når hændelse er indtruffet" type="_0x2">
               <program_sub id="_0xa31f" name="Under program" icon="_0x7">
                  <conditions id="_0xa465" name="Betingelser" icon="_0x16" note="Gruppering af betingelser til logisk test">
                     <condition id="_0x1cbc9" name="%P = OFF" icon="_0x1a" note="Betingelse at %P er OFF" link1="_0x1c712" method="_0x14"/>
                     <condition id="_0x22ac9" name="%P = ON" icon="_0x1a" note="Betingelse at %P er ON" link1="_0x22911" method="_0xa"/>
                  </conditions>
                  <actions id="_0xa566" name="Kommandoer ved betingelser sande" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er sande" type="_0x1">
                     <program_sub id="_0x5c1f" name="Under program" icon="_0x7">
                        <conditions id="_0x5d65" name="Betingelser" icon="_0x16" note="Gruppering af betingelser til logisk test">
                           <condition id="_0x60c9" name="%P = ON" icon="_0x1a" note="Betingelse at %P er ON" link1="_0x5411" method="_0xa"/>
                        </conditions>
                        <actions id="_0x5e66" name="Kommandoer ved betingelser sande" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er sande" type="_0x1">
                           <action id="_0xa9ca" name="Stands tælling på %P" icon="_0x9" note="Standser evt. igangværende optælling eller nedtælling på %P" link1="_0xa810" method="_0xdc"/>
                           <program_sub id="_0x991f" name="Under program" icon="_0x7">
                              <conditions id="_0x9a65" name="Betingelser" icon="_0x16" note="Gruppering af betingelser til logisk test">
                                 <condition id="_0x9dc9" name="%P = ON" icon="_0x1a" note="Betingelse at %P er ON" link1="_0x5511" method="_0xa"/>
                              </conditions>
                              <actions id="_0x9b66" name="Kommandoer ved betingelser sande" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er sande" type="_0x1">
                                 <action id="_0x9eca" name="Fremkald %P" icon="_0x9" note="Aktiver scenarie" link1="_0x574a" method="_0xa"/>
                              </actions>
                              <actions id="_0x9c66" name="Kommandoer ved betingelser falske" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er falske">
                                 <action id="_0x9fca" name="Fremkald %P" icon="_0x9" note="Aktiver scenarie" link1="_0x584a" method="_0xa"/>
                              </actions>
                           </program_sub>
                        </actions>
                        <actions id="_0x5f66" name="Kommandoer ved betingelser falske" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er falske">
                           <action id="_0xaaca" name="Aktiver nedtælling på %P med initial værdi" icon="_0x9" note="Aktiver nedtælling på %P med initial værdi" link1="_0xa810" method="_0xbe"/>
                        </actions>
                     </program_sub>
                  </actions>
                  <actions id="_0xa666" name="Kommandoer ved betingelser falske" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er falske"/>
               </program_sub>
            </actions>
         </program_simple>
         <program_simple id="_0xb51e" name="PIR timer -&gt; 0" icon="_0x7">
            <events id="_0xb664" name="Hændelser" icon="_0xb" note="Hændelser som starter program">
               <event id="_0xb8c8" name="%P -&gt; 0" icon="_0xc" note="Start program når %P skifter til 0" link1="_0xa810" method="_0xa"/>
            </events>
            <actions id="_0xb766" name="Kommandoer" icon="_0x8" note="Gruppering af kommandoer som udføres når hændelse er indtruffet" type="_0x2">
               <program_sub id="_0xbd1f" name="Under program" icon="_0x7">
                  <conditions id="_0xbe65" name="Betingelser" icon="_0x16" note="Gruppering af betingelser til logisk test">
                     <condition id="_0x1cec9" name="%P = OFF" icon="_0x1a" note="Betingelse at %P er OFF" link1="_0x1c712" method="_0x14"/>
                  </conditions>
                  <actions id="_0xbf66" name="Kommandoer ved betingelser sande" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er sande" type="_0x1">
                     <action id="_0xb9ca" name="Regulér %P ned" icon="_0x9" note="Regulér lysniveauet ned for scenariet" link1="_0x594a" method="_0x3c"/>
                     <action id="_0xbaca" name="Stop regulering af %P" icon="_0x9" note="Stop regulering af lysniveauet for scenariet" link1="_0x594a" method="_0x46"/>
                     <action id="_0xbbca" name="%P = %S" icon="_0x9" note="Sætter %P til samme tilstand som %S" link1="_0x860f" link2="_0xbc0f" method="_0x1e">
                        <resource_enum id="_0xbc0f" name="Enumerator" typedef="_0x8347" inivalue="_0x8548" icon="_0x22"/>
                     </action>
                  </actions>
                  <actions id="_0xc066" name="Kommandoer ved betingelser falske" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er falske"/>
               </program_sub>
            </actions>
         </program_simple>
         <program_simple id="_0x1d41e" name="Manuelt betjent -&gt; On" icon="_0x7">
            <events id="_0x1d564" name="Hændelser" icon="_0xb" note="Hændelser som starter program">
               <event id="_0x1e9c8" name="%P bliver ændret" icon="_0xc" note="Start program når %P skifter værdi" link1="_0x1c712" method="_0x96"/>
               <event id="_0x1efc8" name="%P skifter tilstand" icon="_0xc" note="Start program når %P skifter tilstand" link1="_0x1d20f" method="_0x96"/>
            </events>
            <actions id="_0x1d666" name="Kommandoer" icon="_0x8" note="Gruppering af kommandoer som udføres når hændelse er indtruffet" type="_0x2">
               <program_sub id="_0x1ea1f" name="Under program" icon="_0x7">
                  <conditions id="_0x1eb65" name="Betingelser" icon="_0x16" note="Gruppering af betingelser til logisk test">
                     <condition id="_0x1eec9" name="%P = ON" icon="_0x1a" note="Betingelse at %P er ON" link1="_0x1c712" method="_0xa"/>
                     <condition id="_0x1dcc9" name="%P = %S" icon="_0x1a" note="Betingelse at %P er samme som %S" link1="_0x1d20f" link2="_0x1dd0f" method="_0x1e">
                        <resource_enum id="_0x1dd0f" name="Enumerator" typedef="_0x1cf47" inivalue="_0x1d048" icon="_0x22"/>
                     </condition>
                  </conditions>
                  <actions id="_0x1ec66" name="Kommandoer ved betingelser sande" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er sande" type="_0x1">
                     <action id="_0x1e6ca" name="%P = Systemtid" icon="_0x9" note="Sætter %P til System tid" link1="_0x1e50d" method="_0xa"/>
                     <action id="_0x1e7ca" name="%P = %P + %S" icon="_0x9" note="Sætter %P til sin egen værdi plus %S" link1="_0x1e50d" link2="_0x1e20d" method="_0x5a"/>
                     <action id="_0x1e8ca" name="%P = %S" icon="_0x9" note="Sætter %P til samme værdi som %S" link1="_0x1e10d" link2="_0x1e50d" method="_0x1e"/>
                  </actions>
                  <actions id="_0x1ed66" name="Kommandoer ved betingelser falske" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er falske"/>
               </program_sub>
            </actions>
         </program_simple>
         <program_simple id="_0x1f11e" name="Systemtid = - tidspunkt for reset af manuelt" icon="_0x7">
            <events id="_0x1f264" name="Hændelser" icon="_0xb" note="Hændelser som starter program">
               <event id="_0x1f4c8" name="System tid -&gt; %P" icon="_0xc" note="Start program når System tid skifter til %P" link1="_0x1e10d" method="_0xa"/>
            </events>
            <actions id="_0x1f366" name="Kommandoer" icon="_0x8" note="Gruppering af kommandoer som udføres når hændelse er indtruffet" type="_0x2">
               <program_sub id="_0x1f51f" name="Under program" icon="_0x7">
                  <conditions id="_0x1f665" name="Betingelser" icon="_0x16" note="Gruppering af betingelser til logisk test">
                     <condition id="_0x1f9c9" name="%P = %S" icon="_0x1a" note="Betingelse at %P er samme som %S" link1="_0x1d20f" link2="_0x1fa0f" method="_0x1e">
                        <resource_enum id="_0x1fa0f" name="Enumerator" typedef="_0x1cf47" inivalue="_0x1d048" icon="_0x22"/>
                     </condition>
                  </conditions>
                  <actions id="_0x1f766" name="Kommandoer ved betingelser sande" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er sande" type="_0x1">
                     <action id="_0x1fcca" name="%P = ON" icon="_0x9" note="Sætter %P til ON" link1="_0x1fb0a" method="_0xa"/>
                  </actions>
                  <actions id="_0x1f866" name="Kommandoer ved betingelser falske" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er falske"/>
               </program_sub>
            </actions>
         </program_simple>
         <program_simple id="_0xab1e" name="Sluk" icon="_0x7">
            <events id="_0xac64" name="Hændelser" icon="_0xb" note="Hændelser som starter program">
               <event id="_0xaec8" name="%P -&gt; ON" icon="_0xc" note="Start program når %P skifter til ON" link1="_0x5611" method="_0xa"/>
               <event_power id="_0xefc8" name="Powerup" icon="_0xc" note="Start program ved Powerup"/>
               <event id="_0x1fdc8" name="%P -&gt; ON" icon="_0xc" note="Start program når %P skifter til ON" link1="_0x1fb0a" method="_0xa"/>
            </events>
            <actions id="_0xad66" name="Kommandoer" icon="_0x8" note="Gruppering af kommandoer som udføres når hændelse er indtruffet" type="_0x2">
               <action id="_0x23bca" name="Stands tælling på %P" icon="_0x9" note="Standser evt. igangværende optælling eller nedtælling på %P" link1="_0xa810" method="_0xdc"/>
               <action id="_0x1feca" name="%P = OFF" icon="_0x9" note="Sætter %P til OFF" link1="_0x1fb0a" method="_0x14"/>
               <action id="_0xafca" name="Regulér %P ned" icon="_0x9" note="Regulér lysniveauet ned for scenariet" link1="_0x594a" method="_0x3c"/>
               <action id="_0xb0ca" name="Stop regulering af %P" icon="_0x9" note="Stop regulering af lysniveauet for scenariet" link1="_0x594a" method="_0x46"/>
               <action id="_0x1ccca" name="%P = OFF" icon="_0x9" note="Sætter %P til OFF" link1="_0x1c712" method="_0x14"/>
               <action id="_0xb3ca" name="%P = %S" icon="_0x9" note="Sætter %P til samme tilstand som %S" link1="_0x860f" link2="_0xb40f" method="_0x1e">
                  <resource_enum id="_0xb40f" name="Enumerator" typedef="_0x8347" inivalue="_0x8548" icon="_0x22"/>
               </action>
            </actions>
         </program_simple>
         <program_simple id="_0x22b1e" name="Skumring -&gt; Off" icon="_0x7">
            <events id="_0x22c64" name="Hændelser" icon="_0xb" note="Hændelser som starter program">
               <event id="_0x22ec8" name="%P -&gt; OFF" icon="_0xc" note="Start program når %P skifter til OFF" link1="_0x22911" method="_0x14"/>
            </events>
            <actions id="_0x22d66" name="Kommandoer" icon="_0x8" note="Gruppering af kommandoer som udføres når hændelse er indtruffet" type="_0x2">
               <program_sub id="_0x22f1f" name="Under program" icon="_0x7">
                  <conditions id="_0x23065" name="Betingelser" icon="_0x16" note="Gruppering af betingelser til logisk test">
                     <condition id="_0x233c9" name="%P = OFF" icon="_0x1a" note="Betingelse at %P er OFF" link1="_0x1c712" method="_0x14"/>
                     <condition id="_0x234c9" name="%P = ON" icon="_0x1a" note="Betingelse at %P er ON" link1="_0x6c11" method="_0xa"/>
                  </conditions>
                  <actions id="_0x23166" name="Kommandoer ved betingelser sande" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er sande" type="_0x1">
                     <program_sub id="_0x2361f" name="Under program" icon="_0x7">
                        <conditions id="_0x23765" name="Betingelser" icon="_0x16" note="Gruppering af betingelser til logisk test">
                           <condition id="_0x23ac9" name="%P stoppet" icon="_0x1a" note="Betingelse at %P er stoppet" link1="_0xa810" method="_0xdc"/>
                        </conditions>
                        <actions id="_0x23866" name="Kommandoer ved betingelser sande" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er sande" type="_0x1">
                           <action id="_0x235ca" name="Aktiver nedtælling på %P med initial værdi" icon="_0x9" note="Aktiver nedtælling på %P med initial værdi" link1="_0xa810" method="_0xbe"/>
                        </actions>
                        <actions id="_0x23966" name="Kommandoer ved betingelser falske" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er falske"/>
                     </program_sub>
                  </actions>
                  <actions id="_0x23266" name="Kommandoer ved betingelser falske" icon="_0x8" note="Gruppering af kommandoer som udføres når betingelser er falske"/>
               </program_sub>
            </actions>
         </program_simple>
      </programs>
</functionblock>
