Log 안나오는 부분 수정
실제 용접 전, Prefetch2가 null이라 로그 못찍고 죽는거 주석
This commit is contained in:
parent
6279c02cd6
commit
0300cb6ee0
@ -348,7 +348,7 @@ namespace AuroraLBAD.Service
|
|||||||
}
|
}
|
||||||
string LotID_string = new string(LotID);
|
string LotID_string = new string(LotID);
|
||||||
string CellID_string = new string(CellID);
|
string CellID_string = new string(CellID);
|
||||||
Log.I($"StreamLight LBAD Report Data : LotID {LotID_string}");
|
Log.I($"StreamLight LBAD Report Data : LotID({LotID_string.Replace("\0", "").Trim()}) / LotID({CellID_string.Replace("\0", "").Trim()})");
|
||||||
Log.I($"StreamLight LBAD Report Data : HeadNum {replyParsed_LBAD.HeadNum}");
|
Log.I($"StreamLight LBAD Report Data : HeadNum {replyParsed_LBAD.HeadNum}");
|
||||||
Log.I($"StreamLight LBAD Report Data : LaserPower_AVG {replyParsed_LBAD.AVG}");
|
Log.I($"StreamLight LBAD Report Data : LaserPower_AVG {replyParsed_LBAD.AVG}");
|
||||||
if (replyParsed_LBAD.HeadNum > 0)
|
if (replyParsed_LBAD.HeadNum > 0)
|
||||||
|
|||||||
@ -132,6 +132,7 @@ namespace ILSOS_CCW_H52A.Data
|
|||||||
// GetReportCellResult_SeqResult 성공 시 호출.
|
// GetReportCellResult_SeqResult 성공 시 호출.
|
||||||
public void CompleteReport()
|
public void CompleteReport()
|
||||||
{
|
{
|
||||||
|
_log.I($"Report >> CellId{ReportTarget.CellId}, JigNo{ReportTarget.JigNo}");
|
||||||
ReportTarget?.SetReportComplete(true);
|
ReportTarget?.SetReportComplete(true);
|
||||||
ReportTarget = null;
|
ReportTarget = null;
|
||||||
_pendingSlot.Clear();
|
_pendingSlot.Clear();
|
||||||
|
|||||||
@ -73,7 +73,7 @@ namespace ILSOS_CCW_H52A.Sequences.ProcessObjects
|
|||||||
private void OnCellReceived(string lotId, string cellId)
|
private void OnCellReceived(string lotId, string cellId)
|
||||||
{
|
{
|
||||||
ReceivedCellInfoQueue.Enqueue((lotId, cellId));
|
ReceivedCellInfoQueue.Enqueue((lotId, cellId));
|
||||||
_log.I($"Cell Tracker CallBack Received >> LotId({lotId}) / CellId({cellId})");
|
_log.I($"Cell Tracker CallBack Received >> [LotId({lotId.Replace("\0", "").Trim()})] [CellId({cellId.Replace("\0", "").Trim()})]");
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<bool> CheckRotaryState()
|
public IEnumerable<bool> CheckRotaryState()
|
||||||
|
|||||||
@ -450,7 +450,7 @@ namespace ILSOS_CCW_H52A.Sequences
|
|||||||
|
|
||||||
_CellScheduler.SavePendingComplete();
|
_CellScheduler.SavePendingComplete();
|
||||||
if (_CellScheduler.HasPendingPrefetch)
|
if (_CellScheduler.HasPendingPrefetch)
|
||||||
Log.I("[PendingRestore] 미용접 셀 보존됨 — 재시작 후 JigNo 매칭 시 복원 예정");
|
Log.I("[PendingRestore] 미용접 셀 보존됨 >> 재시작 후 JigNo 매칭 시 복원 예정");
|
||||||
_CellScheduler.Reset();
|
_CellScheduler.Reset();
|
||||||
// ─────────────────────────────────────────────────────────────────────────────
|
// ─────────────────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
@ -733,13 +733,13 @@ namespace ILSOS_CCW_H52A.Sequences
|
|||||||
Status.GetProcessingWeldingData().WorkCellId = cell.CellId;
|
Status.GetProcessingWeldingData().WorkCellId = cell.CellId;
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.I($"상태 시프트(Rotate) >> 용접 전전셀({_CellScheduler.Prefetch2.CellId}) [CanExist({_CellScheduler.Prefetch2.IsCanExist})] [JigNo({_CellScheduler.Prefetch2.JigNo})] " +
|
//Log.I($"상태 시프트(Rotate) >> 용접 전전셀({_CellScheduler.Prefetch2.CellId}) [CanExist({_CellScheduler.Prefetch2.IsCanExist})] [JigNo({_CellScheduler.Prefetch2.JigNo})] " +
|
||||||
$"[ListNo({_CellScheduler.Prefetch2.ListNo})] [WeldingCount({_CellScheduler.Prefetch2.WeldingCount})]" +
|
// $"[ListNo({_CellScheduler.Prefetch2.ListNo})] [WeldingCount({_CellScheduler.Prefetch2.WeldingCount})]" +
|
||||||
$"[StartAngle(Y)({_CellScheduler.Prefetch2.StartAngle})]");
|
// $"[StartAngle(Y)({_CellScheduler.Prefetch2.StartAngle})]");
|
||||||
|
|
||||||
Log.I($"이번 용접대상 >> 용접 전셀({_CellScheduler.Prefetch1.CellId}) [CanExist({_CellScheduler.Prefetch1.IsCanExist})] [JigNo({_CellScheduler.Prefetch1.JigNo})] " +
|
//Log.I($"이번 용접대상 >> 용접 전셀({_CellScheduler.Prefetch1.CellId}) [CanExist({_CellScheduler.Prefetch1.IsCanExist})] [JigNo({_CellScheduler.Prefetch1.JigNo})] " +
|
||||||
$"[ListNo({_CellScheduler.Prefetch1.ListNo})] [WeldingCount({_CellScheduler.Prefetch1.WeldingCount})]" +
|
// $"[ListNo({_CellScheduler.Prefetch1.ListNo})] [WeldingCount({_CellScheduler.Prefetch1.WeldingCount})]" +
|
||||||
$"[StartAngle(Y)({_CellScheduler.Prefetch1.StartAngle})]");
|
// $"[StartAngle(Y)({_CellScheduler.Prefetch1.StartAngle})]");
|
||||||
|
|
||||||
if (canExist) {
|
if (canExist) {
|
||||||
#region 용접할 Objects 선택
|
#region 용접할 Objects 선택
|
||||||
@ -1072,7 +1072,8 @@ namespace ILSOS_CCW_H52A.Sequences
|
|||||||
wd.RecipeNo, wd.LaserPowerCore, wd.MarkSpeed, wd.FocalLength,
|
wd.RecipeNo, wd.LaserPowerCore, wd.MarkSpeed, wd.FocalLength,
|
||||||
wd.WeldingJigNo, wd.WeldingSpanTimeMilliseconds, wd.LaserPowerByLBAD,
|
wd.WeldingJigNo, wd.WeldingSpanTimeMilliseconds, wd.LaserPowerByLBAD,
|
||||||
wd.TodayProduct, wd.TotalProduct);
|
wd.TodayProduct, wd.TotalProduct);
|
||||||
_CellTracker.SendEcsData(wd.CellId, strPath, strData);
|
_CellTracker.SendEcsData(wd.CellId, strPath, strData + "");
|
||||||
|
Log.I($"Report to CellTracker >> [LotID({wd.LotId.Replace("\0", "").Trim()})] [CellID({wd.CellId.Replace("\0", "").Trim()})]");
|
||||||
|
|
||||||
// 로컬 CSV 저장
|
// 로컬 CSV 저장
|
||||||
string strItem = "//Date, Time, LotID, CellID, RecipeNo, LaserPower, MarkSpeed, FocalLength, HeadNo, WeldingTime, LaserPowerByLBAD, TodayCount, TotalCount";
|
string strItem = "//Date, Time, LotID, CellID, RecipeNo, LaserPower, MarkSpeed, FocalLength, HeadNo, WeldingTime, LaserPowerByLBAD, TodayCount, TotalCount";
|
||||||
@ -1284,11 +1285,8 @@ namespace ILSOS_CCW_H52A.Sequences
|
|||||||
{
|
{
|
||||||
Status.EquipmentMode = eEquipmentMode.MANUAL;
|
Status.EquipmentMode = eEquipmentMode.MANUAL;
|
||||||
|
|
||||||
if((_CellTracker._CellTracker as CellTrackerDaekhon) != null && _CellTracker._CellTracker is CellTrackerDaekhon tracker){
|
foreach (var info in ProcessManager.Instance.ReceivedCellInfoQueue.Select((value, index) => (value, index))) {
|
||||||
Log.I($"Stoped Seq >> CellTracker Recv Queue count ({tracker.CellInfoQueue.Count})");
|
Log.I($"[{info.index}]Queue >> CellId({info.value.CellId.Replace("\0", "").Trim()}) LotId({info.value.LotId.Replace("\0", "").Trim()})");
|
||||||
foreach (var info in tracker.CellInfoQueue.Select((value, index) => (value, index))) {
|
|
||||||
Log.I($"[{info.index}]Queue >> CellId[{info.value.CellID}] / LotId[{info.value.LotID}]");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 정지 시점 파이프라인 상태 로그 (재시작 후 복원 여부 사전 확인용)
|
// 정지 시점 파이프라인 상태 로그 (재시작 후 복원 여부 사전 확인용)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user