ip 增加

This commit is contained in:
qianhao.xu
2024-11-08 10:48:15 +08:00
parent 77b1f11fdd
commit b3dab7c8d6

View File

@@ -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)