<?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 280</name>
    <vendor>Futurelight</vendor>
    <author>JPK</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" />
    <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" />
    <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" />
    <function channel="14" minvalue="0" maxvalue="255" name="Pan (fine)" fade="no" type="panfine" />
    <function channel="15" minvalue="0" maxvalue="255" name="Tilt (fine)" fade="no" type="tiltfine" />
  </channels>
  <form width="397" height="364">
    <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 13;set 13 50;hold 5500;restore 13" color="#ffff80" />
    <command top="40" left="66" width="80" caption="Lampe aus" clicksequence="save 13;set 13 70;hold 5500;restore 13" color="#ff8080" />
    <command top="40" left="147" width="48" caption="Reset" clicksequence="save 13;set 13 82;hold 5500;restore 13" color="#ff0000" height="17" />
    <label top="240" left="0" caption="Geschwindigkeit" />
    <dropdown top="256" left="0" width="130" name="Geschw_Dropdown" action="SetGeschw">
      <item caption="Abnehm. Geschwindigkeit" value="0" />
      <item caption="Blackout Pan/Tilt-Beweg" value="1" />
      <item caption="Blackout Farb/Gobowechs" value="2" />
      <item caption="Keine Funktion" value="3" />
    </dropdown>
    <label top="280" left="0" caption="Farbe" />
    <dropdown top="295" left="0" width="182" name="Color_Dropdown" action="SetColor">
      <item caption="Weiss" value="0" />
      <item caption="Rot" value="1" />
      <item caption="Hellblau" value="2" />
      <item caption="Grün" value="3" />
      <item caption="Light Yellow" value="4" />
      <item caption="Magenta" value="5" />
      <item caption="Light Red" value="6" />
      <item caption="UV-Filter" value="7" />
      <item caption="Pink" value="8" />
      <item caption="Rainbow vorwärts" value="9" />
      <item caption="keine Rotation" value="10" />
      <item caption="Rainbow rückwärts" value="11" />
    </dropdown>
    <label top="319" left="201" caption="Irisöffnung" />
    <label top="0" left="200" caption="statisches Gobo" />
    <dropdown top="16" left="200" width="121" name="Gobo_Dropdown" action="SetGobo">
      <item caption="Offen" value="0" />
      <item caption="Gobo 1" value="1" />
      <item caption="Gobo 2" value="2" />
      <item caption="Gobo 3" value="3" />
      <item caption="Gobo 4" value="4" />
      <item caption="Gobo 5" value="5" />
      <item caption="Gobo 6" value="6" />
      <item caption="Gobo 7" value="7" />
      <item caption="Gobo 1 Shake" value="8" />
      <item caption="Gobo 2 Shake" value="9" />
      <item caption="Gobo 3 Shake" value="10" />
      <item caption="Gobo 4 Shake" value="11" />
      <item caption="Gobo 5 Shake" value="12" />
      <item caption="Gobo 6 Shake" value="13" />
      <item caption="Gobo 7 Shake" value="14" />
      <item caption="rot. Goborad, schneller werdend" value="15" />
    </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="Gobo_Speed" action="SetGobo" />
    <label top="40" left="200" caption="rotierendes Gobo" />
    <dropdown top="56" left="200" width="121" name="Goborot_Dropdown" action="SetGoborot">
      <item caption="Offen" value="0" />
      <item caption="rot Gobo 1" value="1" />
      <item caption="rot Gobo 2" value="2" />
      <item caption="rot Gobo 3" value="3" />
      <item caption="rot Gobo 4" value="4" />
      <item caption="rot Gobo 5" value="5" />
      <item caption="rot Gobo 6" value="6" />
      <item caption="rot Gobo 7" value="7" />
      <item caption="rot Gobo 1 Shake" value="8" />
      <item caption="rot Gobo 2 Shake" value="9" />
      <item caption="rot Gobo 3 Shake" value="10" />
      <item caption="rot Gobo 4 Shake" value="11" />
      <item caption="rot Gobo 5 Shake" value="12" />
      <item caption="rot Gobo 6 Shake" value="13" />
      <item caption="rot Gobo 7 Shake" value="14" />
      <item caption="rot Goborad kontinuierlich, schneller werdend" value="15" />
    </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="Goborot_Speed" action="SetGoborot" />
    <label top="80" left="200" caption="Goborotation" />
    <dropdown top="96" left="200" width="121" name="Rotate_Dropdown" action="SetRotate">
      <item caption="Indizierung" value="0" />
      <item caption="Vorwärtsrotation, langsamer  werdend, " value="1" />
      <item caption="keine Rotation" value="2" />
      <item caption="Rückwärtsrotation, schneller werdend" value="3" />
    </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_Dropdown" action="SetPrisma">
      <item caption="Offen" value="0" />
      <item caption="Prismarot. vorwärts" value="1" />
      <item caption="keine Rotation" value="2" />
      <item caption="Prismarot. rückwärts" value="3" />
      <item caption="Marko 1" value="4" />
      <item caption="Marko 2" value="5" />
      <item caption="Marko 3" value="6" />
      <item caption="Marko 4" value="7" />
      <item caption="Marko 5" value="8" />
      <item caption="Marko 6" value="9" />
      <item caption="Marko 7" value="10" />
      <item caption="Marko 8" value="11" />
      <item caption="Marko 9" value="12" />
      <item caption="Marko 10" value="13" />
      <item caption="Marko 11" value="14" />
      <item caption="Marko 12" value="15" />
      <item caption="Marko 13" value="16" />
      <item caption="Marko 14" value="17" />
      <item caption="Marko 15" value="18" />
      <item caption="Marko 16" value="19" />
    </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" channel="8" />
    <label top="197" left="200" caption="Shutter" />
    <dropdown top="213" left="200" width="121" name="Shutter_Dropdown" action="SetShutter">
      <item caption="Geschlossen" value="0" />
      <item caption="Shutter offen" value="1" />
      <item caption="Strobo Effekt, schneller werdend" value="2" />
      <item caption="Shutter offen" value="3" />
      <item caption="Puls Effekt" value="4" />
      <item caption="Shutter offen" value="5" />
      <item caption="Zufalls Strobe, schneller werdend" value="6" />
      <item caption="Shutter offen" value="7" />
    </dropdown>
    <label top="197" left="335" caption=" Speed  " />
    <slider top="213" left="320" height="25" width="65" startvalue="0" endvalue="31" tickfreq="10" smallchange="1" largechange="25" name="Shutter_Speed" action="SetShutter" />
    <label top="237" left="200" caption="Dimmer" />
    <slider top="253" left="192" height="25" width="193" startvalue="0" endvalue="255" tickfreq="20" smallchange="1" largechange="25" channel="10" />
    <label top="279" left="202" caption="Iris" />
    <dropdown top="295" left="202" width="182" name="Iris_Dropdown" action="SetIris">
      <item caption="Iris-Öffnung" value="0" />
      <item caption="Puls. öffnen, langsamer werdend" value="1" />
      <item caption="Puls. schließen, schneller werdend" value="2" />
    </dropdown>
    <label top="240" left="136" caption="speed" />
    <slider top="255" left="128" height="41" width="65" startvalue="0" endvalue="225" name="Geschw_Slider" action="SetGeschw" />
    <slider top="336" left="192" height="25" width="193" startvalue="0" endvalue="191" tickfreq="20" smallchange="1" largechange="25" name="Iris_Slider" action="SetIris" />
    <label top="319" left="2" caption="Rainbowspeed" />
    <slider top="336" left="0" height="25" width="180" startvalue="0" endvalue="61" tickfreq="20" smallchange="1" largechange="25" name="color_speed" action="SetColor" />
  </form>
  <code>
    <procedure name="INITCONTROLS">   !call|GetGeschw$
   !call|GetColor$
   !call|GetGobostat$
   !call|GetGoborot$
   !call|GetRotate$
   !call|GetPrisma$
   !call|GetShutter$
   !call|GetIris$
</procedure>
    <procedure name="GetGeschw">!if|({channel_2} &gt; -1) and ({channel_2} &lt; 226)| 
 !set_control|Geschw_Dropdown|0$
 !set_control|Geschw_Slider|({channel_2})$
|
 !if|({channel_2} &gt; 225) and ({channel_2} &lt; 236)|
  !set_control|Geschw_Dropdown|1$
 |
  !if|({channel_2} &gt; 235) and ({channel_2} &lt; 246)|
   !set_control|Geschw_Dropdown|2$
  |
   !if|({channel_2} &gt; 245) and ({channel_2} &lt; 256)|
    !set_control|Geschw_Dropdown|3$
   $
  $
 $
$
   </procedure>
    <procedure name="SetGeschw">!if|({Geschw_Dropdown}=0)|
  !set_channel|2|({Geschw_Slider})$
|
 !if|({Geschw_Dropdown}=1)|
  !set_channel|2|230$
 |
  !if|({Geschw_Dropdown}=2)|
   !set_channel|2|240$
  |
   !if|({Geschw_Dropdown}=3)|
    !set_channel|2|255$
   $
  $
 $
$
   </procedure>
    <procedure name="GetColor">
!if|{channel_3} &lt; 112|
 !set_control|color_Dropdown|(({channel_3})/14)$
 !set_control|color_speed|0$
|
 !if|({channel_3} &gt; 111) and ({channel_3} &lt; 128)|
  !set_control|color_Dropdown|8$
  !set_control|color_speed|0$
 |
  !if|({channel_3} &gt; 127) and ({channel_3} &lt; 188)|
   !set_control|color_Dropdown|9$
   !set_control|color_speed|(((187-({channel_3}))*61)/59)$
  |
   !if|({channel_3} &gt; 187) and ({channel_3} &lt; 194)|
    !set_control|color_Dropdown|10$
    !set_control|color_speed|0$
   |
    !if|({channel_3} &gt; 193) and ({channel_3} &lt; 256)|
     !set_control|color_Dropdown|11$
     !set_control|color_speed|(({channel_3})-194)$
    $
   $
  $
 $
$
</procedure>
    <procedure name="SetColor">!if|({Color_Dropdown}&lt;8)|
  !set_channel|3|(({Color_Dropdown}*14)+5)$
|
 !if|({Color_Dropdown}=8)|
  !set_channel|3|120$
 |
  !if|({Color_Dropdown}=9)|
   !set_channel|3|(187-((({color_speed})*59)/61))$
  |
   !if|({Color_Dropdown}=10)|
    !set_channel|3|190$
   |
    !if|({Color_Dropdown}=11)|
     !set_channel|3|(194+{color_speed})$
    $
   $
  $
 $
$</procedure>
    <procedure name="GetGobostat">
!if|{channel_4} &lt; 112|
 !set_control|Gobo_Dropdown|(({channel_4})/14)$
 !set_control|Gobo_Speed|0$
|
 !if|({channel_4} &gt; 111) and ({channel_4} &lt; 128)|
  !set_control|Gobo_Dropdown|8$
  !set_control|Gobo_Speed|({channel_4}-112)$
 $
 !if|({channel_4} &gt; 127) and ({channel_4} &lt; 144)|
  !set_control|Gobo_Dropdown|9$
  !set_control|Gobo_Speed|({channel_4}-128)$
 $
!if|({channel_4} &gt; 143) and ({channel_4} &lt; 160)|
  !set_control|Gobo_Dropdown|10$
  !set_control|Gobo_Speed|({channel_4}-144)$
 $
!if|({channel_4} &gt; 159) and ({channel_4} &lt; 176)|
  !set_control|Gobo_Dropdown|11$
  !set_control|Gobo_Speed|({channel_4}-160)$
 $
!if|({channel_4} &gt; 175) and ({channel_4} &lt; 192)|
  !set_control|Gobo_Dropdown|12$
  !set_control|Gobo_Speed|({channel_4}-176)$
 $
!if|({channel_4} &gt; 191) and ({channel_4} &lt; 208)|
  !set_control|Gobo_Dropdown|13$
  !set_control|Gobo_Speed|({channel_4}-192)$
 $
!if|({channel_4} &gt; 207) and ({channel_4} &lt; 224)|
  !set_control|Gobo_Dropdown|14$
  !set_control|Gobo_Speed|({channel_4}-208)$
 $
 !if|({channel_4} &gt; 223) and ({channel_4} &lt; 256)|
  !set_control|Gobo_Dropdown|15$
  !set_control|Gobo_Speed|((({channel_4})-224)/2)$
 $ 
$
</procedure>
    <procedure name="SetGobo">
!if|({Gobo_Dropdown} &lt; 8)|
 !set_channel|4|(({Gobo_Dropdown}*14)+5)$
$
!if|{Gobo_Dropdown}|eq|8|
 !set_channel|4|(112+{Gobo_Speed})$
$
!if|{Gobo_Dropdown}|eq|9|
 !set_channel|4|(128+{Gobo_Speed})$
$
!if|{Gobo_Dropdown}|eq|10|
 !set_channel|4|(144+{Gobo_Speed})$
$
!if|{Gobo_Dropdown}|eq|11|
 !set_channel|4|(160+{Gobo_Speed})$
$
 !if|{Gobo_Dropdown}|eq|12|
 !set_channel|4|(176+{Gobo_Speed})$
$
!if|{Gobo_Dropdown}|eq|13|
 !set_channel|4|(192+{Gobo_Speed})$
$
!if|{Gobo_Dropdown}|eq|14|
 !set_channel|4|(208+{Gobo_Speed})$
$
!if|{Gobo_Dropdown}|eq|15|
 !set_channel|4|(224+(({Gobo_Speed})*2))$
$
</procedure>
    <procedure name="GetGoborot">
!if|{channel_5} &lt; 80|
 !set_control|Goborot_Dropdown|(({channel_5})/10)$
 !set_control|Goborot_Speed|0$
|
 !if|({channel_5} &gt; 79) and ({channel_5} &lt; 100)|
  !set_control|Goborot_Dropdown|8$
  !set_control|Goborot_Speed|({channel_5}-80)$
 $
 !if|({channel_5} &gt; 99) and ({channel_5} &lt; 120)|
  !set_control|Goborot_Dropdown|9$
  !set_control|Goborot_Speed|({channel_5}-100)$
 $
!if|({channel_5} &gt; 119) and ({channel_5} &lt; 140)|
  !set_control|Goborot_Dropdown|10$
  !set_control|Goborot_Speed|({channel_5}-120)$
 $
!if|({channel_5} &gt; 139) and ({channel_5} &lt; 160)|
  !set_control|Goborot_Dropdown|11$
  !set_control|Goborot_Speed|({channel_5}-140)$
 $
!if|({channel_5} &gt; 159) and ({channel_5} &lt; 180)|
  !set_control|Goborot_Dropdown|12$
  !set_control|Goborot_Speed|({channel_5}-160)$
 $
!if|({channel_5} &gt; 179) and ({channel_5} &lt; 200)|
  !set_control|Goborot_Dropdown|13$
  !set_control|Goborot_Speed|({channel_5}-180)$
 $
!if|({channel_5} &gt; 199) and ({channel_5} &lt; 220)|
  !set_control|Goborot_Dropdown|14$
  !set_control|Goborot_Speed|({channel_5}-200)$
 $
 !if|({channel_5} &gt; 219) and ({channel_5} &lt; 256)|
  !set_control|Goborot_Dropdown|15$
  !set_control|Goborot_Speed|((({channel_5}-220)*19)/35)$
 $ 
$
</procedure>
    <procedure name="SetGoborot">
!if|({Goborot_Dropdown}&lt;8)|
 !set_channel|5|(({Goborot_Dropdown})*10)$
$
!if|{Goborot_Dropdown}|eq|8|
 !set_channel|5|(80+{Goborot_Speed})$
$
!if|{Goborot_Dropdown}|eq|9|
 !set_channel|5|(100+{Goborot_Speed})$
$
!if|{Goborot_Dropdown}|eq|10|
 !set_channel|5|(120+{Goborot_Speed})$
$
!if|{Goborot_Dropdown}|eq|11|
 !set_channel|5|(140+{Goborot_Speed})$
$
 !if|{Goborot_Dropdown}|eq|12|
 !set_channel|5|(160+{Goborot_Speed})$
$
!if|{Goborot_Dropdown}|eq|13|
 !set_channel|5|(180+{Goborot_Speed})$
$
!if|{Goborot_Dropdown}|eq|14|
 !set_channel|5|(200+{Goborot_Speed})$
$
!if|{Goborot_Dropdown}|eq|15|
 !set_channel|5|(220+((({Goborot_Speed})*35)/19))$
$</procedure>
    <procedure name="GetRotate">!if|({channel_6} &gt; -1) and ({channel_6} &lt; 128)|
 !set_control|Rotate_Dropdown|0$
 !set_control|Rotate_Speed|((({channel_6})*61)/127)$
$
!if|({channel_6} &gt; 127) and ({channel_6} &lt; 190)|
 !set_control|Rotate_Dropdown|1$
 !set_control|Rotate_Speed|({channel_6}-128)$
$
!if|({channel_6} &gt; 189) and ({channel_6} &lt; 194)|
 !set_control|Rotate_Dropdown|2$
 !set_control|Rotate_Speed|0$
$
!if|({channel_6} &gt; 193) and ({channel_6} &lt; 256)|
 !set_control|Rotate_Dropdown|3$
 !set_control|Rotate_Speed|({channel_6}-194)$
$

</procedure>
    <procedure name="SetRotate">
!if|{Rotate_Dropdown}|eq|0|
 !set_channel|6|((({Rotate_Speed})*127)/61)$
$
!if|{Rotate_Dropdown}|eq|1|
 !set_channel|6|(128+{Rotate_Speed})$
$
!if|{Rotate_Dropdown}|eq|2|
 !set_channel|6|191$
$
!if|{Rotate_Dropdown}|eq|3|
 !set_channel|6|(194+{Rotate_Speed})$
$
</procedure>
    <procedure name="GetPrisma">
!if|{channel_7} &lt; 3|
 !set_control|Prisma_Dropdown|0$
 !set_control|Prisma_Speed|0$
$
!if|({channel_7} &gt; 4) and ({channel_7} &lt; 64)|
 !set_control|Prisma_Dropdown|1$
 !set_control|Prisma_Speed|({channel_7} -4)$
$
!if|({channel_7} &gt; 68) and ({channel_7} &lt; 128)|
 !set_control|Prisma_Dropdown|2$
 !set_control|Prisma_Speed|0$
$
!if|({channel_7} &gt; 68) and ({channel_7} &lt; 128)|
 !set_control|Prisma_Dropdown|3$
 !set_control|Prisma_Speed|({channel_7}-68)$
$
!if|({channel_7} &gt; 127) and ({channel_7} &lt; 256)|
 !set_control|Prisma_Dropdown|((({channel_7})/8)-12)$
 !set_control|Prisma_Speed|0$
$
</procedure>
    <procedure name="SetPrisma">
!if|({Prisma_Dropdown}=0)|
 !set_channel|7|0$
$
!if|({Prisma_Dropdown}=1)|
 !set_channel|7|(4+{Prisma_Speed})$
$
!if|({Prisma_Dropdown}=2)|
 !set_channel|7|66$
$
!if|({Prisma_Dropdown}=3)|
 !set_channel|7|(68+{Prisma_Speed})$
$
!if|({Prisma_Dropdown}&gt;3)|
 !set_channel|7|(((12+({Prisma_Dropdown}))*8)+4)$
$
</procedure>
    <procedure name="GetShutter">!if|({channel_9} &gt; -1) and ({channel_9} &lt; 32)|
 !set_control|Shutter_Dropdown|0$
 !set_control|Shutter_Speed|0$
$
!if|({channel_9} &gt; 31) and ({channel_9} &lt; 64)|
 !set_control|Shutter_Dropdown|1$
 !set_control|Shutter_Speed|0$
 $
!if|({channel_9} &gt; 63) and ({channel_9} &lt; 96)|
 !set_control|Shutter_Dropdown|2$
  !set_control|Shutter_Speed|({channel_9}-64)$
$
!if|({channel_9} &gt; 95) and ({channel_9} &lt; 128)|
 !set_control|Shutter_Dropdown|3$
 !set_control|Shutter_Speed|0$
$
!if|({channel_9} &gt; 127) and ({channel_9} &lt; 160)|
 !set_control|Shutter_Dropdown|4$
 !set_control|Shutter_Speed|({channel_9}-128)$
$
!if|({channel_9} &gt; 159) and ({channel_9} &lt; 192)|
 !set_control|Shutter_Dropdown|5$
 !set_control|Shutter_Speed|0$
$
!if|({channel_9} &gt; 191) and ({channel_9} &lt; 224)|
 !set_control|Shutter_Dropdown|6$
 !set_control|Shutter_Speed|({channel_9}-192)$
$
!if|({channel_9} &gt; 223) and ({channel_9} &lt; 256)|
 !set_control|Shutter_Dropdown|7$
 !set_control|Shutter_Speed|0$
$</procedure>
    <procedure name="SetShutter">!if|({Shutter_Dropdown} = 0)|
 !set_channel|9|0$
$
!if|({Shutter_Dropdown} = 1)|
 !set_channel|9|47$
$
!if|({Shutter_Dropdown} = 2)|
 !set_channel|9|(64+({Shutter_Speed}))$
$
!if|({Shutter_Dropdown} = 3)|
 !set_channel|9|111$
$
!if|({Shutter_Dropdown} = 4)|
 !set_channel|9|(128+({Shutter_Speed}))$
$
!if|({Shutter_Dropdown} = 5)|
 !set_channel|9|175$
$
!if|({Shutter_Dropdown} = 6)|
 !set_channel|9|(192+({Shutter_Speed}))$
$
!if|({Shutter_Dropdown} = 7)|
 !set_channel|9|255$
$</procedure>
    <procedure name="GetIris">!if|({channel_11} &gt; -1) and ({channel_11} &lt; 192)| 
 !set_control|Iris_Dropdown|0$
 !set_control|Iris_Slider|({channel_11})$
|
 !if|({channel_11} &gt; 191) and ({channel_11} &lt; 224)|
  !set_control|Iris_Dropdown|1$
  !set_control|Iris_Slider|(((({channel_11})-192)*191)/31)$
 |
  !if|({channel_11} &gt; 223) and ({channel_11} &lt; 256)|
   !set_control|Iris_Dropdown|2$
   !set_control|Iris_Slider|(((({channel_11})-224)*191)/31)$
  $
 $
$
   </procedure>
    <procedure name="SetIris">!if|({Iris_Dropdown}=0)|
  !set_channel|11|({Iris_Slider})$
|
 !if|({Iris_Dropdown}=1)|
  !set_channel|11|(((({Iris_Slider})*31)/191)+192)$
 |
  !if|({Iris_Dropdown}=2)|
   !set_channel|11|(((({Iris_Slider})*31)/191)+224)$
  $
 $
$
   </procedure>
  </code>
</device>