首次上传

This commit is contained in:
hanqiangqiang
2026-06-15 10:56:30 +08:00
commit b0213b94d6
4160 changed files with 736101 additions and 0 deletions
@@ -0,0 +1,42 @@
using MECF.Framework.Common.Communications;
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Temps
{
public abstract class StrongTempHandler : HandlerBase
{
public StrongTemp Device { get; }
protected StrongTempHandler(StrongTemp device, byte[] commandvalue) : base(commandvalue)
{
Device = device;
}
}
public class StrongTempQueryHandler : StrongTempHandler
{
public StrongTempQueryHandler(StrongTemp device, string name, byte[] commandvalue)
: base(device, commandvalue)
{
Name = name;//"Query Temp";
}
public override bool HandleMessage(MessageBase msg, out bool handled)
{
var result = msg as BinaryMessage;
handled = false;
if (result.IsError)
{
Device.ResponseError();
return false;
}
if (!result.IsComplete)
{
return false;
}
Device.ResponseQuery(Name, result.RawMessage);
return true;
}
}
}