턴 조건 변경 센서->메세지
This commit is contained in:
@@ -157,9 +157,19 @@ namespace arDev
|
||||
}
|
||||
else if (frame.DataString.StartsWith("$"))
|
||||
{
|
||||
// [Turn Completion Check]
|
||||
if (frame.DataString.Contains("LEFT-TURN OK"))
|
||||
{
|
||||
if (TurnInformation != null) { TurnInformation.State = eNarumiTurn.Left; TurnInformation.End = DateTime.Now; }
|
||||
}
|
||||
else if (frame.DataString.Contains("RIGHT-TURN OK"))
|
||||
{
|
||||
if (TurnInformation != null) { TurnInformation.State = eNarumiTurn.Right; TurnInformation.End = DateTime.Now; }
|
||||
}
|
||||
// $로 시작되는 AGV 상태 표시
|
||||
//var text_Sts_Etc = Encoding.Default.GetString(bRcvData, 3, bRcvData.Length - 2).TrimStart(' '); //20210311 김정만 - SmartX FrameWork 사용 안함으로 주석처리
|
||||
//var sMessageOther = Encoding.Default.GetString(bRcvData, 3, bRcvData.Length - 2).TrimStart(' ');
|
||||
//AGV RIGHT-TURN OK
|
||||
RaiseMessage(MessageType.Normal, "$메세지수신:" + frame.DataString);
|
||||
}
|
||||
else
|
||||
@@ -266,9 +276,10 @@ namespace arDev
|
||||
nDataTemp = Convert.ToByte(rcvdNow.Substring(idx, 2), 16);
|
||||
signal1.SetValue(nDataTemp); idx += 2;
|
||||
|
||||
//agv가 멈춰있고 마크센서가 들어온경우, 턴 작업이었다면 턴 셋팅을 한다
|
||||
if (system1.agv_run == false && system1.agv_stop == true &&
|
||||
TurnInformation != null && signal1.mark_sensor)
|
||||
//agv가 멈춰있고 들어온경우, 턴 작업이었다면 턴 셋팅을 한다
|
||||
// [REMOVED] Logic replaced by message-based check ($AGV...TURN OK)
|
||||
if (false && system1.agv_run == false && system1.agv_stop == true &&
|
||||
TurnInformation != null)
|
||||
{
|
||||
if (TurnInformation.Start.Year > 2000)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user