V1.0.3 软件根据硬件协议增加保存当前电压值的功能
This commit is contained in:
@ -1697,12 +1697,53 @@ namespace WCS.BLL.HardWare
|
||||
}
|
||||
//当前库位未记录MatSn
|
||||
if (string.IsNullOrEmpty(storeInfo.CurrentMatSn))
|
||||
{
|
||||
if (data[TcpCleint.PreFixLength + 6] == 0x0D &&
|
||||
data[TcpCleint.PreFixLength + 7] == 0x0D &&
|
||||
data[TcpCleint.PreFixLength + 8] == 0x0D &&
|
||||
data[TcpCleint.PreFixLength + 9] == 0x0D)
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
var historyVoltage = new StoreInfoHistoryVoltage()
|
||||
{
|
||||
StoreId = storeInfo.Id,
|
||||
StoreCode = storeInfo.StoreCode,
|
||||
ShelfTypeId = storeInfo.ShelfTypeId,
|
||||
ModuleId = storeInfo.ModuleId,
|
||||
ModuleCode = storeInfo.ModuleCode,
|
||||
ShelfId = storeInfo.ShelfId,
|
||||
ShelfCode = storeInfo.ShelfCode,
|
||||
BoardId = storeInfo.BoardId,
|
||||
LightNumber = storeInfo.LightNumber,
|
||||
Priority = storeInfo.Priority,
|
||||
CurrentMatSn = storeInfo.CurrentMatSn,
|
||||
CurrentVoltage = storeInfo.CurrentVoltage,
|
||||
StandardVoltage = storeInfo.StandardVoltage,
|
||||
OffsetVoltage = storeInfo.OffsetVoltage,
|
||||
BigShelfCode = storeInfo.BigShelfCode,
|
||||
R = storeInfo.R,
|
||||
C = storeInfo.C,
|
||||
Wei = storeInfo.Wei,
|
||||
GroupName = "出库自动标定记录历史电压",
|
||||
CreateTime = DateTime.Now,
|
||||
};
|
||||
//自动保存最新的电压值
|
||||
storeInfo.CurrentVoltage = (data[TcpCleint.PreFixLength + 4] << 8) + data[TcpCleint.PreFixLength + 5];
|
||||
DbHelp.db.Insertable(historyVoltage).ExecuteCommand();
|
||||
DbHelp.db.Updateable(storeInfo).ExecuteCommand();
|
||||
});
|
||||
Thread.Sleep(10);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
//该库位是需要出库的库位,物料被多次取出or给了多个正常出库信号
|
||||
Logs.Write($"该库位是需要出库的库位,物料被反复取出or给了多个正常出库信号,库位{storeInfo.StoreCode}", LogsType.Outstore);
|
||||
//暂不进行处理
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
//不是本次出库需要出的物料
|
||||
if (!CurrentOutStoreMatSNs.Contains(storeInfo.CurrentMatSn))
|
||||
|
BIN
版本履历表.xlsx
BIN
版本履历表.xlsx
Binary file not shown.
@ -8,8 +8,8 @@
|
||||
<LangVersion>latest</LangVersion>
|
||||
<Company>重庆盟讯电子科技有限公司</Company>
|
||||
<Copyright>Copyright © 2024</Copyright>
|
||||
<AssemblyVersion>1.0.2</AssemblyVersion>
|
||||
<FileVersion>1.0.2</FileVersion>
|
||||
<AssemblyVersion>1.0.3</AssemblyVersion>
|
||||
<FileVersion>1.0.3</FileVersion>
|
||||
<ApplicationIcon>Resources\Logo.ico</ApplicationIcon>
|
||||
<Authors>重庆盟讯电子科技有限公司</Authors>
|
||||
<Product>智能仓储WCS管理系统</Product>
|
||||
|
Reference in New Issue
Block a user