<?xml version="1.0"?>
<device image="Scanner.gif" initsequence="set 0 128;set 1 128;set 2 128;set 3 128;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 128;set 14 32;set 15 255">
	<information>
		<comment>Mode 1</comment>
		<name>Pointe</name>
		<vendor>Robe</vendor>
		<author>Jens-Peter Kühn</author>
		<version>1</version>
	</information>
	<channels>
		<function channel="0" minvalue="0" maxvalue="255" name="Pan" fade="yes" type="pan" />
		<function channel="1" minvalue="0" maxvalue="255" name="Pan (Fine)" fade="yes" type="panfine" />
		<function channel="2" minvalue="0" maxvalue="255" name="Tilt" fade="yes" type="tilt" />
		<function channel="3" minvalue="0" maxvalue="255" name="Tilt (Fine)" fade="yes" type="tiltfine" />
		<function channel="4" minvalue="0" maxvalue="255" name="Speed" fade="no" />
		<function channel="5" minvalue="0" maxvalue="255" name="Funktion" fade="no" />
		<function channel="6" minvalue="0" maxvalue="255" name="Color" fade="no" type="color" />
		<function channel="7" minvalue="0" maxvalue="255" name="Color (Fine)" fade="no" />
		<function channel="8" minvalue="0" maxvalue="255" name="Effect Speed" fade="no" />
		<function channel="9" minvalue="0" maxvalue="255" name="stat. Gobo" fade="no" type="gobo" />
		<function channel="10" minvalue="0" maxvalue="255" name="rot. Gobo" fade="no" type="gobo" />
		<function channel="11" minvalue="0" maxvalue="255" name="Goborotation" fade="no" />
		<function channel="12" minvalue="0" maxvalue="255" name="Goborotation (Fine)" fade="no"  />
		<function channel="13" minvalue="0" maxvalue="255" name="Prism" fade="no" />
		<function channel="14" minvalue="0" maxvalue="255" name="Prism Index" fade="no" />
		<function channel="15" minvalue="0" maxvalue="255" name="Frost" fade="no" />
		<function channel="16" minvalue="0" maxvalue="255" name="Zoom" fade="no" />
		<function channel="17" minvalue="0" maxvalue="255" name="Zoom fine" fade="no" />
		<function channel="18" minvalue="0" maxvalue="255" name="Focus" fade="yes" />
		<function channel="19" minvalue="0" maxvalue="255" name="Focus fine" fade="yes" />
		<function channel="20" minvalue="0" maxvalue="255" name="Autofocus" fade="no" />
		<function channel="21" minvalue="0" maxvalue="255" name="Shutter" fade="no" />
		<function channel="22" minvalue="0" maxvalue="255" name="Dimmer intensity" fade="yes" />
		<function channel="23" minvalue="0" maxvalue="255" name="Dimmer intensity fine" fade="yes" />
	</channels>
	<form width="394" height="320">
		<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="40" left="8" height="177" width="177" />
		<label top="0" left="200" caption="Farbe:" />
		<dropdown top="16" left="208" width="113" name="color_color" action="SetColor">
			<item caption="Weiss" value="0" />
			<item caption="Turquoise" value="10" />
			<item caption="Rot" value="21" />
			<item caption="Cyan" value="32" />
			<item caption="Grün" value="42" />
			<item caption="Magenta" value="53" />
			<item caption="Hellblau" value="64" />
			<item caption="Gelb" value="74" />
			<item caption="Grün" value="85" />
			<item caption="Pink" value="96" />
			<item caption="Blau" value="106" />
			<item caption="Orange" value="117" />
			<item caption="Rainbow UZ" value="-1" />
			<item caption="Rainbow GUZ" value="-2" />
		</dropdown>
		<slider top="16" left="320" height="25" width="65" startvalue="0" endvalue="62" tickfreq="9" smallchange="1" largechange="5" name="color_speed" action="SetColor" />
		<label top="40" left="200" caption="Statische Gobos:" />
		<dropdown top="56" left="208" width="113" name="gobos_gobo" action="SetGobo">
			<item caption="Offen" value="0" />
			<item caption="Gobo 1 (Multicolor Dichro)" value="128" />
			<item caption="Gobo 2 (Dichro)" value="135" />
			<item caption="Gobo 3 (Dichro)" value="141" />
			<item caption="Gobo 4" value="154" />
			<item caption="Gobo 5" value="167" />
			<item caption="Gobo 6" value="180" />
			<item caption="Gobo 7" value="192" />
			<item caption="Gobo 8" value="205" />
			<item caption="Gobo 9" value="218" />
			<item caption="Gobo 10" value="231" />
			<item caption="Gobo 11" value="244" />
			<item caption="Gobowechsel UZ" value="-1" />
			<item caption="Gobowechsel GUZ" value="-2" />
		</dropdown>
		<slider top="56" left="320" height="25" width="65" startvalue="0" endvalue="30" tickfreq="9" smallchange="1" largechange="5" name="gobos_speed" action="SetGobo" />
		<label top="80" left="200" caption="Rotierende Gobos:" />
		<dropdown top="96" left="208" width="113" name="gobos_rgobo" action="SetRGobo">
			<item caption="Offen" value="0" />
			<item caption="Gobo 1 dichroic" value="32" />
			<item caption="Gobo 2 glass" value="64" />
			<item caption="Gobo 3 glass" value="96" />
			<item caption="Gobo 4 glass" value="128" />
			<item caption="Gobo 5 glass" value="160" />
			<item caption="Gobo 6 glass" value="192" />
			<item caption="Gobowechsel UZ" value="-1" />
		</dropdown>
		<slider top="96" left="320" height="25" width="65" startvalue="0" endvalue="31" tickfreq="9" smallchange="1" largechange="5" name="gobos_rspeed" action="SetRGobo" />
		<label top="120" left="200" caption="Goborotation:" />
		<dropdown top="136" left="208" width="70" name="rotate" action="setrotate">
			<item caption="Index" value="-1" />
			<item caption="UZ" value="0" />
			<item caption="GUZ" value="1" />
		</dropdown>
		<slider top="136" left="280" height="25" width="95" startvalue="0" endvalue="62" tickfreq="10" smallchange="5" largechange="25" name="rotate_speed" action="setrotate" />
		<label top="160" left="200" caption="Shutter:" />
		<dropdown top="176" left="208" width="113" name="shutter" action="setshutter">
			<item caption="Offen" value="32" />
			<item caption="Geschlossen" value="0" />
			<item caption="Strobe" value="-1" />
			<item caption="Strobe Zufall" value="-2" />
			<item caption="Pulse" value="-3" />
		</dropdown>
		<slider top="176" left="320" height="25" width="65" startvalue="0" endvalue="31" tickfreq="10" smallchange="5" largechange="25" name="shutter_speed" action="setshutter" />
		<label top="200" left="200" caption="Iris:" />
		<dropdown top="216" left="208" width="113" name="iris" action="setiris">
			<item caption="Offen" value="0" />
			<item caption="Geschlossen" value="180" />
			<item caption="Diameter" value="-1" />
			<item caption="Pulsierend schliessen" value="-2" />
			<item caption="Pulsierend öffnen" value="-3" />
		</dropdown>
		<slider top="216" left="320" height="25" width="65" startvalue="0" endvalue="31" tickfreq="10" smallchange="5" largechange="25" name="iris_speed" action="setiris" />
		<label top="240" left="200" caption="Prisma:" />
		<dropdown top="256" left="208" width="97" name="prism_mode" action="SetPrism">
			<item caption="Prisma aus" value="0" />
			<item caption="Rotieren UZ" value="-1" />
			<item caption="Rotieren GUZ" value="-2" />
			<item caption="Prisma stopp" value="127" />
		</dropdown>
		<slider top="256" left="304" height="25" width="81" startvalue="0" endvalue="125" tickfreq="20" smallchange="10" largechange="20" name="prism_speed" action="SetPrism" />
		<label top="280" left="200" caption="Effekt:" />
		<dropdown top="296" left="208" width="177" channel="8">
			<item caption="Offen" value="0" />
			<item caption="Frostfilter" value="96" />
			<item caption="Dreiseitprisma" value="128" />
			<item caption="3200K Korrektur" value="160" />
			<item caption="5600K Korrektur" value="192" />
			<item caption="UV-Filter" value="224" />
		</dropdown>
		<line x1="232" y1="8" x2="384" y2="8" />
		<line x1="232" y1="48" x2="384" y2="48" />
		<line x1="240" y1="88" x2="384" y2="88" />
		<line x1="245" y1="128" x2="384" y2="128" />
		<line x1="245" y1="168" x2="384" y2="168" />
		<line x1="225" y1="208" x2="384" y2="208" />
		<line x1="225" y1="248" x2="384" y2="248" />
		<line x1="225" y1="288" x2="384" y2="288" />
		<line x1="192" y1="0" x2="192" y2="320" />
		<line x1="0" y1="220" x2="187" y2="220" />
		<line x1="0" y1="256" x2="187" y2="256" />
		<line x1="0" y1="291" x2="187" y2="291" />
		<label top="224" left="0" caption="Helligkeit:" />
		<slider top="224" left="50" height="30" width="140" startvalue="0" endvalue="255" tickfreq="51" smallchange="10" largechange="50" channel="15" />
		<label top="260" left="0" caption="Fokus:" />
		<slider top="260" left="50" height="30" width="140" startvalue="0" endvalue="255" tickfreq="51" smallchange="50" largechange="100" channel="13" />
		<command top="300" left="0" width="185" caption="Reset" clicksequence="save 5;set 5 130;hold 5500;restore 5" />
	</form>
	<code>
		<procedure name="INITCONTROLS">
   !call|GetColor$
   !call|GetGobo$
   !call|GetRGobo$
   !call|GetPrism$
   !call|GetRotate$
   !call|GetShutter$
   !call|GetIris$
		</procedure>
		<procedure name="GetColor">
!if|{channel_6} &lt; 128|
 !set_control|color_color|{channel_6}$
 !set_control|color_speed|0$
|
 !if|({channel_6} &gt; 128) and ({channel_6} &lt; 191)|
  !set_control|color_color|-1$
  !set_control|color_speed|({channel_6}-128)$
 $
 !if|({channel_6} &gt; 192) and ({channel_6} &lt; 256)|
  !set_control|color_color|-2$
  !set_control|color_speed|({channel_6}-193)$
 $
$
		</procedure>
		<procedure name="SetColor">
!if|{color_color}|gt|-1|
 !set_channel|6|{color_color}$
|
 !if|{color_color}|eq|-1|
  !set_channel|6|(128+{color_speed})$
 $
 !if|{color_color}|eq|-2|
  !set_channel|6|(193+{color_speed})$
 $
$
		</procedure>
		<procedure name="GetGobo">
!if|({channel_7} &gt; 128) or ({channel_7} &lt; 63)|
 !set_control|gobos_gobo|{channel_7}$
 !set_control|gobos_speed|0$
|
 !if|({channel_7} &gt; 63) and ({channel_7} &lt; 96)|
  !set_control|gobos_gobo|-1$
  !set_control|gobos_speed|({channel_7}-64)$
 $
 !if|({channel_7} &gt; 96) and ({channel_7} &lt; 128)|
  !set_control|gobos_gobo|-2$
  !set_control|gobos_speed|({channel_7}-97)$
 $
$
		</procedure>
		<procedure name="SetGobo">
!if|{gobos_gobo}|eq|0|
 !set_channel|7|{gobos_gobo}$
$
!if|{gobos_gobo}|gt|127|
 !set_channel|7|{gobos_gobo}$
|
 !if|{gobos_gobo}|eq|-1|
  !set_channel|7|(64+{gobos_speed})$
 $
 !if|{gobos_gobo}|eq|-2|
  !set_channel|7|(97+{gobos_speed})$
 $
$

		</procedure>
		<procedure name="GetRGobo">
!if|{channel_10} &lt; 224|
 !set_control|gobos_rgobo|{channel_10}$
 !set_control|gobos_rspeed|0$
|
 !if|({channel_10} &gt; 223) and ({channel_10} &lt; 256)|
  !set_control|gobos_rgobo|-1$
  !set_control|gobos_rspeed|({channel_10}-224)$
 $
$
		</procedure>
		<procedure name="SetRGobo">
!if|{gobos_rgobo}|eq|-1|
  !set_channel|10|(224+{gobos_rspeed})$
|
!if|{gobos_rgobo}|lt|224|
 !set_channel|10|{gobos_rgobo}$
$

$

		</procedure>
		<procedure name="GetRotate">

 !if|({channel_11} &gt; 127) and ({channel_11} &lt; 192)|
  !set_control|rotate_speed|({channel_11}-128)$
  !set_control|rotate|0$
 $
 !if|({channel_11} &gt; 192) and ({channel_11} &lt; 256)|
  !set_control|rotate_speed|({channel_11}-193)$
  !set_control|rotate|1$
 $
!if|({channel_11} &gt; -1) and ({channel_11} &lt; 128)|
  !set_control|rotate_speed|({channel_11} / 2.04838)$
  !set_control|rotate|-1$
 $

		</procedure>
		<procedure name="SetRotate">

!if|{rotate}|eq|-1|
 !set_channel|11|({rotate_speed}*2.04838)$
$
!if|{rotate}|eq|0|
 !set_channel|11|(128+{rotate_speed})$
$
!if|({rotate} = 1)|
 !set_channel|11|(193+{rotate_speed})$
$
		</procedure>
		<procedure name="GetShutter">

!if|({channel_14} &gt; -1) and ({channel_14} &lt; 64)|
 !set_control|shutter|{channel_14}$
$

!if|({channel_14} &gt; 63) and ({channel_14} &lt; 96)|
 !set_control|shutter|-1$
 !set_control|shutter_speed|({channel_14}-64)$
$
 !if|({channel_14} &gt; 191) and ({channel_14} &lt; 224)|
 !set_control|shutter|-2$
 !set_control|shutter_speed|({channel_14}-192)$
$
 !if|({channel_14} &gt; 127) and ({channel_14} &lt; 160)|
 !set_control|shutter|-3$
 !set_control|shutter_speed|({channel_14}-128)$
$

		</procedure>
		<procedure name="SetShutter">
!if|{shutter}|gt|-1|
 !set_channel|14|{shutter}$
$
 !if|{shutter}|eq|-1|
  !set_channel|14|(64+{shutter_speed})$
 $
 !if|{shutter}|eq|-2|
  !set_channel|14|(192+{shutter_speed})$
 $
 !if|{shutter}|eq|-3|
  !set_channel|14|(128+{shutter_speed})$
 $

		</procedure>
		<procedure name="GetIris">

!if|({channel_12} &gt; 179) and ({channel_12} &lt; 192)|
 !set_control|iris|180$
$

!if|({channel_12} = 0)|
 !set_control|iris|0$
$


!if|({channel_12} &gt; 0) and ({channel_12} &lt; 128)|
 !set_control|iris|-1$
 !set_control|iris_speed|({channel_12} /5)$
$
!if|({channel_12} &gt; 191) and ({channel_12} &lt; 224)|
 !set_control|iris|-2$
 !set_control|iris_speed|({channel_12}-192)$
$
!if|({channel_12} &gt; 223) and ({channel_12} &lt; 256)|
 !set_control|iris|-3$
 !set_control|iris_speed|({channel_12}-224)$
$



		</procedure>
		<procedure name="SetIris">

!if|{iris}|gt|-1|
 !set_channel|12|{iris}$
$
 !if|{iris}|eq|-1|
  !set_channel|12|(({iris_speed}*5.7419)+1)$
 $
 !if|{iris}|eq|-2|
  !set_channel|12|(192+{iris_speed})$
 $
 !if|{iris}|eq|-3|
  !set_channel|12|(224+{iris_speed})$
 $

		</procedure>
		<procedure name="GetPrism">
!if|{channel_9} |eq|0|
 !set_control|prism_mode|0$
 !set_control|prism_speed|0$
$
!if|({channel_9} &gt; 126) and ({channel_9} &lt; 129)|
 !set_control|prism_mode|127$
 !set_control|prism_speed|0$
$
!if|({channel_9} &gt; 0) and ({channel_9} &lt; 127)|
 !set_control|prism_mode|-1$
 !set_control|prism_speed|({channel_9}-1)$
$
!if|({channel_9} &gt; 128) and ({channel_9} &lt; 255)|
 !set_control|prism_mode|-2$
 !set_control|prism_speed|({channel_9}-129)$
$

		</procedure>
		<procedure name="SetPrism">
!if|{prism_mode}|eq|0|
 !set_channel|9|0$
$
!if|{prism_mode}|eq|127|
 !set_channel|9|127$
|
 !if|{prism_mode}|eq|-1|
  !set_channel|9|({prism_speed}+1)$
 $
 !if|{prism_mode}|eq|-2|
  !set_channel|9|(129+{prism_speed})$
 $
$
		</procedure>
	</code>
	<help>
Robe Scan 575 XT mit Mode 1 (16Bit)
	</help>
</device>