Fix
This commit is contained in:
@@ -32,7 +32,7 @@ namespace Modbus.Net.Modbus
|
||||
}
|
||||
else if (receiveBytes.Length == 6)
|
||||
{
|
||||
if (receiveBytes[1] == 1 || receiveBytes[1] == 2)
|
||||
if (receiveBytes[1] == 1 || receiveBytes[1] == 3)
|
||||
{
|
||||
writeContent = null;
|
||||
return new ReceiveDataDef()
|
||||
|
||||
@@ -46,8 +46,12 @@ namespace Modbus.Net
|
||||
var decBytes = BytesDecact(content);
|
||||
var explainContent = DataExplain(decBytes);
|
||||
var returnBytes = DataProcess(explainContent);
|
||||
var extBytes = BytesExtend(returnBytes);
|
||||
return extBytes;
|
||||
if (returnBytes != null)
|
||||
{
|
||||
var extBytes = BytesExtend(returnBytes);
|
||||
return extBytes;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -61,7 +61,7 @@ Manage several types of Protocol to a same calling interface.
|
||||
|
||||
### Machine
|
||||
|
||||
Shows the Hardware PLC or other types of machine and implement a high level send and receive api.
|
||||
Shows the Hardware DCS or other types of machine and implement a high level send and receive api.
|
||||
|
||||
### Job
|
||||
|
||||
|
||||
Reference in New Issue
Block a user