﻿<?xml version="1.0" encoding="utf-8" ?>
<device image="bild" type="DMXDevice" dmxcversion="3" ddfversion="1.0">
  <information>
    <modell>ColorSpot 250 AT (Mode 3) UNSTABLE</modell>
    <vendor>Robe</vendor>
    <author>Justus Berger</author>
	<!-- ColorSpot 250 AT-DMX Protocol-version 2.1 Mode 3 (20CH) -->
  </information>
  <functions>
    <shutter dmxchannel="17" >
	  <!-- sind mehrere "open"-Definitionen sinnvoll? nein, dmxc verwndet stets die erste-->
      <step type="closed" mindmx="0" maxdmx="31" />
      <step type="open"   mindmx="32" maxdmx="63" />
	  <step type="open"   mindmx="96" maxdmx="127" />
    </shutter>
    <strobo dmxchannel="17" >
      <range type="linear" mindmx="64" maxdmx="95" minval="0.5" maxval="15" />
      <range type="random" mindmx="192" maxdmx="223" minval="0.5" maxval="15" />
    </strobo>
	<!-- how to implement iris pulse? not yet implmented in lumos -->
	<!--
	<pulse dmxchannel="17">
		<range type="linear" mindmx="128" maxdmx="159" minval="0.5" maxval="15" />
	</pulse>
	
	<iris dmxchannel="17" >
		<step type="stop" mindmx="127" maxdmx="127" />
		<range type="cw"  mindmx="128" maxdmx="143" minval="0.1" maxval="8"/>
		<range type="ccw" mindmx="159" maxdmx="144" minval="0.1" maxval="8"/>
    </iris>
	-->
	<!-- reset nicht auf Default-Val sonder auf 0 -->
  	<raw dmxchannel="17" name="Pulse" defaultval="8">
		<!-- <step type="open" mindmx="127" maxdmx="127" name="Pulse open"/>
		    <range type="linear" mindmx="127" maxdmx="143" minval="0.1" maxval="8" caption="open"/>
		    <range type="linear" mindmx="159" maxdmx="144" minval="0.1" maxval="8" caption="close"/> -->
		<range type="linear" mindmx="127" maxdmx="160" minval="-8" maxval="8" caption="pulsepeed"/>
	</raw>
	
	
	<!-- Dimmer benötiggt keinen Range, oder? -->
    <dimmer dmxchannel="18" finedmxchannel="19" />

    <colorwheel dmxchannel="8">
	  <!-- Proportional with dmxfinechannel -->
	  <!-- Das Colorwheel kann sich beliebig postionieren, wid das unterstützt? -->
	  
	  <!-- Step ohne Halfcolors -->
      <step type="color" val="#FFFFFF" caption="White" mindmx="0" maxdmx="0" />
	  <step type="color" val="#006600" caption="Dark Green" mindmx="130" maxdmx="135" />
	  <step type="color" val="#FF0505" caption="Red" mindmx="136" maxdmx="141" />
      <step type="color" val="#007FFF" caption="Light azure" mindmx="142" maxdmx="147" />
      <step type="color" val="#EE0070" caption="Magenta" mindmx="148" maxdmx="153" />
      <step type="color" val="#000033" caption="UV filter" mindmx="154" maxdmx="159" />
      <step type="color" val="#FFFF00" caption="Yellow" mindmx="160" maxdmx="165" />
	  <step type="color" val="#00FF00" caption="Green" mindmx="166" maxdmx="171" />
	  <step type="color" val="#FF67D4" caption="Pink" mindmx="172" maxdmx="177" />
	  <step type="color" val="#0000FF" caption="Blue" mindmx="178" maxdmx="183" />
	  <step type="color" val="#CC0000" caption="Deep red" mindmx="184" maxdmx="189" />
      <rainbow>
        <range type="cw" mindmx="215" maxdmx="190" minval="0.1" maxval="8" />
        <range type="ccw" mindmx="218" maxdmx="243" minval="0.1" maxval="8" />
      </rainbow>
	  <random>
		<range type="linear" mindmx="255" maxdmx="250" minval="0.1" maxval="1"/>
	  </random>
    </colorwheel>
	
	<raw dmxchannel="8" finedmxchannel="9" name="ContinousColor" defaultval="0">
		<range type="linear" mindmx="0" maxdmx="128" minval="0.1" maxval="1" caption="cw"/>
	</raw>
	
	<gobowheel dmxchannel="10" >
		<goboshake>
			<!-- oder handler ab 0 -->
			<range type="linear" minval="0" maxval="3"/>
		</goboshake>
		<!-- Sind zwei Step-Steps zuviel? -->
		<goborotation dmxchannel="11" >
			<step type="stop" mindmx="0" maxdmx="0" />
			<step type="stop" mindmx="128" maxdmx="129" />
			<range type="cw" mindmx="127" maxdmx="1" minval="0.1" maxval="8" />
			<range type="ccw" mindmx="130" maxdmx="255" minval="0.1" maxval="8" />
		</goborotation>
		<goboindex dmxchannel="11" finedmxchannel="12">
			<range mindmx="0" maxdmx="255" range="360" />
		</goboindex>
		<step type="open" caption="Open" mindmx="0" maxdmx="3" />
		<step type="gobo" caption="Gobo 1" mindmx="4" maxdmx="7" val="Robe_15020141.png">
			<!-- Ist das vom Prinzip her richtig? -->
			<!-- Warum einmal <step for=>und einmal <step handler=>? Das erschließt sich mir nicht -->
			<step for="goborotation" mindmx="32" maxdmx="35" />
			<range handler="goboshake"    mindmx="60" maxdmx="69" minval="0" maxval="3" />
		</step>
		<step type="gobo" caption="Gobo 2" mindmx="8" maxdmx="11" val="Robe_15020140.png">
			<step for="goborotation" mindmx="36" maxdmx="39" />
			<range handler="goboshake"    mindmx="70" maxdmx="79" minval="0" maxval="3" />
		</step>
		<step type="gobo" caption="Gobo 3" mindmx="12" maxdmx="15" val="Robe_15020139.png">
			<step for="goborotation" mindmx="40" maxdmx="43" />
			<range handler="goboshake"    mindmx="80" maxdmx="89" minval="0" maxval="3" />
		</step>
		<step type="gobo" caption="Gobo 4" mindmx="16" maxdmx="19" val="Robe_15020138.png">
			<step for="goborotation" mindmx="44" maxdmx="47" />
			<range handler="goboshake"    mindmx="90" maxdmx="99" minval="0" maxval="3" />
		</step>
		<step type="gobo" caption="Gobo 5" mindmx="20" maxdmx="23" val="Robe_15020137.png">
			<step for="goborotation" mindmx="48" maxdmx="51" />
			<range handler="goboshake"   mindmx="100" maxdmx="109" minval="0" maxval="3" />
		</step>
		<!-- kein gobo 6 weil vormals selbe value -->
		<step type="gobo" caption="Gobo 6" mindmx="24" maxdmx="27" val="Robe_15040011.png">
			<step for="goborotation" mindmx="52" maxdmx="55" />
			<range handler="goboshake"   mindmx="110" maxdmx="119" minval="0" maxval="3" />
		</step>
		<step type="gobo" caption="Gobo 7" mindmx="28" maxdmx="31" val="Robe_15030016.png">
			<step for="goborotation" mindmx="56" maxdmx="59" />
			<range handler="goboshake"   mindmx="120" maxdmx="129" minval="0" maxval="3" />
		</step>
		<wheelrotation>
			<range type="cw" mindmx="221" maxdmx="202" minval="0.1" maxval="2" />
			<!-- Ist hier eine stop-step nötig? -->
			<step type="stop" mindmx="222" maxdmx="223" />
			<range type="ccw" mindmx="224" maxdmx="243" minval="0.1" maxval="2" />
		</wheelrotation>
		<random>
			<range type="linear" mindmx="255" maxdmx="250" minval="0.1" maxval="1"/>
		</random>
	</gobowheel>
	
	<!-- Wenn der range von 0-255 geht, ist dann eine extra Definition nötig? -->
    <focus dmxchannel="15" finedmxchannel="16">
		<range mindmx="0" maxdmx="255" />
    </focus>

	<prism dmxchannel="13">
		<prismrotation dmxchannel="14">
			<step type="stop" mindmx="0" maxdmx="0" />
			<range type="cw" mindmx="127" maxdmx="1" minval="0.1" maxval="1.25" />
			<step type="stop" mindmx="128" maxdmx="129" />
			<range type="ccw" mindmx="130" maxdmx="255" minval="0.1" maxval="1.25" />
		</prismrotation>
		<step type="open" caption="Open" mindmx="0" maxdmx="19" />
		<step type="prism" caption="3 Facette" mindmx="20" maxdmx="159" />
		<!-- <range type="prism" caption="Macro" mindmx="160" maxdmx="255" minval="1" maxval="10"  /> -->
	</prism>
	
    <position>
      <pan dmxchannel="0" finedmxchannel="1" >
		<range range="530" />
      </pan>
      <tilt dmxchannel="2" finedmxchannel="3" >
		<range range="280" />
      </tilt>
    </position>
	
	<ptspeed dmxchannel="4">
		<range type="linear" mindmx="255" maxdmx="0" minval="0" maxval="100" />
	</ptspeed>
	
	<!-- open: Pan/Tilt macro(6) + macro speed(7) ; Gobowheel with index AND shake; iris pulse ; random strobe -->
	
  </functions>
  <procedures>
	<reset>
		<set dmxchannel="5" value="200" />
		<hold value="4000" />
		<restore dmxchannel="5" />
	</reset>
	<lamp_on>
		<set dmxchannel="5" value="130" />
		<hold value="4000" />
		<restore dmxchannel="5" />
	</lamp_on>
	<lamp_off>
		<set dmxchannel="5" value="230" />
		<hold value="4000" />
		<restore dmxchannel="5" />
	</lamp_off>
  </procedures>
</device>
