buffer in/out 시퀀스 작성중
This commit is contained in:
@@ -143,7 +143,7 @@ namespace arDev
|
||||
$"SSK{interval:0000}",
|
||||
$"SCK{value:0000}"
|
||||
};
|
||||
return AddCommand(cmds);
|
||||
return AddCommand( cmds);
|
||||
}
|
||||
|
||||
public bool AGVSetTagReinputTime(int value)
|
||||
@@ -164,19 +164,29 @@ namespace arDev
|
||||
$"{cmd}I{cmd2}{I:0000}",
|
||||
$"{cmd}D{cmd2}{D:0000}",
|
||||
};
|
||||
return AddCommand(cmds);
|
||||
return AddCommand( cmds);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 전송을시도한 시간
|
||||
/// </summary>
|
||||
//public Dictionary<String,DateTime> LastCommandTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 전송에 성공한 명령시간
|
||||
/// </summary>
|
||||
//public Dictionary<String, DateTime> LastCommandOKTime { get; set; }
|
||||
protected bool AddCommand(params string[] cmds)
|
||||
{
|
||||
bool ret = true;
|
||||
ACKData = string.Empty; //회신값 제거
|
||||
//LastCommandTime.Add(cmd, DateTime.Now);
|
||||
foreach (var cmdline in cmds)
|
||||
{
|
||||
var fullcmd = MakeCheckSum(cmdline);
|
||||
//commandQueue.Enqueue(fullcmd);
|
||||
if (WriteData(fullcmd) == false) ret = false;
|
||||
//else LastCommandOKTime.Add(cmd, DateTime.Now);
|
||||
System.Threading.Thread.Sleep(1);
|
||||
}
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user