Add two verbose messages in OPC
This commit is contained in:
@@ -155,6 +155,7 @@ namespace Modbus.Net.OPC
|
|||||||
if (answerTag != null)
|
if (answerTag != null)
|
||||||
{
|
{
|
||||||
var result = await Client.ReadAsync<object>(answerTag);
|
var result = await Client.ReadAsync<object>(answerTag);
|
||||||
|
Log.Verbose($"Opc Machine {ConnectionToken} Read opc tag {answerTag} for value {result}");
|
||||||
return new OpcParamOut
|
return new OpcParamOut
|
||||||
{
|
{
|
||||||
Success = true,
|
Success = true,
|
||||||
@@ -181,6 +182,7 @@ namespace Modbus.Net.OPC
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
await Client.WriteAsync(answerTag, value);
|
await Client.WriteAsync(answerTag, value);
|
||||||
|
Log.Verbose($"Opc Machine {ConnectionToken} Write opc tag {answerTag} for value {value}");
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user