diff --git a/AuroraDevices/AuroraPLC/AuroraPLC.csproj b/AuroraDevices/AuroraPLC/AuroraPLC.csproj
index e26ec3f..63a9097 100644
--- a/AuroraDevices/AuroraPLC/AuroraPLC.csproj
+++ b/AuroraDevices/AuroraPLC/AuroraPLC.csproj
@@ -39,10 +39,6 @@
..\..\External\Aurora\bin\Aurora.exe
-
- False
- ..\..\_out\x64-Debug\AuroraMotor.dll
-
..\..\External\Aurora\csharp_lib\hermes.csharp.dll
@@ -161,6 +157,10 @@
{304a2f8d-b543-4ffe-b14f-ddff839d4efb}
AuroraDeviceCommon
+
+ {49a61fb7-ec36-4035-b7bc-63ab983590b4}
+ AuroraMotor
+
diff --git a/Machines/ILSOS_KS/ILSOS_KS.csproj b/Machines/ILSOS_KS/ILSOS_KS.csproj
index e053b0a..d7f528a 100644
--- a/Machines/ILSOS_KS/ILSOS_KS.csproj
+++ b/Machines/ILSOS_KS/ILSOS_KS.csproj
@@ -66,9 +66,6 @@
False
..\..\_out\x64-Debug\AuroraDeviceCommon.dll
-
- ..\..\_out\x64-Debug\AuroraTriggerBoard.dll
-
False
..\..\_out\x64-Debug\AuroraUIComponent.dll
@@ -315,6 +312,10 @@
{1A47B1F3-5BDE-41DF-8F4D-25298AD4F6DE}
AuroraPLC
+
+ {ffbd974d-a4ac-4705-8473-7a62268728f8}
+ AuroraTriggerBoard
+
{30FCD6D2-8E66-45E4-93A9-701A1A47DB9E}
MilCommon
diff --git a/Machines/ILSOS_KS/Sequences/SeqAutoRunKS.cs b/Machines/ILSOS_KS/Sequences/SeqAutoRunKS.cs
index 7f17e55..eb96194 100644
--- a/Machines/ILSOS_KS/Sequences/SeqAutoRunKS.cs
+++ b/Machines/ILSOS_KS/Sequences/SeqAutoRunKS.cs
@@ -315,7 +315,7 @@ namespace ILSOS_KS.Sequences
sb.AddAction(SEQ_GENERATE_WELDING_OBJECT, GenerateWeldingObject);
//Image Processing
- sb.AddAction(SEQ_BEFORE_WELD_MOVE_OBJECT, BeforeWeldMoveObject);
+ sb.AddDecision(SEQ_BEFORE_WELD_MOVE_OBJECT, BeforeWeldMoveObject);
sb.AddAction(SEQ_AFTER_WELD_CHECK_BEAD, AfterWeldCheckBead);
sb.AddDecision(SEQ_CHECK_RCC_MODE, CheckRCCMode);
sb.AddDecision(SEQ_CHECK_BEFORE_OR_AFTER, CheckBeforeOrAfter);
@@ -372,6 +372,9 @@ namespace ILSOS_KS.Sequences
> sb[SEQ_SEND_EVENT_SENDER].Send(EVENT_TRIGGER_SAVE_FILE) > sb[SEQ_CHECK_BEFORE_OR_AFTER]
> sb[SEQ_BEFORE_WELD_MOVE_OBJECT] > sb[SEQ_READY_SCANNER_LIST]);
+ // RCC NG인 경우
+ sb.Flows(sb[SEQ_BEFORE_WELD_MOVE_OBJECT] > sb[SEQ_CHECK_PAGENO]);
+
sb.Flows(sb[SEQ_CHECK_RCC_MODE]
// RCC FlyingVision
> sb[SEQ_SET_SCOUT_FLYING_VISION_SEQ] > sb[SEQ_DO_ID_SCOUT_FLYING_VISION_SEQ] > sb[SEQ_GET_SCOUT_FLYING_VISION_SEQ]
@@ -534,7 +537,7 @@ namespace ILSOS_KS.Sequences
}
}
- private SequenceActionResult BeforeWeldMoveObject(SequenceContext context, string id, SequenceActionResult param)
+ private string BeforeWeldMoveObject(SequenceContext context, string id, ICollection branches, SequenceActionResult param)
{
@@ -560,7 +563,7 @@ namespace ILSOS_KS.Sequences
// 4 Page 시퀀스 사용으로 spiral 페이지 사용시 RCC 사용안함
if (_PageNoRcc % 2 == 1)
- return SequenceAction.Ok();
+ return SEQ_READY_SCANNER_LIST;
_SystemParameter = context.GetSetting(CommonSettingIds.SystemParameter);
var mainPage = WeldingRecipeManager.GetWeldingPage();
@@ -623,7 +626,9 @@ namespace ILSOS_KS.Sequences
}
else
{
- Log.W("Pattern is not found.");
+ Log.W("RCC Pattern is not found. NG Process");
+ _PLC.WriteBit((int)eBitOutput.PC_LBAD_RESULT_NG, true);
+ return SEQ_CHECK_PAGENO;
}
@@ -673,7 +678,7 @@ namespace ILSOS_KS.Sequences
}
}
- return SequenceAction.Ok();
+ return SEQ_READY_SCANNER_LIST;
}
//private SequenceActionResult AfterWeldCheckBead(SequenceContext context, string id, SequenceActionResult param)
//{