This commit is contained in:
atvstdla
2025-09-25 08:23:36 +09:00
parent ee122a6daf
commit a34dbecfb9
10 changed files with 1574 additions and 1584 deletions

View File

@@ -326,16 +326,22 @@ namespace Project.Dialog
private void button3_Click_1(object sender, EventArgs e)
{
PUB.PrinterL.TestPrint(AR.SETTING.Data.DrawOutbox, "ATK4EE1", "");
var rlt = PUB.PrinterL.TestPrint(AR.SETTING.Data.DrawOutbox, "ATK4EE1", "");
var zpl = PUB.PrinterL.LastPrintZPL;
PUB.log.Add("Temp Print L: " + PUB.PrinterL.LastPrintZPL);
if (rlt.result == false)
PUB.log.AddE($"Temp Print L: {rlt.errmessage}" + PUB.PrinterL.LastPrintZPL);
else
PUB.log.Add("Temp Print L: " + PUB.PrinterL.LastPrintZPL);
}
private void button4_Click_1(object sender, EventArgs e)
{
PUB.PrinterR.TestPrint(AR.SETTING.Data.DrawOutbox, "ATK4EE1", "");
var rlt = PUB.PrinterR.TestPrint(AR.SETTING.Data.DrawOutbox, "ATK4EE1", "");
var zpl = PUB.PrinterR.LastPrintZPL;
PUB.log.Add("Temp Print R: " + PUB.PrinterR.LastPrintZPL);
if (rlt.result == false)
PUB.log.AddE($"Temp Print R: {rlt.errmessage}" + PUB.PrinterR.LastPrintZPL);
else
PUB.log.Add("Temp Print R: " + PUB.PrinterR.LastPrintZPL);
}
private void button15_Click(object sender, EventArgs e)
@@ -373,32 +379,30 @@ namespace Project.Dialog
{
//왼쪽 -5mm
var pos = MOT.GetLMPos(eLMLoc.READY);
var vel = AR.SETTING.Data.MoveYForPaperVaccumeVel;
var acc = AR.SETTING.Data.MoveYForPaperVaccumeAcc;
MOT.Move(eAxis.PL_MOVE, pos.Position + AR.SETTING.Data.MoveYForPaperVaccumeValue, vel, acc, false, false, false);
MOT.Move(eAxis.PL_MOVE, -5, 100, 500, true, false, false);//, vel, acc, false, false, false);
}
private void button14_Click(object sender, EventArgs e)
{
//왼쪽 +5mm
//왼쪽 Ready Position
var pos = MOT.GetLMPos(eLMLoc.READY);
MOT.Move(eAxis.PL_MOVE, pos.Position, 50, 200, false, false, false);
PUB.log.Add("user:PL_MOVE:to ready");
}
private void button15_Click_1(object sender, EventArgs e)
{
//오른쪽 -5mm
var pos = MOT.GetRMPos(eRMLoc.READY);
var vel = AR.SETTING.Data.MoveYForPaperVaccumeVel;
var acc = AR.SETTING.Data.MoveYForPaperVaccumeAcc;
MOT.Move(eAxis.PR_MOVE, pos.Position + AR.SETTING.Data.MoveYForPaperVaccumeValue, vel, acc, false, false, false);
MOT.Move(eAxis.PR_MOVE, -5, 100, 500, false, false, false);// pos.Position + AR.SETTING.Data.MoveYForPaperVaccumeValue, vel, acc, false, false, false);
}
private void button16_Click_2(object sender, EventArgs e)
{
//오른쪽 +5mm
//오른쪽 Ready Position
var pos = MOT.GetRMPos(eRMLoc.READY);
MOT.Move(eAxis.PR_MOVE, pos.Position, 50, 200, false, false, false);
PUB.log.Add("user:pr_move:to ready");
}
private void button17_Click(object sender, EventArgs e)
@@ -419,10 +423,10 @@ namespace Project.Dialog
if (cur == false)
{
//내려도되는지 검사해야한다.
if(PUB.mot.IsHomeSet((int)eAxis.PL_MOVE))
if (PUB.mot.IsHomeSet((int)eAxis.PL_MOVE))
{
var pos = MOT.GetLMPos(eLMLoc.READY);
if(MOT.getPositionMatch(pos))
if (MOT.getPositionMatch(pos))
{
PUB.log.AddE($"Cannot lower cylinder (L) because it is at standby position");
}