ip 增加
This commit is contained in:
@@ -49,7 +49,8 @@ namespace DOAN.ServiceCore
|
||||
.Queryable<Storagelocation>().Where(it => it.Id == index).FirstAsync();
|
||||
|
||||
string[] address = storagelocation.PlcAddress2.Split(",");
|
||||
for (int i = 0; i < address.Length; i++) {
|
||||
for (int i = 0; i < address.Length; i++)
|
||||
{
|
||||
bool result = PLCTool.ReadBit(address[i]);
|
||||
// 写补料日志
|
||||
Inventorylog inventorylog = new Inventorylog();
|
||||
@@ -88,7 +89,7 @@ namespace DOAN.ServiceCore
|
||||
|
||||
|
||||
await Task.Delay(5000, stoppingToken);
|
||||
Console.WriteLine("永驻线程,正在读取plc值 "+ result);
|
||||
Console.WriteLine("永驻线程,正在读取plc值 " + result);
|
||||
|
||||
index++;
|
||||
if (index > 16)
|
||||
|
||||
Reference in New Issue
Block a user