常用方法
常用方法
常用方法
常用方法
private static void ReadStatusWord(string portName, SmlComServiceClient proxy, Guid clientGuid) { Console.WriteLine("Reading statusword."); var statusWord = proxy.ReadEdlStatusWord(clientGuid, portList.FirstOrDefault(m => m.ComPortName == portName)); Console.WriteLine("Statusword read: [{0}], {1}", Convert.ToString((long)statusWord, 2), statusWord); }