//////////////////////////////   
// Studio Due CS-4 Mode 3 (20channel, 16 bit mode)
//
//  Jon Lenard
//  9/14/09
//  Modified from CS-2

Fixture 
   manufacturer = "STUDIODUE"
   name = "CS4-3"
   version = 1.0
//  fullmanufacturer = "Studio Due"
//  fullname = "CS-4 Mode 3 (20ch)"
//  mode = 3
//  description = ""

	attribute
		name = i"DIMMER1"
		channel = 1
		homeVal = 0
		
	attribute
		name = i"DIMMER2"
		channel = 2
		homeVal = 0

	attribute
		name = i"DIMMER3"
		channel = 3
		homeVal = 0
		
	attribute
		name = i"DIMMER4"
		channel = 4
		homeVal = 0
		
	attribute
		name = "PAN"
		channel = 5
		fineChan = 6
		homeVal = 32768
		
	attribute
		name = "TILT"
		channel = 7
		fineChan = 8
		homeVal = 32768
		
	attribute
		name = "PAN-1"
		channel = 9
		fineChan = 10
		homeVal = 32768
		
	attribute
		name = "PAN-2"
		channel = 11
		fineChan = 12
		homeVal = 32768
		
	attribute
		name = "PAN-3"
		channel = 13
		fineChan = 14
		homeVal = 32768
		
	attribute
		name = "PAN-4"
		channel = 15
		fineChan = 16
		homeVal = 32768
		
	attribute
		name = "PAN-MODE"
		channel = 17
		homeVal = 0
		
	attribute
		name = "MSPEED"
		channel = 18
		homeVal = 0
		
	attribute
		name = "CONTROL"
		channel = 19
		homeVal = 0

	attribute
		name = "AUX"
		channel = 20
		homeVal = 0

///////////////////////////////////////////////////////////////////////////

	parameter
		name = "-G.PAN-"
		displayerNum = 1
		type = F
		attribList = 5
		stop = (   0:    0),N,"Exclude"
		stop = (M  1:65535),2,"G.Pan="
		
	parameter
		name = "-G.TILT-"
		displayerNum = 2
		type = F
		attribList = 7
		stop = (M  0:65535),2,"G.Ti@="

		
	parameter
		name = "-PAN1-"
		displayerNum = 3
		type = F
		attribList = 9
		stop = (M  0:65535),2,"Pan1="
		
	parameter
		name = "-PAN2-"
		displayerNum = 4 
		type = F
		attribList = 11 
		stop = (M  0:65535),2,"Pan2="
				
	parameter
		name = "-PAN3-"
		displayerNum = 5
		type = F
		attribList = 13
		stop = (M  0:65535),2,"Pan3="
		
	parameter
		name = "-PAN4-"
		displayerNum = 6 
		type = F
		attribList = 15 
		stop = (M  0:65535),2,"Pan4="
		
	parameter
		name = "-DIM.1-"
		displayerNum = 7
		type = B
		attribList = 1
		stop = (M  0:255),2,"Dim1="
		
	parameter
		name = "-DIM.2-"
		displayerNum = 8
		type = B
		attribList = 2 
		stop = (M  0:255),2,"Dim2="

	parameter
		name = "-DIM.3-"
		displayerNum = 9
		type = B
		attribList = 3
		stop = (M  0:255),2,"Dim3="
		
	parameter
		name = "-DIM.4-"
		displayerNum = 10
		type = B
		attribList = 4 
		stop = (M  0:255),2,"Dim4="
				
//------------------------------------------
		
	parameter
		name = "-PANMODE-"
		displayerNum = 11
		type = F
		attribList = 17
		stop = (   0: 63),N,"Pan Nrml"
		stop = (  64:127),N,"Pan Md 1"
		stop = ( 128:255),N,"Pan Md 2"
		
	parameter
		name = "-AUX-"
		displayerNum = 12 
		type = B
		attribList = 20
		stop = (M  0:255),2,"Aux="
		
//------------------------------------------		 
		
	parameter
		name = "-MSPEED-"
		displayerNum = 23
		type = F
		attribList = 18
		stop = (M255:  0),2,"MSpd="

	parameter
		name = "-CONTROL-"
		displayerNum = 24
		type = N
		attribList = 19
		stop = (   0:127),N,"Run Mode"
		stop = (R192:255),N,"Run Mode"
		stop = ( 128:191),N,"Reset"

end
