Home
Manage Your Code
Snippet: Hashtable (C#)
Title: Hashtable Language: C#
Description: Hashtable Template Views: 457
Author: Prakash Murthy Date Added: 11/16/2011
Copy Code  
1public static Hashtable MFCCMDHT = new Hashtable()
2        {
3            //Populate hash table with command key and command code
4            {"01", "*)&,VAL"},//MFC Address
5            {"02", "RMN,VAL"},//MFC Model no.
6            {"03", "#)*,VAL"},//MFC MFG No.
7            {"04","RFS,VAL"},//MFC Full scale value
8            {"05","RSM,DIGITAL,ANALOG,SLOW-START"},//MFC Read set mode DIGITAL/ANALOG/SLOW-START
9            {"06","ROC,NO,NC"},//MFC Valve type:  NO: Normally Open, NC: Normally close
10            {"07","RVR,VAL"},//MFC Software revision
11            {"08","ASS,OK"},//MFC Adjust slow start value: ASS500
12            {"09","IST,OK"},//MFC Initiate slow start trigger
13            {"10","ASR,OK"},//MFC Adjust Slow Start Time Ramp: ASR 10
14            {"11","ASI,OK"},//MFC Adjust Slow Start Intial Value
15            {"12","ASF,OK"},//Adjust Slow Start Final Value
16            {"13","AZP,OK"},//Adjust Zero Point
17            {"14","AFC,OK"},//Adjust flow control point
18            {"15","MVO,OK"},//Manual valve open command
19            {"16", "MVC,OK"},//Manual valve close command
20            {"17","MVH,VAL"},//Manual valve hold command
21            {"18","RSI,VAL"},//Read slow start initial value
22            {"19", "RSF,VAL"},//Read slow start final value
23            { "20", "RIF,VAL" },//Read Initial flow control point
24            {"21","RVH,VAL"},//Read valve hold status
25            {"22","RVM,NORMAL,CLOSE,HOLD,OPEN,SET_CLOSE"},//Read valve control mode
26            {"23", "RVV,VAL"},//Read Valve Voltage
27            {"24", "AIF,OK"},//Adjust inital flow control point
28            {"25","RFV,VAL"},//Read Current Flow Value
29            {"26", "RSM,DIGITAL,ANALOG,SLOW-START"},// Read setting mode: Analog, Digital, Slow Start
30            {"27","IAC,OK"}, //Initiate Automatic control
31            {"28","'!+REVERSE"},// Set MFC operation mode to Digital
32            {"29","'!+NORMAL"},// Set MFC operation mode to Analog
33            {"30","RSS,VAL"},// Read Slow Start Value
34            {"31","RSR,VAL"},// Read Slow Start Time Ramp
35            {"32","RFC,VAL"},// Read Flow Control Point
36            {"33","RSTON,001C"},// Read Alarm Status
37            {"34","RSTOFF,001C"},// Read Alarm Status
38
39        };