..
This commit is contained in:
@@ -200,8 +200,8 @@ namespace Project.ViewForm
|
||||
var dlg = UTIL.MsgQ("자동 진행을 시작할까요?\n우측 옵션을 확인 하세요");
|
||||
if (dlg != DialogResult.Yes) return;
|
||||
var opt = makeopt();
|
||||
PUB.AGV.AGVMoveSet(opt);
|
||||
PUB.AGV.AGVMoveRun(opt.Direction == arDev.Narumi.eMoveDir.Forward ? arDev.Narumi.eRunOpt.Forward : arDev.Narumi.eRunOpt.Backward);
|
||||
if (PUB.AGV.AGVMoveSet(opt) == eNarumiCommandResult.Success)
|
||||
PUB.AGV.AGVMoveRun(opt.Direction == arDev.Narumi.eMoveDir.Forward ? arDev.Narumi.eRunOpt.Forward : arDev.Narumi.eRunOpt.Backward);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -350,7 +350,7 @@ namespace Project.ViewForm
|
||||
PUB.log.Add($"사용자 설정 : {bunkiopt}");
|
||||
if (PUB.DriveSpeed)
|
||||
{
|
||||
if (PUB.AGV.AGVCommand("SSH", PUB.setting.SPD_H.ToString("0000")) == true)
|
||||
if (PUB.AGV.AGVCommand("SSH", PUB.setting.SPD_H.ToString("0000")) == eNarumiCommandResult.Success)
|
||||
PUB.DriveSpeed = false;
|
||||
}
|
||||
|
||||
@@ -361,7 +361,7 @@ namespace Project.ViewForm
|
||||
private void arLabel1_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (PUB.AGV.AGVCommand("SSH", PUB.setting.SPD_DRIVE.ToString("0000")) == false)
|
||||
if (PUB.AGV.AGVCommand("SSH", PUB.setting.SPD_DRIVE.ToString("0000")) != eNarumiCommandResult.Success)
|
||||
{
|
||||
AR.UTIL.MsgE("고속속도에 주행속도 연결 실패\n잠시 후 다시 시도하세요");
|
||||
return;
|
||||
@@ -369,12 +369,18 @@ namespace Project.ViewForm
|
||||
|
||||
if (this.bunkiopt == null) bunkiopt = makeopt();
|
||||
bunkiopt.Speed = arDev.Narumi.eMoveSpd.High;
|
||||
PUB.AGV.AGVMoveSet(bunkiopt);
|
||||
PUB.log.Add($"고속주행설정 : {bunkiopt}");
|
||||
PUB.DriveSpeed = true;
|
||||
if (PUB.AGV.AGVMoveSet(bunkiopt) == eNarumiCommandResult.Success)
|
||||
{
|
||||
PUB.log.Add($"고속주행설정 : {bunkiopt}");
|
||||
PUB.DriveSpeed = true;
|
||||
|
||||
AR.UTIL.MsgI($"주행속도({PUB.setting.SPD_DRIVE})가 '고속' 속도에 연결되었습니다.\n" +
|
||||
$"창을 이동하거나 '설정적용'을 누르면 원래속도({PUB.setting.SPD_H})로 변경 됩니다");
|
||||
AR.UTIL.MsgI($"주행속도({PUB.setting.SPD_DRIVE})가 '고속' 속도에 연결되었습니다.\n" +
|
||||
$"창을 이동하거나 '설정적용'을 누르면 원래속도({PUB.setting.SPD_H})로 변경 됩니다");
|
||||
}
|
||||
else
|
||||
{
|
||||
UTIL.MsgE($"고속 속도 설정이 실패되었습니다");
|
||||
}
|
||||
}
|
||||
|
||||
private void btLeft180_Click(object sender, EventArgs e)
|
||||
@@ -398,7 +404,7 @@ namespace Project.ViewForm
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
PUB.AGV.LiftControl(arDev.Narumi.LiftCommand.OFF);
|
||||
PUB.AGV.LiftControl(arDev.Narumi.LiftCommand.OFF);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user