예제 #1
0
 private static T ReadVariable <T>(this AdsClient beckhoff, ISymbol symbol)
 {
     try
     {
         return((T)beckhoff.ReadValue(symbol));
     }
     catch (Exception e)
     {
         Log.Logger.Error(e, $"Error while reading symbol {symbol.InstancePath}");
         throw;
     }
 }