<?xml version="1.0"?>
<device image="Ledbar252.gif" initsequence="set 0 0; set 1 0; set 2 0; set 3 0; set 4 0; set 5 0; set 6 0; set 7 0; set 8 0; set 9 0; set 10 0; set 11 0; set 12 0; set 13 0; set 14 0; set 15 0; set 16 0; set 17 0; set 18 0; set 19 0; set 20 0; set 21 0; set 22 0; set 23 0; set 24 0">
	<information>
		<name>Pos12 LED BAR</name>
		<comment>Futurelight Pos12 LED BAR</comment>
		<author>Detlev Weniger</author>
		<vendor>Futurelight</vendor>
	</information>
	<channels>
		<function channel="0" minvalue="0" maxvalue="255" name="Rot 1" fade="yes" type="r" action="GetColor_1" />
		<function channel="1" minvalue="0" maxvalue="255" name="Gruen 1" fade="yes" type="g" action="GetColor_1" />
		<function channel="2" minvalue="0" maxvalue="255" name="Blau 1" fade="yes" type="b" action="GetColor_1" />
		<function channel="3" minvalue="0" maxvalue="255" name="Rot 2" fade="yes" type="r" action="GetColor_2" />
		<function channel="4" minvalue="0" maxvalue="255" name="Gruen 2" fade="yes" type="g" action="GetColor_2" />
		<function channel="5" minvalue="0" maxvalue="255" name="Blau 2" fade="yes" type="b" action="GetColor_2" />
		<function channel="6" minvalue="0" maxvalue="255" name="Rot 3" fade="yes" type="r" action="GetColor_3" />
		<function channel="7" minvalue="0" maxvalue="255" name="Gruen 3" fade="yes" type="g" action="GetColor_3" />
		<function channel="8" minvalue="0" maxvalue="255" name="Blau 3" fade="yes" type="b" action="GetColor_3" />
		<function channel="9" minvalue="0" maxvalue="255" name="Rot 4" fade="yes" type="r" action="GetColor_4" />
		<function channel="10" minvalue="0" maxvalue="255" name="Gruen 4" fade="yes" type="g" action="GetColor_4" />
		<function channel="11" minvalue="0" maxvalue="255" name="Blau 4" fade="yes" type="b" action="GetColor_4" />
		<function channel="12" minvalue="0" maxvalue="255" name="Rot 5" fade="yes" type="r" action="GetColor_5" />
		<function channel="13" minvalue="0" maxvalue="255" name="Gruen 5" fade="yes" type="g" action="GetColor_5" />
		<function channel="14" minvalue="0" maxvalue="255" name="Blau 5" fade="yes" type="b" action="GetColor_5" />
		<function channel="15" minvalue="0" maxvalue="255" name="Rot 6" fade="yes" type="r" action="GetColor_6" />
		<function channel="16" minvalue="0" maxvalue="255" name="Gruen 6" fade="yes" type="g" action="GetColor_6" />
		<function channel="17" minvalue="0" maxvalue="255" name="Blau 6" fade="yes" type="b" action="GetColor_6" />
		<virtual channel="18" minvalue="0" maxvalue="255" name="Virtueller Dimmer1" fade="yes" type="dimmer">
			<channel channel="0" />
			<channel channel="1" />
			<channel channel="2" />
		</virtual>
		<virtual channel="19" minvalue="0" maxvalue="255" name="Virtueller Dimmer2" fade="yes" type="dimmer">
			<channel channel="3" />
			<channel channel="4" />
			<channel channel="5" />
		</virtual>
		<virtual channel="20" minvalue="0" maxvalue="255" name="Virtueller Dimmer3" fade="yes" type="dimmer">
			<channel channel="6" />
			<channel channel="7" />
			<channel channel="8" />
		</virtual>
		<virtual channel="21" minvalue="0" maxvalue="255" name="Virtueller Dimmer4" fade="yes" type="dimmer">
			<channel channel="9" />
			<channel channel="10" />
			<channel channel="11" />
		</virtual>
		<virtual channel="22" minvalue="0" maxvalue="255" name="Virtueller Dimmer5" fade="yes" type="dimmer">
			<channel channel="12" />
			<channel channel="13" />
			<channel channel="14" />
		</virtual>
		<virtual channel="23" minvalue="0" maxvalue="255" name="Virtueller Dimmer6" fade="yes" type="dimmer">
			<channel channel="15" />
			<channel channel="16" />
			<channel channel="17" />
		</virtual>
		<virtual channel="24" minvalue="0" maxvalue="255" name="Virtueller Master" fade="yes" type="dimmer">
			<channel channel="0" />
			<channel channel="1" />
			<channel channel="2" />
			<channel channel="3" />
			<channel channel="4" />
			<channel channel="5" />
			<channel channel="6" />
			<channel channel="7" />
			<channel channel="8" />
			<channel channel="9" />
			<channel channel="10" />
			<channel channel="11" />
			<channel channel="12" />
			<channel channel="13" />
			<channel channel="14" />
			<channel channel="15" />
			<channel channel="16" />
			<channel channel="17" />
		</virtual>
	</channels>
	<form width="561" height="275">
		<deviceimage top="8" left="8" width="64" height="40" />
		<devicename top="8" left="88" />
		<deviceadress top="32" left="88" />
		<!--     Die 6 Colorpicker   -->
		<!--                         -->
		<colorpicker top="56" left="4" height="80" width="88" mode="rgb" layout="2" channel1="0" channel2="1" channel3="2" />
		<colorpicker top="56" left="96" height="80" width="88" mode="rgb" layout="2" channel1="3" channel2="4" channel3="5" />
		<colorpicker top="56" left="188" height="80" width="88" mode="rgb" layout="2" channel1="6" channel2="7" channel3="8" />
		<colorpicker top="56" left="280" height="80" width="88" mode="rgb" layout="2" channel1="9" channel2="10" channel3="11" />
		<colorpicker top="56" left="372" height="80" width="88" mode="rgb" layout="2" channel1="12" channel2="13" channel3="14" />
		<colorpicker top="56" left="464" height="80" width="88" mode="rgb" layout="2" channel1="15" channel2="16" channel3="17" />
		<!--                              -->
		<!--     Die 6 Colorpicker ENDE   -->
		<!--                              -->
		<!--     Linien                   -->
		<!--                              -->
		<line y1="140" x1="94" y2="228" x2="94" />
		<line y1="140" x1="186" y2="228" x2="186" />
		<line y1="140" x1="278" y2="228" x2="278" />
		<line y1="140" x1="370" y2="228" x2="370" />
		<line y1="140" x1="462" y2="228" x2="462" />
		<!--                              -->
		<!--      DIMMER FADER / BUTTON           -->
		<!--                              -->
		<slider top="144" left="4" height="30" width="88" startvalue="0" endvalue="255" channel="18" />
		<command top="176" left="4" width="28" caption="0" clicksequence="set 18 0;" />
		<command top="176" left="34" width="28" caption="H" clicksequence="set 18 128;" />
		<command top="176" left="64" width="28" caption="V" clicksequence="set 18 255;" />
		<slider top="144" left="96" height="30" width="88" startvalue="0" endvalue="255" channel="19" />
		<command top="176" left="96" width="28" caption="0" clicksequence="set 19 0;" />
		<command top="176" left="126" width="28" caption="H" clicksequence="set 19 128;" />
		<command top="176" left="156" width="28" caption="V" clicksequence="set 19 255;" />
		<slider top="144" left="188" height="30" width="88" startvalue="0" endvalue="255" channel="20" />
		<command top="176" left="188" width="28" caption="0" clicksequence="set 20 0;" />
		<command top="176" left="218" width="28" caption="H" clicksequence="set 20 128;" />
		<command top="176" left="248" width="28" caption="V" clicksequence="set 20 255;" />
		<slider top="144" left="280" height="30" width="88" startvalue="0" endvalue="255" channel="21" />
		<command top="176" left="280" width="28" caption="0" clicksequence="set 21 0;" />
		<command top="176" left="310" width="28" caption="H" clicksequence="set 21 128;" />
		<command top="176" left="340" width="28" caption="V" clicksequence="set 21 255;" />
		<slider top="144" left="372" height="30" width="88" startvalue="0" endvalue="255" channel="22" />
		<command top="176" left="372" width="28" caption="0" clicksequence="set 22 0;" />
		<command top="176" left="402" width="28" caption="H" clicksequence="set 22 128;" />
		<command top="176" left="432" width="28" caption="V" clicksequence="set 22 255;" />
		<slider top="144" left="464" height="30" width="88" startvalue="0" endvalue="255" channel="23" />
		<command top="176" left="464" width="28" caption="0" clicksequence="set 23 0;" />
		<command top="176" left="494" width="28" caption="H" clicksequence="set 23 128;" />
		<command top="176" left="524" width="28" caption="V" clicksequence="set 23 255;" />
		<!--                              -->
		<!--        Master Dimmer Versuch -->
		<!--                              -->
		<slider top="252" left="188" height="30" width="180" startvalue="0" endvalue="255" channel="24" />
		<!--                              -->
		<!--      DIMMER FADER / BUTTON                     -->
		<!--             ENDE                 -->
		<!--                              -->
		<!--      2.Versuch 6 Module als Dropdown     -->
		<!--                              -->
		<!--      1. Modul als Dropdown     -->
		<!--                              -->
		<dropdown top="200" left="4" width="88" name="Color_1" action="SetColor_1">
			<item caption="schwarz" value="0" color="#000000" />
			<item caption="rot" value="20" color="#ff0000" />
			<item caption="gruen" value="40" color="#00ff00" />
			<item caption="blau" value="60" color="#0000ff" />
			<item caption="orange" value="80" color="#ff8000" />
			<item caption="gelb" value="100" color="#ffff00" />
			<item caption="magenta" value="120" color="#ff0080" />
			<item caption="weiss" value="255" color="#ffffff" />
		</dropdown>
		<!--      2. Modul als Dropdown     -->
		<dropdown top="200" left="96" width="88" name="Color_2" action="SetColor_2">
			<item caption="schwarz" value="0" color="#000000" />
			<item caption="rot" value="20" color="#ff0000" />
			<item caption="gruen" value="40" color="#00ff00" />
			<item caption="blau" value="60" color="#0000ff" />
			<item caption="orange" value="80" color="#ff8000" />
			<item caption="gelb" value="100" color="#ffff00" />
			<item caption="magenta" value="120" color="#ff0080" />
			<item caption="weiss" value="255" color="#ffffff" />
		</dropdown>
		<!--      3. Modul als Dropdown     -->
		<dropdown top="200" left="188" width="88" name="Color_3" action="SetColor_3">
			<item caption="schwarz" value="0" color="#000000" />
			<item caption="rot" value="20" color="#ff0000" />
			<item caption="gruen" value="40" color="#00ff00" />
			<item caption="blau" value="60" color="#0000ff" />
			<item caption="orange" value="80" color="#ff8000" />
			<item caption="gelb" value="100" color="#ffff00" />
			<item caption="magenta" value="120" color="#ff0080" />
			<item caption="weiss" value="255" color="#ffffff" />
		</dropdown>
		<!--      4. Modul als Dropdown     -->
		<dropdown top="200" left="280" width="88" name="Color_4" action="SetColor_4">
			<item caption="schwarz" value="0" color="#000000" />
			<item caption="rot" value="20" color="#ff0000" />
			<item caption="gruen" value="40" color="#00ff00" />
			<item caption="blau" value="60" color="#0000ff" />
			<item caption="orange" value="80" color="#ff8000" />
			<item caption="gelb" value="100" color="#ffff00" />
			<item caption="magenta" value="120" color="#ff0080" />
			<item caption="weiss" value="255" color="#ffffff" />
		</dropdown>
		<!--      5. Modul als Dropdown     -->
		<dropdown top="200" left="372" width="88" name="Color_5" action="SetColor_5">
			<item caption="schwarz" value="0" color="#000000" />
			<item caption="rot" value="20" color="#ff0000" />
			<item caption="gruen" value="40" color="#00ff00" />
			<item caption="blau" value="60" color="#0000ff" />
			<item caption="orange" value="80" color="#ff8000" />
			<item caption="gelb" value="100" color="#ffff00" />
			<item caption="magenta" value="120" color="#ff0080" />
			<item caption="weiss" value="255" color="#ffffff" />
		</dropdown>
		<!--      6. Modul als Dropdown     -->
		<dropdown top="200" left="464" width="88" name="Color_6" action="SetColor_6">
			<item caption="schwarz" value="0" color="#000000" />
			<item caption="rot" value="20" color="#ff0000" />
			<item caption="gruen" value="40" color="#00ff00" />
			<item caption="blau" value="60" color="#0000ff" />
			<item caption="orange" value="80" color="#ff8000" />
			<item caption="gelb" value="100" color="#ffff00" />
			<item caption="magenta" value="120" color="#ff0080" />
			<item caption="weiss" value="255" color="#ffffff" />
		</dropdown>
		<!--      Dropdowns ENDE    -->
		<label top="259" left="76" caption="MASTER - Dimmer" />
	</form>
	<!--                              -->
	<!--      START der PROCEDUREN    -->
	<!--  Das Dropdown hat den Namen Color_1 und startet die   -->
	<!--  Aktion SetColor_1 in Abhaengigkeit vom Wert des       -->
	<!--  dropdowns wird ueber die IF Abfrage ausgewaehlt      -->
	<!--  wie die jeweiligen RGBs gesetzt werden muessen       -->
	<!--                              -->
	<code>
		<procedure name="INITCONTROLS">
	!call|GetColor_1$
	!call|GetColor_2$
	!call|GetColor_3$
	!call|GetColor_4$
	!call|GetColor_5$
	!call|GetColor_6$
</procedure>
		<!--  Immer die SET Color Procedure und dann die GET Color           -->
		<!--  Procedure des jeweiligen Blockes um eine Struktur zu haben.    -->
		<procedure name="SetColor_1">
      !if|({Color_1}=0)|
      !set_channel|0|0$
      !set_channel|1|0$
      !set_channel|2|0$
      $
      !if|({Color_1}=20)|
      !set_channel|0|255$
      !set_channel|1|0$
      !set_channel|2|0$
      $
      !if|({Color_1}=40)|
      !set_channel|0|0$
      !set_channel|1|255$
      !set_channel|2|0$
      $
      !if|({Color_1}=60)|
      !set_channel|0|0$
      !set_channel|1|0$
      !set_channel|2|255$
      $
      !if|({Color_1}=80)|
      !set_channel|0|255$
      !set_channel|1|120$
      !set_channel|2|0$
      $
      !if|({Color_1}=100)|
      !set_channel|0|240$
      !set_channel|1|255$
      !set_channel|2|0$
      $
      !if|({Color_1}=120)|
      !set_channel|0|255$
      !set_channel|1|0$
      !set_channel|2|121$
      $
      !if|({Color_1}=255)|
      !set_channel|0|255$
      !set_channel|1|255$
      !set_channel|2|255$
      $
    </procedure>
		<procedure name="GetColor_1">
      !if|(({channel_0}=0) and ({channel_1}=0) and ({channel_2}=0))|
      !set_control|Color_1|0$
      $
      !if|(({channel_0}=255) and ({channel_1}=0) and ({channel_2}=0))|
      !set_control|Color_1|20$
      $
      !if|(({channel_0}=0) and ({channel_1}=255) and ({channel_2}=0))|
      !set_control|Color_1|40$
      $
      !if|(({channel_0}=0) and ({channel_1}=0) and ({channel_2}=255))|
      !set_control|Color_1|60$
      $
      !if|(({channel_0}=255) and ({channel_1}=120) and ({channel_2}=0))|
      !set_control|Color_1|80$
      $
      !if|(({channel_0}=240) and ({channel_1}=255) and ({channel_2}=0))|
      !set_control|Color_1|100$
      $
      !if|(({channel_0}=255) and ({channel_1}=0) and ({channel_2}=121))|
      !set_control|Color_1|120$
      $
      !if|(({channel_0}=255) and ({channel_1}=255) and ({channel_2}=255))|
      !set_control|Color_1|255$
      $
</procedure>
		<!--  BLOCK 2       -->
		<!--                -->
		<procedure name="SetColor_2">
      !if|({Color_2}=0)|
      !set_channel|3|0$
      !set_channel|4|0$
      !set_channel|5|0$
      $
      !if|({Color_2}=20)|
      !set_channel|3|255$
      !set_channel|4|0$
      !set_channel|5|0$
      $
      !if|({Color_2}=40)|
      !set_channel|3|0$
      !set_channel|4|255$
      !set_channel|5|0$
      $
      !if|({Color_2}=60)|
      !set_channel|3|0$
      !set_channel|4|0$
      !set_channel|5|255$
      $
      !if|({Color_2}=80)|
      !set_channel|3|255$
      !set_channel|4|120$
      !set_channel|5|0$
      $
      !if|({Color_2}=100)|
      !set_channel|3|240$
      !set_channel|4|255$
      !set_channel|5|0$
      $
      !if|({Color_2}=120)|
      !set_channel|3|255$
      !set_channel|4|0$
      !set_channel|5|121$
      $
      !if|({Color_2}=255)|
      !set_channel|3|255$
      !set_channel|4|255$
      !set_channel|5|255$
      $
    </procedure>
		<procedure name="GetColor_2">
      !if|(({channel_3}=0) and ({channel_4}=0) and ({channel_5}=0))|
      !set_control|Color_2|0$
      $
      !if|(({channel_3}=255) and ({channel_4}=0) and ({channel_5}=0))|
      !set_control|Color_2|20$
      $
      !if|(({channel_3}=0) and ({channel_4}=255) and ({channel_5}=0))|
      !set_control|Color_2|40$
      $
      !if|(({channel_3}=0) and ({channel_4}=0) and ({channel_5}=255))|
      !set_control|Color_2|60$
      $
      !if|(({channel_3}=255) and ({channel_4}=120) and ({channel_5}=0))|
      !set_control|Color_2|80$
      $
      !if|(({channel_3}=240) and ({channel_4}=255) and ({channel_5}=0))|
      !set_control|Color_2|100$
      $
      !if|(({channel_3}=255) and ({channel_4}=0) and ({channel_5}=121))|
      !set_control|Color_2|120$
      $
      !if|(({channel_3}=255) and ({channel_4}=255) and ({channel_5}=255))|
      !set_control|Color_2|255$
      $
</procedure>
		<!--  BLOCK 3       -->
		<!--                -->
		<procedure name="SetColor_3">
      !if|({Color_3}=0)|
      !set_channel|6|0$
      !set_channel|7|0$
      !set_channel|8|0$
      $
      !if|({Color_3}=20)|
      !set_channel|6|255$
      !set_channel|7|0$
      !set_channel|8|0$
      $
      !if|({Color_3}=40)|
      !set_channel|6|0$
      !set_channel|7|255$
      !set_channel|8|0$
      $
      !if|({Color_3}=60)|
      !set_channel|6|0$
      !set_channel|7|0$
      !set_channel|8|255$
      $
      !if|({Color_3}=80)|
      !set_channel|6|255$
      !set_channel|7|120$
      !set_channel|8|0$
      $
      !if|({Color_3}=100)|
      !set_channel|6|240$
      !set_channel|7|255$
      !set_channel|8|0$
      $
      !if|({Color_3}=120)|
      !set_channel|6|255$
      !set_channel|7|0$
      !set_channel|8|121$
      $
      !if|({Color_3}=255)|
      !set_channel|6|255$
      !set_channel|7|255$
      !set_channel|8|255$
      $
    </procedure>
		<procedure name="GetColor_3">
      !if|(({channel_6}=0) and ({channel_7}=0) and ({channel_8}=0))|
      !set_control|Color_3|0$
      $
      !if|(({channel_6}=255) and ({channel_7}=0) and ({channel_8}=0))|
      !set_control|Color_3|20$
      $
      !if|(({channel_6}=0) and ({channel_7}=255) and ({channel_8}=0))|
      !set_control|Color_3|40$
      $
      !if|(({channel_6}=0) and ({channel_7}=0) and ({channel_8}=255))|
      !set_control|Color_3|60$
      $
      !if|(({channel_6}=255) and ({channel_7}=120) and ({channel_8}=0))|
      !set_control|Color_3|80$
      $
      !if|(({channel_6}=240) and ({channel_7}=255) and ({channel_8}=0))|
      !set_control|Color_3|100$
      $
      !if|(({channel_6}=255) and ({channel_7}=0) and ({channel_8}=121))|
      !set_control|Color_3|120$
      $
      !if|(({channel_6}=255) and ({channel_7}=255) and ({channel_8}=255))|
      !set_control|Color_3|255$
      $
</procedure>
		<!--  BLOCK 4       -->
		<!--                -->
		<procedure name="SetColor_4">
      !if|({Color_4}=0)|
      !set_channel|9|0$
      !set_channel|10|0$
      !set_channel|11|0$
      $
      !if|({Color_4}=20)|
      !set_channel|9|255$
      !set_channel|10|0$
      !set_channel|11|0$
      $
      !if|({Color_4}=40)|
      !set_channel|9|0$
      !set_channel|10|255$
      !set_channel|11|0$
      $
      !if|({Color_4}=60)|
      !set_channel|9|0$
      !set_channel|10|0$
      !set_channel|11|255$
      $
      !if|({Color_4}=80)|
      !set_channel|9|255$
      !set_channel|10|120$
      !set_channel|11|0$
      $
      !if|({Color_4}=100)|
      !set_channel|9|240$
      !set_channel|10|255$
      !set_channel|11|0$
      $
      !if|({Color_4}=120)|
      !set_channel|9|255$
      !set_channel|10|0$
      !set_channel|11|121$
      $
      !if|({Color_4}=255)|
      !set_channel|9|255$
      !set_channel|10|255$
      !set_channel|11|255$
      $
    </procedure>
		<procedure name="GetColor_4">
      !if|(({channel_9}=0) and ({channel_10}=0) and ({channel_11}=0))|
      !set_control|Color_4|0$
      $
      !if|(({channel_9}=255) and ({channel_10}=0) and ({channel_11}=0))|
      !set_control|Color_4|20$
      $
      !if|(({channel_9}=0) and ({channel_10}=255) and ({channel_11}=0))|
      !set_control|Color_4|40$
      $
      !if|(({channel_9}=0) and ({channel_10}=0) and ({channel_11}=255))|
      !set_control|Color_4|60$
      $
      !if|(({channel_9}=234) and ({channel_10}=255) and ({channel_11}=0))|
      !set_control|Color_4|80$
      $
      !if|(({channel_9}=255) and ({channel_10}=228) and ({channel_11}=0))|
      !set_control|Color_4|100$
      $
      !if|(({channel_9}=255) and ({channel_10}=0) and ({channel_11}=121))|
      !set_control|Color_4|120$
      $
      !if|(({channel_9}=255) and ({channel_10}=255) and ({channel_11}=255))|
      !set_control|Color_4|255$
      $
</procedure>
		<!--  BLOCK 5       -->
		<!--                -->
		<procedure name="SetColor_5">
      !if|({Color_5}=0)|
      !set_channel|12|0$
      !set_channel|13|0$
      !set_channel|14|0$
      $
      !if|({Color_5}=20)|
      !set_channel|12|255$
      !set_channel|13|0$
      !set_channel|14|0$
      $
      !if|({Color_5}=40)|
      !set_channel|12|0$
      !set_channel|13|255$
      !set_channel|14|0$
      $
      !if|({Color_5}=60)|
      !set_channel|12|0$
      !set_channel|13|0$
      !set_channel|14|255$
      $
      !if|({Color_5}=80)|
      !set_channel|12|255$
      !set_channel|13|120$
      !set_channel|14|0$
      $
      !if|({Color_5}=100)|
      !set_channel|12|240$
      !set_channel|13|255$
      !set_channel|14|0$
      $
      !if|({Color_5}=120)|
      !set_channel|12|255$
      !set_channel|13|0$
      !set_channel|14|121$
      $
      !if|({Color_5}=255)|
      !set_channel|12|255$
      !set_channel|13|255$
      !set_channel|14|255$
      $
</procedure>
		<procedure name="GetColor_5">
      !if|(({channel_12}=0) and ({channel_13}=0) and ({channel_14}=0))|
      !set_control|Color_5|0$
      $
      !if|(({channel_12}=255) and ({channel_13}=0) and ({channel_14}=0))|
      !set_control|Color_5|20$
      $
      !if|(({channel_12}=0) and ({channel_13}=255) and ({channel_14}=0))|
      !set_control|Color_5|40$
      $
      !if|(({channel_12}=0) and ({channel_13}=0) and ({channel_14}=255))|
      !set_control|Color_5|60$
      $
      !if|(({channel_12}=255) and ({channel_13}=120) and ({channel_14}=0))|
      !set_control|Color_5|80$
      $
      !if|(({channel_12}=240) and ({channel_13}=255) and ({channel_14}=0))|
      !set_control|Color_5|100$
      $
      !if|(({channel_12}=255) and ({channel_13}=0) and ({channel_14}=121))|
      !set_control|Color_5|120$
      $
      !if|(({channel_12}=255) and ({channel_13}=255) and ({channel_14}=255))|
      !set_control|Color_5|255$
      $
</procedure>
		<!--  BLOCK 6       -->
		<!--                -->
		<procedure name="SetColor_6">
      !if|({Color_6}=0)|
      !set_channel|15|0$
      !set_channel|16|0$
      !set_channel|17|0$
      $
      !if|({Color_6}=20)|
      !set_channel|15|255$
      !set_channel|16|0$
      !set_channel|17|0$
      $
      !if|({Color_6}=40)|
      !set_channel|15|0$
      !set_channel|16|255$
      !set_channel|17|0$
      $
      !if|({Color_6}=60)|
      !set_channel|15|0$
      !set_channel|16|0$
      !set_channel|17|255$
      $
      !if|({Color_6}=80)|
      !set_channel|15|255$
      !set_channel|16|120$
      !set_channel|17|0$
      $
      !if|({Color_6}=100)|
      !set_channel|15|240$
      !set_channel|16|255$
      !set_channel|17|0$
      $
      !if|({Color_6}=120)|
      !set_channel|15|255$
      !set_channel|16|0$
      !set_channel|17|121$
      $
      !if|({Color_6}=255)|
      !set_channel|15|255$
      !set_channel|16|255$
      !set_channel|17|255$
      $
</procedure>
		<procedure name="GetColor_6">
      !if|(({channel_15}=0) and ({channel_16}=0) and ({channel_17}=0))|
      !set_control|Color_6|0$
      $
      !if|(({channel_15}=255) and ({channel_16}=0) and ({channel_17}=0))|
      !set_control|Color_6|20$
      $
      !if|(({channel_15}=0) and ({channel_16}=255) and ({channel_17}=0))|
      !set_control|Color_6|40$
      $
      !if|(({channel_15}=0) and ({channel_16}=0) and ({channel_17}=255))|
      !set_control|Color_6|60$
      $
      !if|(({channel_15}=255) and ({channel_16}=120) and ({channel_17}=0))|
      !set_control|Color_6|80$
      $
      !if|(({channel_15}=240) and ({channel_16}=255) and ({channel_17}=0))|
      !set_control|Color_6|100$
      $
      !if|(({channel_15}=255) and ({channel_16}=0) and ({channel_17}=121))|
      !set_control|Color_6|120$
      $
      !if|(({channel_15}=255) and ({channel_16}=255) and ({channel_17}=255))|
      !set_control|Color_6|255$
      $
</procedure>
	</code>
</device>