diff --git a/addons/EGFramework/Module/ProtocolExtension/EGModbusExtension.cs b/addons/EGFramework/Module/ProtocolExtension/EGModbusExtension.cs index 4a701c1..a6c38f2 100644 --- a/addons/EGFramework/Module/ProtocolExtension/EGModbusExtension.cs +++ b/addons/EGFramework/Module/ProtocolExtension/EGModbusExtension.cs @@ -783,7 +783,7 @@ namespace EGFramework{ DeviceAddress = protocolBytes[0]; FunctionCode = protocolBytes[1]; FunctionType = (ModbusFunctionType)protocolBytes[1]; - if(FunctionCode == 0x83){ + if(FunctionCode >= 0x80){ ErrorCode = (ModbusErrorCode)protocolBytes[2]; IsError = true; return true;