|
|
|
@ -68,7 +68,7 @@ namespace NDSD_Screwdriver
|
|
|
|
|
|
|
|
|
|
public int textRFID = 0;
|
|
|
|
|
|
|
|
|
|
Thread alarmThread;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int FlashIndex = 0;
|
|
|
|
|
|
|
|
|
@ -120,10 +120,7 @@ namespace NDSD_Screwdriver
|
|
|
|
|
{
|
|
|
|
|
flashThread.Abort();
|
|
|
|
|
}
|
|
|
|
|
if (alarmThread != null)
|
|
|
|
|
{
|
|
|
|
|
alarmThread.Abort();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region 按钮
|
|
|
|
@ -162,11 +159,8 @@ namespace NDSD_Screwdriver
|
|
|
|
|
flashThread.Abort();
|
|
|
|
|
}
|
|
|
|
|
FlashThread();
|
|
|
|
|
if (alarmThread != null)
|
|
|
|
|
{
|
|
|
|
|
alarmThread.Abort();
|
|
|
|
|
}
|
|
|
|
|
AlarmThread();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//读取rfid数据
|
|
|
|
|
var ctx = SqlLiteTool.GetDb(AppTool.GetDb());
|
|
|
|
|
var list = ctx.Query<RFIDConfigEntity>().Where(x => x.IsEnable == true).ToList();
|
|
|
|
@ -212,7 +206,7 @@ namespace NDSD_Screwdriver
|
|
|
|
|
monitorEntities[i].RowEntitys[1].Value = RFIDStatesEntities[i].RFIDValue;
|
|
|
|
|
}
|
|
|
|
|
flashThread.Start();
|
|
|
|
|
alarmThread.Start();
|
|
|
|
|
|
|
|
|
|
RefreshRoll();
|
|
|
|
|
RefreshIO();
|
|
|
|
|
}
|
|
|
|
@ -597,21 +591,7 @@ namespace NDSD_Screwdriver
|
|
|
|
|
LogDataGridView.DataSource = RFIDLogsEntitys;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 等待工作指示灯闪烁进程
|
|
|
|
|
/// </summary>
|
|
|
|
|
private void AlarmThread()
|
|
|
|
|
{
|
|
|
|
|
//等待闪烁线程
|
|
|
|
|
alarmThread = new Thread(() =>
|
|
|
|
|
{
|
|
|
|
|
while (true)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
Thread.Sleep(500);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|