截取字符串
word = word.Substring(word.Length - 7, 4);
转成二进制
word = "0000"+ Convert.ToString(Int32.Parse(word, System.Globalization.NumberStyles.HexNumber), 2);
16进制转10进制(int)
Int32.Parse( word , System.Globalization.NumberStyles.HexNumber )
10进制转2进制
Convert.ToString(str,2)