<?xml version="1.0" encoding="ISO-8859-1"?>
<device image="Mh.gif" initsequence="set 0 128;set 1 128;set 2 0;set 3 0;set 4 0;set 5 0;set 6 0;set 7 0;set 8 0;sebbt 9 0;set 10 0;set 11 0">
  <information>
    <name>PHS 250</name>
    <vendor>Futurelight</vendor>
    <author>Die Kräfte - powered by Intinno.de</author>
  </information>
  <channels>
    <function channel="0" minvalue="0" maxvalue="255" name="Pan" fade="yes" type="pan" />
    <function channel="1" minvalue="0" maxvalue="255" name="Tilt" fade="yes" type="tilt" />
    <function channel="2" minvalue="0" maxvalue="255" name="Geschwindigkeit" fade="no" type="speed" action="GetGeschw" />
    <function channel="3" minvalue="0" maxvalue="255" name="Farbe" fade="no" type="color" action="GetColor" />
    <function channel="4" minvalue="0" maxvalue="255" name="stat Gobo" fade="no" type="statgobo" action="GetGobostat" />
    <function channel="5" minvalue="0" maxvalue="255" name="rot Gobo" fade="no" type="goborot" action="GetGoborot" />
    <function channel="6" minvalue="0" maxvalue="255" name="Goborotation" fade="no" type="rotategobo" action="GetRotate" />
    <function channel="7" minvalue="0" maxvalue="255" name="Prisma" fade="no" type="prisma" action="GetPrisma" />
    <function channel="8" minvalue="0" maxvalue="255" name="Fokus" fade="yes" type="fokus" action="GetFokus" />
    <function channel="9" minvalue="0" maxvalue="255" name="Shutter" fade="no" type="shutter" action="GetShutter" />
    <function channel="10" minvalue="0" maxvalue="255" name="Dimmer" fade="yes" type="dimmer" action="GetDimmer" />
    <function channel="11" minvalue="0" maxvalue="255" name="Iris" fade="no" type="iris" action="GetIris" />
    <function channel="12" minvalue="0" maxvalue="255" name="Frost" fade="no" type="frost" action="GetFrost" />
    <function channel="13" minvalue="0" maxvalue="255" name="Lampenschaltung" fade="no" type="lamp" action="GetLamp" />
  </channels>
  <form width="397" height="322">
    <deviceimage top="0" left="0" width="33" height="33" />
    <devicename top="0" left="40" width="129" height="17" />
    <deviceadress top="16" left="40" width="129" height="17" />
    <position top="60" left="8" height="177" width="177" />
    <command top="40" left="0" width="65" caption="Lampe an" clicksequence="save 11;set 11 64;hold 5500;restore 11" color="#ffff80" />
    <command top="40" left="66" width="80" caption="Lampe aus" clicksequence="save 11;set 11 224;hold 5500;restore 11" color="#ff8080" />
    <command top="40" left="147" width="48" caption="Reset" clicksequence="save 11;set 11 80;hold 5500;restore 11" color="#ff0000" height="17" />
    <label top="240" left="0" caption="Geschwindigkeit" />
    <dropdown top="256" left="0" width="130" name="geschw" action="SetGeschw" channel="2">
      <item caption="Abnehm. Geschwindigkeit" value="15" />
      <item caption="Blackout Pan/Tilt-Beweg" value="226" />
      <item caption="Blackout Farb/Gobowechs" value="236" />
      <item caption="Keine Funktion" value="246" />
    </dropdown>
    <label top="280" left="0" caption="Farbe" />
    <dropdown top="296" left="0" width="130" name="color_color" action="SetColor" channel="3">
      <item caption="Weiss" value="0" />
      <item caption="Rot" value="14" />
      <item caption="Hellblau" value="28" />
      <item caption="Grün" value="42" />
      <item caption="Light Yellow" value="56" />
      <item caption="Magenta" value="70" />
      <item caption="Convert to Orange" value="84" />
      <item caption="Convert to Blue" value="98" />
      <item caption="Rainbow vorwärts" value="128" />
      <item caption="keine Rotation" value="188" />
      <item caption="Rainbow rückwärts" value="194" />
      <item caption="UV-Filter" value="112" />
    </dropdown>
    <label top="280" left="136" caption="Irisöffnung" />
    <label top="0" left="200" caption="statisches Gobo" />
    <dropdown top="16" left="200" width="121" name="gobos_gobo" action="SetGobo" channel="4">
      <item caption="Offen" value="0" />
      <item caption="Gobo 1" value="14" />
      <item caption="Gobo 2" value="28" />
      <item caption="Gobo 3" value="42" />
      <item caption="Gobo 4" value="56" />
      <item caption="Gobo 5" value="70" />
      <item caption="Gobo 6" value="84" />
      <item caption="Gobo 7" value="98" />
      <item caption="Gobo 1 Shake" value="112" />
      <item caption="Gobo 2 Shake" value="128" />
      <item caption="Gobo 3 Shake" value="144" />
      <item caption="Gobo 4 Shake" value="160" />
      <item caption="Gobo 5 Shake" value="176" />
      <item caption="Gobo 6 Shake" value="192" />
      <item caption="Gobo 7 Shake" value="208" />
      <item caption="rot. Goborad, schneller werdend" value="224" />
    </dropdown>
    <label top="0" left="335" caption=" Speed  " />
    <slider top="16" left="320" height="25" width="65" startvalue="0" endvalue="15" tickfreq="9" smallchange="1" largechange="5" name="gobos_speed" action="SetGobo" />
    <label top="40" left="200" caption="rotierendes Gobo" />
    <dropdown top="56" left="200" width="121" name="gobos_goborot" action="SetGoborot" channel="5">
      <item caption="Offen" value="0" />
      <item caption="rot Gobo 1" value="10" />
      <item caption="rot Gobo 2" value="20" />
      <item caption="rot Gobo 3" value="30" />
      <item caption="rot Gobo 4" value="40" />
      <item caption="rot Gobo 5" value="50" />
      <item caption="rot Gobo 6" value="60" />
      <item caption="rot Gobo 7" value="70" />
      <item caption="rot Gobo 1 Shake" value="80" />
      <item caption="rot Gobo 2 Shake" value="100" />
      <item caption="rot Gobo 3 Shake" value="120" />
      <item caption="rot Gobo 4 Shake" value="140" />
      <item caption="rot Gobo 5 Shake" value="160" />
      <item caption="rot Gobo 6 Shake" value="180" />
      <item caption="rot Gobo 7 Shake" value="200" />
      <item caption="rot Goborad kontinuierlich, schneller werdend" value="230" />
    </dropdown>
    <label top="40" left="335" caption=" Speed  " />
    <slider top="56" left="320" height="25" width="65" startvalue="0" endvalue="19" tickfreq="9" smallchange="1" largechange="5" name="gobos_speedrot" action="SetGoborot" />
    <label top="80" left="200" caption="Goborotation" />
    <dropdown top="96" left="200" width="121" name="rotate" action="SetRotate" channel="6">
      <item caption="Indizierung" value="0" />
      <item caption="Vorwärtsrotation, langsamer  werdend, " value="128" />
      <item caption="keine Rotation" value="190" />
      <item caption="Rückwärtsrotation, schneller werdend" value="194" />
    </dropdown>
    <label top="80" left="335" caption=" Speed  " />
    <slider top="96" left="320" height="25" width="65" startvalue="0" endvalue="61" tickfreq="10" smallchange="1" largechange="25" name="rotate_speed" action="SetRotate" />
    <label top="120" left="200" caption="Prisma" />
    <dropdown top="136" left="200" width="121" name="prisma" action="SetPrisma" channel="7">
      <item caption="Offen" value="0" />
      <item caption="Prismarot. vorwärts" value="4" />
      <item caption="keine Rotation" value="64" />
      <item caption="Prismarot. rückwärts" value="68" />
      <item caption="Marko 1" value="128" />
      <item caption="Marko 2" value="136" />
      <item caption="Marko 3" value="144" />
      <item caption="Marko 4" value="152" />
      <item caption="Marko 5" value="160" />
      <item caption="Marko 6" value="168" />
      <item caption="Marko 7" value="176" />
      <item caption="Marko 8" value="184" />
      <item caption="Marko 9" value="192" />
      <item caption="Marko 10" value="200" />
      <item caption="Marko 11" value="208" />
      <item caption="Marko 12" value="216" />
      <item caption="Marko 13" value="224" />
      <item caption="Marko 14" value="232" />
      <item caption="Marko 15" value="240" />
      <item caption="Marko 16" value="248" />
    </dropdown>
    <label top="120" left="335" caption=" Speed  " />
    <slider top="136" left="320" height="25" width="65" startvalue="0" endvalue="59" tickfreq="10" smallchange="1" largechange="25" name="prisma_speed" action="SetPrisma" />
    <label top="160" left="200" caption="Fokus" />
    <slider top="176" left="192" height="25" width="193" startvalue="0" endvalue="255" tickfreq="20" smallchange="1" largechange="25" name="fokus_speed" action="SetFokus" channel="8" />
    <label top="200" left="200" caption="Shutter" />
    <dropdown top="216" left="200" width="121" name="shutter" action="SetShutter" channel="9">
      <item caption="Geschlossen" value="0" />
      <item caption="Shutter offen" value="32" />
      <item caption="Strobo Effekt, schneller werdend" value="64" />
      <item caption="Shutter offen" value="96" />
      <item caption="Puls Effekt" value="128" />
      <item caption="Shutter offen" value="160" />
      <item caption="Zufalls Strobe, schneller werdend" value="192" />
      <item caption="Shutter offen" value="224" />
    </dropdown>
    <label top="200" left="335" caption=" Speed  " />
    <slider top="216" left="320" height="25" width="65" startvalue="0" endvalue="95" tickfreq="10" smallchange="1" largechange="25" name="strobe_speed" action="SetShutter" />
    <label top="240" left="200" caption="Dimmer" />
    <slider top="256" left="192" height="25" width="193" startvalue="0" endvalue="255" tickfreq="20" smallchange="1" largechange="25" name="dimmer_speed" action="SetDimmer" channel="10" />
    <label top="280" left="200" caption="Iris" />
    <dropdown top="296" left="200" width="182" name="iris" channel="11">
      <item caption="Puls. öffnen, langsamer werdend" value="192" />
      <item caption="Puls. schließen, schneller werdend" value="224" />
    </dropdown>
    <slider top="296" left="128" height="41" width="65" startvalue="0" endvalue="191" channel="11" />
  </form>
  <code>
    <procedure name="INITCONTROLS">
   !call|GetGeschw$
   !call|GetColor$
   !call|GetGobostat$
   !call|GetGoborot$
   !call|GetRotate$
   !call|GetPrisma$
   !call|GetFokus$
   !call|GetShutter$
   !call|GetDimmer$
</procedure>
    <procedure name="GetGeschw">
 !if|{channel_2} &lt; 1|
  !set_control|geschw|{channel_2}$
  !set_control|geschw_speed|0$
|
 !if|({channel_2} = 15) and ({channel_2} &lt; 226)|
  !set_control|geschw|-1$
  !set_control|geschw_speed|({channel_2} -15)$
 $
$
</procedure>
    <procedure name="SetGeschw">
!if|{geschw}|gt|-1|
 !set_channel|2|{geschw}$
$
!if|{geschw}|eq|-1|
 !set_channel|2|(15+{geschw_speed})$
$


</procedure>
    <procedure name="GetDimmer">
!if|({channel_10} &gt; -1) and ({channel_10} &lt; 256)|
 !set_control|dimmer_speed|{channel_10}$
$
</procedure>
    <procedure name="SetDimmer">
!if|({dimmer_speed} &gt; -1)|
 !set_channel|10|{dimmer_speed}$
$
</procedure>
    <procedure name="GetColor">
 !if|{channel_3} &lt; 128|
 !set_control|color_color|{channel_3}$
 !set_control|color_speed|0$
|
 !if|{channel_3} = 128|
 !set_control|color_color|{channel_3}$
 !set_control|color_speed|0$
$
 !if|({channel_3} &gt; 127) and ({channel_3} &lt; 188)|
  !set_control|color_color|-1$
  !set_control|color_speed|({channel_3}-128)$
 $

  !if|{channel_3} = 194|
 !set_control|color_color|{channel_3}$
 !set_control|color_speed|0$
$
 !if|({channel_3} &gt; 193) and ({channel_3} &lt; 256)|
  !set_control|color_color|-2$
  !set_control|color_speed|({channel_3}-194)$
 $
$
</procedure>
    <procedure name="SetColor">
!if|{color_color}|gt|-1|
 !set_channel|3|{color_color}$
$
 !if|{color_color}|eq|-1|
  !set_channel|3|(128+{color_speed})$
 $

 !if|{color_color}|eq|-2|
  !set_channel|3|(194+{color_speed})$
 $

</procedure>
    <procedure name="GetGobostat">
!if|{channel_4} &lt; 112|
 !set_control|gobos_gobo|{channel_4}$
 !set_control|gobos_speed|0$
|
 !if|({channel_4} = 112) and ({channel_4} &lt; 128)|
  !set_control|gobos_gobo|-1$
  !set_control|gobos_speed|({channel_4}-112)$
 $
 !if|({channel_4} = 128) and ({channel_4} &lt; 144)|
  !set_control|gobos_gobo|-2$
  !set_control|gobos_speed|({channel_4}-128)$
 $
!if|({channel_4} = 144) and ({channel_4} &lt; 160)|
  !set_control|gobos_gobo|-3$
  !set_control|gobos_speed|({channel_4}-144)$
 $
!if|({channel_4} = 160) and ({channel_4} &lt; 176)|
  !set_control|gobos_gobo|-4$
  !set_control|gobos_speed|({channel_4}-160)$
 $
!if|({channel_4} = 176) and ({channel_4} &lt; 192)|
  !set_control|gobos_gobo|-5$
  !set_control|gobos_speed|({channel_4}-176)$
 $
!if|({channel_4} = 192) and ({channel_4} &lt; 208)|
  !set_control|gobos_gobo|-6$
  !set_control|gobos_speed|({channel_4}-192)$
 $
!if|({channel_4} = 208) and ({channel_4} &lt; 224)|
  !set_control|gobos_gobo|-7$
  !set_control|gobos_speed|({channel_4}-208)$
 $
 !if|({channel_4} = 224) and ({channel_4} &lt; 240)|
  !set_control|gobos_gobo|-8$
  !set_control|gobos_speed|({channel_4}-224)$
 $ 
 !if|({channel_4} = 240) and ({channel_4} &lt; 256)|
  !set_control|gobos_gobo|-9$
  !set_control|gobos_speed|({channel_4}-240)$
 $
$
</procedure>
    <procedure name="SetGobo">
!if|{gobos_gobo}|gt|-1|
 !set_channel|4|{gobos_gobo}$
$
!if|{gobos_gobo}|eq|-1|
 !set_channel|4|(112+{gobos_speed})$
$
!if|{gobos_gobo}|eq|-2|
 !set_channel|4|(128+{gobos_speed})$
$
!if|{gobos_gobo}|eq|-3|
 !set_channel|4|(144+{gobos_speed})$
$
!if|{gobos_gobo}|eq|-4|
 !set_channel|4|(160+{gobos_speed})$
$
 !if|{gobos_gobo}|eq|-5|
 !set_channel|4|(176+{gobos_speed})$
$
!if|{gobos_gobo}|eq|-6|
 !set_channel|4|(192+{gobos_speed})$
$
!if|{gobos_gobo}|eq|-7|
 !set_channel|4|(208+{gobos_speed})$
$
!if|{gobos_gobo}|eq|-8|
 !set_channel|4|(224+{gobos_speed})$
$
!if|{gobos_gobo}|eq|-9|
 !set_channel|4|(240+{gobos_speed})$
$

</procedure>
    <procedure name="GetGoborot">
!if|{channel_5} &lt; 70|
 !set_control|gobos_goborot|{channel_5}$
 !set_control|gobos_speedrot|0$
|
 !if|({channel_5} = 70) and ({channel_5} &lt; 90)|
  !set_control|gobos_goborot|-1$
  !set_control|gobos_speedrot|({channel_5}-70)$
 $
 !if|({channel_5} = 90) and ({channel_5} &lt; 110)|
  !set_control|gobos_goborot|-2$
  !set_control|gobos_speedrot|({channel_5}-90)$
 $
!if|({channel_5} = 110) and ({channel_5} &lt; 130)|
  !set_control|gobos_goborot|-3$
  !set_control|gobos_speedrot|({channel_5}-110)$
 $
!if|({channel_5} = 130) and ({channel_5} &lt; 150)|
  !set_control|gobos_goborot|-4$
  !set_control|gobos_speedrot|({channel_5}-130)$
 $
!if|({channel_5} = 150) and ({channel_5} &lt; 170)|
  !set_control|gobos_goborot|-5$
  !set_control|gobos_speedrot|({channel_5}-150)$
 $
!if|({channel_5} = 170) and ({channel_5} &lt; 190)|
  !set_control|gobos_goborot|-6$
  !set_control|gobos_speedrot|({channel_5}-170)$
 $
!if|({channel_5} = 190) and ({channel_5} &lt; 210)|
  !set_control|gobos_goborot|-7$
  !set_control|gobos_speedrot|({channel_5}-190)$
 $
 !if|({channel_5} = 210) and ({channel_5} &lt; 230)|
  !set_control|gobos_goborot|-8$
  !set_control|gobos_speedrot|({channel_5}-210)$
 $ 
 !if|({channel_5} = 230) and ({channel_5} &lt; 256)|
  !set_control|gobos_goborot|-9$
  !set_control|gobos_speedrot|({channel_5}-230)$
 $
$
</procedure>
    <procedure name="SetGoborot">
!if|{gobos_goborot}|gt|-1|
 !set_channel|5|{gobos_goborot}$
$
!if|{gobos_goborot}|eq|-1|
 !set_channel|5|(70+{gobos_speedrot})$
$
!if|{gobos_goborot}|eq|-2|
 !set_channel|5|(90+{gobos_speedrot})$
$
!if|{gobos_goborot}|eq|-3|
 !set_channel|5|(110+{gobos_speedrot})$
$
!if|{gobos_goborot}|eq|-4|
 !set_channel|5|(130+{gobos_speedrot})$
$
 !if|{gobos_goborot}|eq|-5|
 !set_channel|5|(150+{gobos_speedrot})$
$
!if|{gobos_goborot}|eq|-6|
 !set_channel|5|(170+{gobos_speedrot})$
$
!if|{gobos_goborot}|eq|-7|
 !set_channel|5|(190+{gobos_speedrot})$
$
!if|{gobos_goborot}|eq|-8|
 !set_channel|5|(210+{gobos_speedrot})$
$
!if|{gobos_goborot}|eq|-9|
 !set_channel|5|(230+{gobos_speedrot})$
$

</procedure>
    <procedure name="GetRotate">
 !if|{channel_6} &lt; 1|
  !set_control|rotate|{channel_6}$
  !set_control|rotate_speed|0$
|
 !if|({channel_6} = 1) and ({channel_6} &lt; 62)|
  !set_control|rotate|-1$
  !set_control|rotate_speed|({channel_6} -1)$
 $
 !if|({channel_6} = 63) and ({channel_6} &lt; 128)|
  !set_control|rotate|-2$
  !set_control|rotate_speed|({channel_6}-63)$
 $
 
!if|({channel_6} = 128) and ({channel_6} &lt; 188)|
  !set_control|rotate|-3$
  !set_control|rotate_speed|({channel_6}-128)$
 $
 
!if|({channel_6} = 194) and ({channel_6} &lt; 256)|
  !set_control|rotate|-4$
  !set_control|rotate_speed|({channel_6}-194)$
 $
$
</procedure>
    <procedure name="SetRotate">
!if|{rotate}|gt|-1|
 !set_channel|6|{rotate}$
$
!if|{rotate}|eq|-1|
 !set_channel|6|(1+{rotate_speed})$
$

!if|{rotate}|eq|-2|
 !set_channel|6|(63+{rotate_speed})$
$
!if|{rotate}|eq|-3|
 !set_channel|6|(128+{rotate_speed})$
$
!if|{rotate}|eq|-4|
 !set_channel|6|(194+{rotate_speed})$
$

</procedure>
    <procedure name="GetPrisma">
 !if|{channel_7} &lt; 3|
  !set_control|prisma|{channel_7}$
  !set_control|prisma_speed|0$
|
 !if|({channel_7} = 4) and ({channel_7} &lt; 64)|
  !set_control|prisma|-1$
  !set_control|prisma_speed|({channel_7} -4)$
 $
 !if|({channel_7} = 68) and ({channel_7} &lt; 128)|
  !set_control|prisma|-2$
  !set_control|prisma_speed|({channel_7}-68)$
 $
 $
</procedure>
    <procedure name="SetPrisma">
!if|{prisma}|gt|-1|
 !set_channel|7|{prisma}$
$
!if|{prisma}|eq|-1|
 !set_channel|7|(4+{prisma_speed})$
$

!if|{prisma}|eq|-2|
 !set_channel|7|(68+{prisma_speed})$
$
</procedure>
    <procedure name="GetFokus">
!if|({channel_8} &gt; -1) and ({channel_8} &lt; 256)|
 !set_control|fokus_speed|{channel_8}$
$
</procedure>
    <procedure name="SetFokus">
!if|({fokus_speed} &gt; -1)|
 !set_channel|8|{fokus_speed}$
$
</procedure>
    <procedure name="GetShutter">

!if|({channel_9} &gt; -1) and ({channel_9} &lt; 32)|
 !set_control|shutter|0$
 !set_control|strobe_speed|0$

$
!if|({channel_9} &gt; 31) and ({channel_9} &lt; 64)|
 !set_control|shutter|32$
 !set_control|strobe_speed|0$
 $

!if|({channel_9} &gt; 63) and ({channel_9} &lt; 160)|
 !set_control|shutter|-1$
  !set_control|strobe_speed|({channel_9}-64)$
$

!if|({channel_9} &gt; 191) and ({channel_9} &lt; 224)|
 !set_control|shutter|-2$
 !set_control|strobe_speed|(({channel_9}-192)*3)$
$

!if|({channel_9} &gt; 223) and ({channel_9} &lt; 256)|
 !set_control|shutter|-3$
 !set_control|strobe_speed|0$
$

</procedure>
    <procedure name="SetShutter">

!if|({shutter} = 0)|
 !set_channel|9|{shutter}$
 !set_control|10|{dimmer_speed}|0$
$
!if|({shutter} = 32)|
 !set_channel|9|{shutter}$
$
 !if|({shutter} = -1)|
  !set_channel|9|(64+{strobe_speed})$
 $
!if|({shutter} = -2)|
  !set_channel|9|(192+({strobe_speed}/3))$
 $
 !if|({shutter} = -3)|
  !set_channel|9|224$
 $
</procedure>
  </code>
</device>