...
This commit is contained in:
@@ -59,13 +59,19 @@ namespace AGVEmulator
|
||||
/// <summary>
|
||||
/// 목적지 태그번호 전송
|
||||
/// </summary>
|
||||
public void SendGotoTag(uint tag)
|
||||
public void SendGotoTag(byte id, uint tag)
|
||||
{
|
||||
Send(ENIGProtocol.AGVCommands.Goto, tag.ToString("0000"));
|
||||
var idSTR = id.ToString("X2");
|
||||
var tagSTR = tag.ToString("0000");
|
||||
var dataStr = $"{idSTR}{tagSTR}";
|
||||
Send(ENIGProtocol.AGVCommands.Goto, dataStr);
|
||||
}
|
||||
public void SendCurrentPos(uint tag)
|
||||
public void SendCurrentPos(byte id, uint tag)
|
||||
{
|
||||
Send(ENIGProtocol.AGVCommands.SetCurrent, tag.ToString("0000"));
|
||||
var idSTR = id.ToString("X2");
|
||||
var tagSTR = tag.ToString("0000");
|
||||
var dataStr = $"{idSTR}{tagSTR}";
|
||||
Send(ENIGProtocol.AGVCommands.SetCurrent, dataStr);
|
||||
}
|
||||
private void Send(ENIGProtocol.AGVCommands Command, string datastr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user