|
@@ -1884,10 +1884,8 @@ namespace LogoForceTestApp.Modules.MainModule.ViewModels
|
|
|
p2 = d1.ToString() + d2.ToString() + d3.ToString();
|
|
|
Thread.Sleep(200);
|
|
|
tcpNet.Write("1025.1", false);
|
|
|
- _logger.Information("{@Message}", $"工位2_writefalse2");
|
|
|
}
|
|
|
tcpNet.Write("1025.1", false);
|
|
|
- _logger.Information("{@Message}", $"工位2_writefalse3");
|
|
|
}));
|
|
|
}
|
|
|
public void RecordOneMessage3(object sender, StateEventArgs e)//3
|
|
@@ -1941,10 +1939,8 @@ namespace LogoForceTestApp.Modules.MainModule.ViewModels
|
|
|
p3 = d1.ToString() + d2.ToString() + d3.ToString();
|
|
|
Thread.Sleep(200);
|
|
|
tcpNet.Write("1025.2", false);
|
|
|
- _logger.Information("{@Message}", $"工位3_writefalse2");
|
|
|
}
|
|
|
tcpNet.Write("1025.2", false);
|
|
|
- _logger.Information("{@Message}", $"工位3_writefalse3");
|
|
|
}));
|
|
|
}
|
|
|
public void RecordOneMessage4(object sender, StateEventArgs e)//4
|
|
@@ -1998,10 +1994,8 @@ namespace LogoForceTestApp.Modules.MainModule.ViewModels
|
|
|
p4 = d1.ToString() + d2.ToString() + d3.ToString();
|
|
|
Thread.Sleep(200);
|
|
|
tcpNet.Write("1025.3", false);
|
|
|
- _logger.Information("{@Message}", $"工位4_writefalse2");
|
|
|
}
|
|
|
tcpNet.Write("1025.3", false);
|
|
|
- _logger.Information("{@Message}", $"工位4_writefalse3");
|
|
|
}));
|
|
|
}
|
|
|
public void RecordOneMessage5(object sender, StateEventArgs e)//5
|
|
@@ -2055,10 +2049,8 @@ namespace LogoForceTestApp.Modules.MainModule.ViewModels
|
|
|
p5 = d1.ToString() + d2.ToString() + d3.ToString();
|
|
|
Thread.Sleep(200);
|
|
|
tcpNet.Write("1025.4", false);
|
|
|
- _logger.Information("{@Message}", $"工位5_writefalse2");
|
|
|
}
|
|
|
tcpNet.Write("1025.4", false);
|
|
|
- _logger.Information("{@Message}", $"工位5_writefalse3");
|
|
|
}));
|
|
|
}
|
|
|
public void RecordOneMessage6(object sender, StateEventArgs e)//6
|
|
@@ -2112,10 +2104,8 @@ namespace LogoForceTestApp.Modules.MainModule.ViewModels
|
|
|
p6 = d1.ToString() + d2.ToString() + d3.ToString();
|
|
|
Thread.Sleep(200);
|
|
|
tcpNet.Write("1025.5", false);
|
|
|
- _logger.Information("{@Message}", $"工位6_writefalse2");
|
|
|
}
|
|
|
tcpNet.Write("1025.5", false);
|
|
|
- _logger.Information("{@Message}", $"工位6_writefalse3");
|
|
|
}));
|
|
|
}
|
|
|
public void RecordOneMessage7(object sender, StateEventArgs e)//7
|
|
@@ -2169,10 +2159,8 @@ namespace LogoForceTestApp.Modules.MainModule.ViewModels
|
|
|
p7 = d1.ToString() + d2.ToString() + d3.ToString();
|
|
|
Thread.Sleep(200);
|
|
|
tcpNet.Write("1025.8", false);
|
|
|
- _logger.Information("{@Message}", $"工位7_writefalse2");
|
|
|
}
|
|
|
tcpNet.Write("1025.8", false);
|
|
|
- _logger.Information("{@Message}", $"工位7_writefalse3");
|
|
|
}));
|
|
|
}
|
|
|
public void RecordOneMessage8(object sender, StateEventArgs e)//8
|
|
@@ -2226,10 +2214,8 @@ namespace LogoForceTestApp.Modules.MainModule.ViewModels
|
|
|
p8 = d1.ToString() + d2.ToString() + d3.ToString();
|
|
|
Thread.Sleep(200);
|
|
|
tcpNet.Write("1025.9", false);
|
|
|
- _logger.Information("{@Message}", $"工位8_writefalse2");
|
|
|
}
|
|
|
tcpNet.Write("1025.9", false);
|
|
|
- _logger.Information("{@Message}", $"工位8_writefalse3");
|
|
|
}));
|
|
|
}
|
|
|
public void RecordOneMessage9(object sender, StateEventArgs e)//9
|
|
@@ -2283,10 +2269,8 @@ namespace LogoForceTestApp.Modules.MainModule.ViewModels
|
|
|
p9 = d1.ToString() + d2.ToString() + d3.ToString();
|
|
|
Thread.Sleep(200);
|
|
|
tcpNet.Write("1025.10", false);
|
|
|
- _logger.Information("{@Message}", $"工位9_writefalse2");
|
|
|
}
|
|
|
tcpNet.Write("1025.10", false);
|
|
|
- _logger.Information("{@Message}", $"工位9_writefalse3");
|
|
|
}));
|
|
|
}
|
|
|
public void RecordOneMessage10(object sender, StateEventArgs e)//10
|
|
@@ -2340,10 +2324,8 @@ namespace LogoForceTestApp.Modules.MainModule.ViewModels
|
|
|
p10 = d1.ToString() + d2.ToString() + d3.ToString();
|
|
|
Thread.Sleep(200);
|
|
|
tcpNet.Write("1025.11", false);
|
|
|
- _logger.Information("{@Message}", $"工位10_writefalse2");
|
|
|
}
|
|
|
tcpNet.Write("1025.11", false);
|
|
|
- _logger.Information("{@Message}", $"工位10_writefalse3");
|
|
|
}));
|
|
|
}
|
|
|
public void RecordOneMessage11(object sender, StateEventArgs e)//11
|
|
@@ -2397,10 +2379,8 @@ namespace LogoForceTestApp.Modules.MainModule.ViewModels
|
|
|
p11 = d1.ToString() + d2.ToString() + d3.ToString();
|
|
|
Thread.Sleep(200);
|
|
|
tcpNet.Write("1025.14", false);
|
|
|
- _logger.Information("{@Message}", $"工位11_writefalse2");
|
|
|
}
|
|
|
tcpNet.Write("1025.14", false);
|
|
|
- _logger.Information("{@Message}", $"工位11_writefalse3");
|
|
|
}));
|
|
|
}
|
|
|
public void RecordOneMessage12(object sender, StateEventArgs e)//12
|
|
@@ -2454,10 +2434,8 @@ namespace LogoForceTestApp.Modules.MainModule.ViewModels
|
|
|
p12 = d1.ToString() + d2.ToString() + d3.ToString();
|
|
|
Thread.Sleep(200);
|
|
|
tcpNet.Write("1025.15", false);
|
|
|
- _logger.Information("{@Message}", $"工位12_writefalse2");
|
|
|
}
|
|
|
tcpNet.Write("1025.15", false);
|
|
|
- _logger.Information("{@Message}", $"工位12_writefalse3");
|
|
|
}));
|
|
|
}
|
|
|
public void RecordOneMessage13(object sender, StateEventArgs e)//13
|
|
@@ -2511,10 +2489,8 @@ namespace LogoForceTestApp.Modules.MainModule.ViewModels
|
|
|
p13 = d1.ToString() + d2.ToString() + d3.ToString();
|
|
|
Thread.Sleep(200);
|
|
|
tcpNet.Write("1026.0", false);
|
|
|
- _logger.Information("{@Message}", $"工位13_writefalse2");
|
|
|
}
|
|
|
tcpNet.Write("1026.0", false);
|
|
|
- _logger.Information("{@Message}", $"工位13_writefalse3");
|
|
|
}));
|
|
|
}
|
|
|
public void RecordOneMessage14(object sender, StateEventArgs e)//14
|
|
@@ -2570,10 +2546,8 @@ namespace LogoForceTestApp.Modules.MainModule.ViewModels
|
|
|
p14 = d1.ToString() + d2.ToString() + d3.ToString();
|
|
|
Thread.Sleep(200);
|
|
|
tcpNet.Write("1026.1", false);
|
|
|
- _logger.Information("{@Message}", $"工位14_writefalse2");
|
|
|
}
|
|
|
tcpNet.Write("1026.1", false);
|
|
|
- _logger.Information("{@Message}", $"工位14_writefalse3");
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|