static void TagInformation(LogixProcessor processor) { //Getting detailed tag information is actually an expensive process. Currently //there is no way to get detailed information about a tag except to request all //the tag information in the PLC. The GetTagInformation will read all the tags //in the PLC, then return the one you are looking for. string address = GetTagAddress(); if (string.IsNullOrEmpty(address)) { return; } LogixTagInfo tagInfo = processor.GetTagInformation(address); if (tagInfo == null) { Console.WriteLine("The tag '" + address + "' could not be found on the processor"); Console.ReadKey(false); return; } Console.WriteLine(tagInfo.ToString()); }
static void TagInformation(LogixProcessor processor) { //Getting detailed tag information is actually an expensive process. Currently //there is no way to get detailed information about a tag except to request all //the tag information in the PLC. The GetTagInformation will read all the tags //in the PLC, then return the one you are looking for. string address = GetTagAddress(); if (string.IsNullOrEmpty(address)) return; LogixTagInfo tagInfo = processor.GetTagInformation(address); if (tagInfo == null) { Console.WriteLine("The tag '" + address + "' could not be found on the processor"); Console.ReadKey(false); return; } Console.WriteLine(tagInfo.ToString()); }