error log in try/catch test s7net
This commit is contained in:
@@ -223,8 +223,10 @@ namespace Siemens_S7_Test
|
||||
{
|
||||
memByteRead = currPLC.ReadBytes(DataType.DataBlock, memoria.DbNum, memoria.indiceMem, numByte);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
catch(Exception exc)
|
||||
{
|
||||
lg.Error(exc);
|
||||
}
|
||||
sw.Stop();
|
||||
// salvo risultati
|
||||
PerfStats.addValue((double)sw.ElapsedMilliseconds);
|
||||
|
||||
Reference in New Issue
Block a user