Fix
This commit is contained in:
@@ -32,7 +32,7 @@ namespace Modbus.Net.Modbus
|
|||||||
}
|
}
|
||||||
else if (receiveBytes.Length == 6)
|
else if (receiveBytes.Length == 6)
|
||||||
{
|
{
|
||||||
if (receiveBytes[1] == 1 || receiveBytes[1] == 2)
|
if (receiveBytes[1] == 1 || receiveBytes[1] == 3)
|
||||||
{
|
{
|
||||||
writeContent = null;
|
writeContent = null;
|
||||||
return new ReceiveDataDef()
|
return new ReceiveDataDef()
|
||||||
|
|||||||
@@ -46,8 +46,12 @@ namespace Modbus.Net
|
|||||||
var decBytes = BytesDecact(content);
|
var decBytes = BytesDecact(content);
|
||||||
var explainContent = DataExplain(decBytes);
|
var explainContent = DataExplain(decBytes);
|
||||||
var returnBytes = DataProcess(explainContent);
|
var returnBytes = DataProcess(explainContent);
|
||||||
var extBytes = BytesExtend(returnBytes);
|
if (returnBytes != null)
|
||||||
return extBytes;
|
{
|
||||||
|
var extBytes = BytesExtend(returnBytes);
|
||||||
|
return extBytes;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ Manage several types of Protocol to a same calling interface.
|
|||||||
|
|
||||||
### Machine
|
### 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
|
### Job
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user