This commit is contained in:
atvstdla
2025-09-29 17:38:12 +09:00
parent 1ebbb83866
commit 5a2eeed3c4
24 changed files with 1698 additions and 1490 deletions

View File

@@ -39,7 +39,9 @@ namespace Project
if (PUB.sm.Step != eSMStep.HOME_FULL && PUB.sm.Step != eSMStep.HOME_QUICK)
{
// PUB.logKeyence.Add($"{resp.Replace("\n", "").Replace("\r", "")}");
ParseBarcode(e.RawData, dev.Tag.ToString());
var rawdata = e.RawData; //↔▲▼
rawdata = rawdata.Replace('\x1D', '↔').Replace('\x1E', '▲').Replace('\x04', '▼');
ParseBarcode(rawdata, dev.Tag.ToString());
}
else
{
@@ -155,14 +157,14 @@ namespace Project
foreach (var resp in frames)
{
var bcddata = resp.Trim().Split(',');
if(resp.Equals("0:ERROR"))
if (resp.Equals("0:ERROR"))
{
PUB.log.AddE($"[{Source}] {resp}");
continue;
}
else if (bcddata.Length > 2 && bcddata[1] == "BLOAD")
{
if(bcddata[0] =="ER")
if (bcddata[0] == "ER")
{
PUB.log.AddE($"[{Source}]Bacode Memory Read Error({resp})");
}