/////////////////////////////////////////
//  D.T.S. XR9 Spot 18 channel mode (16 bit)
// RM Nov 2006

/// The Strobe, Control and Speed channels are based on the XR7 fixture
/// as the Beta XR9 DMX chart does not have any information.

fixture
	manufacturer = "DTS"
	name = "xr9"
	version = 0.90
//  fullmanufacturer = "DTS"
//  fullname = "XR9 Spot 18ch"
//  mode = e
//  description = ""

	attribute
		name = "PAN"
		channel = 1
		fineChan = 2
		homeVal = 32768

	attribute
		name = "TILT"
		channel = 3
		fineChan = 4
		homeVal = 32768

	attribute
		name = "SPEED"
		channel = 5
		homeVal = 0

	attribute
		name = "INTENSITY"
		channel = 6

	attribute
		name = "SHUTTER"
		channel = 7
		homeVal = 255

	attribute
		name = "COLOUR1"
		channel = 8
		homeVal = 0

	attribute
		name = "COLOUR2"
		channel = 9
		homeVal = 0

	attribute
		name = "GOBO1"
		channel = 10
		homeVal = 0

	attribute
		name = "GOBO1<>"
		channel = 11
		homeVal = 190

	attribute
		name = "GOBO2"
		channel = 12
		homeVal = 0
	
	attribute
		name = "IRIS"
		channel = 13
		homeVal = 0

	attribute
		name = "PRISM"
		channel = 14
		homeVal = 0

	attribute
		name = "FOCUS"
		channel = 15
		homeVal = 128

	attribute
		name = "ZOOM"
		channel = 16
		homeVal = 128

	attribute
		name = "FROST"
		channel = 17
		homeVal = 0

	attribute
		name = "CONTROL"
		channel = 18
		homeVal = 0

/////////////////////////////////////////////////////////////////////////

	parameter
		name = "-PAN-"					
		displayerNum = 1 
		type = F
		attribList = 1
		stop = (M    0:65535),D,0,540,"Pan="

	parameter
		name = "-TILT-"					
		displayerNum = 2 
		type = F
		attribList = 3
		stop = (M    0:65535),D,0,270,"Ti@="

	parameter
		name = "-COLOUR1-"					
		displayerNum = 3 
		type = C
		attribList = 8
		stop = (   0: 10),N,"White1"
		stop = (  11: 21),N,"White1+"
		stop = (  22: 32),N,"Color1.2"
		stop = (  33: 43),N,"Color1.2+"
		stop = (  44: 54),N,"Color1.3"
		stop = (  55: 65),N,"Color1.3+"
		stop = (  66: 76),N,"Color1.4"
		stop = (  77: 87),N,"Color1.4+"
		stop = (  88: 98),N,"Color1.5"
		stop = (  99:109),N,"Color1.5+"
		stop = ( 110:120),N,"Color1.6"
		stop = ( 121:131),N,"Color1.6+"
		stop = ( 132:142),N,"Color1.7"
		stop = ( 143:153),N,"Color1.7+"
		stop = ( 154:164),N,"Color1.8"
		stop = ( 167:175),N,"Color1.8+"
		stop = ( 176:186),N,"Color1.9"
		stop = ( 187:197),N,"Color1.9+"
		stop = (M198:224),1,"C1Whl>:"
		stop = ( 225:228),N,"C1WhlStop"
		stop = (M229:255),1,"C1Whl<:"
	
	parameter
		name = "-COLOUR2-"
		displayerNum = 4 
		type = C
		attribList = 9
		stop = (   0: 10),N,"White2"
		stop = (  11: 21),N,"White2+"
		stop = (  22: 32),N,"Color2.2"
		stop = (  33: 43),N,"Color2.2+"
		stop = (  44: 54),N,"Color2.3"
		stop = (  55: 65),N,"Color2.3+"
		stop = (  66: 76),N,"Color2.4"
		stop = (  77: 87),N,"Color2.4+"
		stop = (  88: 98),N,"Color2.5"
		stop = (  99:109),N,"Color2.5+"
		stop = ( 110:120),N,"Color2.6"
		stop = ( 121:131),N,"Color2.6+"
		stop = ( 132:142),N,"Color2.7"
		stop = ( 143:153),N,"Color2.7+"
		stop = ( 154:164),N,"Color2.8"
		stop = ( 167:175),N,"Color2.8+"
		stop = ( 176:186),N,"Color2.9"
		stop = ( 187:197),N,"Color2.9+"
		stop = (M198:224),1,"C2Whl>:"  
		stop = ( 225:228),N,"C2WhlStop"
		stop = (M229:255),1,"C2Whl<:"  
		
	parameter
		name = "-GOBO1-"					
		displayerNum = 5
		type = B
		attribList = 10
		stop = (   0: 25),N,"No Gobo1"
		stop = (  26: 51),N,"Gobo 1.1"
		stop = (  52: 77),N,"Gobo 1.2"
		stop = (  78:103),N,"Gobo 1.3"
		stop = ( 104:129),N,"Gobo 1.4"
		stop = ( 130:155),N,"Gobo 1.5"
		stop = ( 156:181),N,"Gobo 1.6"
		stop = ( 182:207),N,"Gobo 1.7"
		stop = (M208:255),2,"G1Whl>:"

	parameter
		name = "-GOBO1<>-"					
		displayerNum = 6
		type = B
		attribList = 11
		stop = (M  0:127),D,0,360,"Idx:"
		stop = (M128:180),2,"Gobo<:"
		stop = ( 181:202),N,"GoboStop"
		stop = (M203:255),2,"Gobo>:"
		
//--------------------------------------------

	parameter
		name = "-GOBO2-"
		displayerNum = 7
		type = B
		attribList = 12
		stop = (   0: 15),N,"No Gobo2"
		stop = (  16: 31),N,"Gobo 2.1"
		stop = (  32: 47),N,"Gobo 2.2"
		stop = (  48: 63),N,"Gobo 2.3"
		stop = (  64: 79),N,"Gobo 2.4"
		stop = (  80: 95),N,"Gobo 2.5"
		stop = (  96:111),N,"Gobo 2.6"
		stop = ( 112:127),N,"Gobo 2.7"
		stop = ( 128:143),N,"Gobo 2.8"
		stop = ( 144:159),N,"Gobo 2.9"
		stop = ( 160:175),N,"Gobo 2.10"
		stop = ( 176:191),N,"Gobo 2.11"
		stop = (M192:255),1,"G2Whl>:"		

	parameter
		name = "-IRIS-"
		displayerNum = 8 
		type = B
		attribList = 13 
		stop = (M132:  0),2,"Iris:"		
		stop = (M159:133),1,"iPulse:"
		stop = (M160:186),1,"iPulsC:"
		stop = (M187:213),1,"iPulsO:"
		stop = (M214:234),1,"izPulsC:"
		stop = (M235:255),1,"izPulsO:"
		
	parameter
		name = "-FOCUS-"
		displayerNum = 9
		type = B
		attribList = 15
		stop = (M  0:255),2,"Focus="

	parameter
		name = "-PRISM-"					
		displayerNum = 10
		type = B
		attribList = 14
		stop = (   0: 63),N,"No Prism"
		stop = (  64:127),N,"Prism" 
		stop = (M128:191),2,"Prsm<:"
		stop = (M192:255),2,"Prsm>:"

	parameter
		name = "-FROST-"
		displayerNum = 11
		type = B
		attribList = 17
		stop = (   0:  9),N,"No Frost"
		stop = (  10:127),N,"Frost1"
		stop = ( 128:255),N,"Frost2"

	parameter
		name = "-ZOOM-"					
		displayerNum = 12
		type = B
		attribList = 16
		stop = (   0: 84),N,"Zoom 15"
		stop = (  85:170),N,"Zoom16.5"
		stop = ( 171:255),N,"Zoom 18"

//-----------------------------------------

	parameter
		name = "-SHUTTER-"					
		displayerNum = 13
		type = B
		attribList = 7
		stop = (   0:  9),N,"Shtr Clsd"
		stop = ( 234:255),N,"Shtr Open"
		stop = (M 24:107),1,"Strobe:"
		stop = (M108:163),1,"PulseO:"
		stop = (M164:219),1,"PulseC:" 
		stop = (  10: 23),N,"RndStrobe"		
		stop = ( 220:227),N,"C.Gb.Blk"
		stop = ( 228:233),N,"PTBlack"

//-----------------------------------------

	Parameter
		name = "-SPEED-"
		displayerNum = 23
		type = F
		attribList = 5
		stop = (   0: 10),N,"Track"
		stop = (  11: 25),N,"Fast"
		stop = (M 26:127),2,"Speed:"
		stop = (M128:247),2,"Var:"
		stop = ( 248:245),N,"Slow"

	parameter
		name = "-CNTRL-"					
		displayerNum = 24 
		type = N
		attribList = 16
		stop = (   0: 85),N,"Run"
//		stop = ( ),N,"Lamp Off"
//		stop = ( ),N,"Lamp On"
		stop = (  86:170),N,"Reset Mtr"
		stop = ( 171:255),N,"Total Rst"

end

