..
This commit is contained in:
@@ -329,10 +329,6 @@ namespace Project
|
||||
PUB.logKeyence.RaiseMsg += Log_RaiseMsg;
|
||||
PUB.logWS.RaiseMsg += LogWS_RaiseMsg;
|
||||
|
||||
//Turn off position layout.
|
||||
//this.pPosL.Visible = false;
|
||||
//this.pPosC.Visible = false;
|
||||
//this.pPosR.Visible = false;
|
||||
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
@@ -428,7 +424,7 @@ namespace Project
|
||||
PUB.plc.Start();
|
||||
|
||||
VAR.I32[eVarInt32.Front_Laser_Cleaning] += 1;
|
||||
|
||||
|
||||
//Keyence connection
|
||||
if (SETTING.Data.Keyence_IPF.isEmpty() == false)
|
||||
{
|
||||
@@ -464,11 +460,12 @@ namespace Project
|
||||
}
|
||||
|
||||
//swPLC program execution
|
||||
var swplcfile = UTIL.MakePath("swplc", "swplc.exe");
|
||||
var swplcfile = UTIL.MakePath("swplc", "SoftwarePLC.exe");
|
||||
if (System.IO.File.Exists(swplcfile))
|
||||
{
|
||||
UTIL.RunProcess(swplcfile);
|
||||
}
|
||||
else PUB.log.AddE($"No SoftwarePLC Execute File({swplcfile})");
|
||||
|
||||
await RefreshList();
|
||||
UpdateControl();
|
||||
@@ -1441,16 +1438,16 @@ namespace Project
|
||||
return;
|
||||
}
|
||||
|
||||
bool curMag = DIO.GetIOOutput(eDOName.CART_MAG0);
|
||||
bool curMag = DIO.GetIOOutput(eDOName.PORTL_MAGNET);
|
||||
bool curLim = DIO.GetIOInput(eDIName.PORTL_LIM_DN);
|
||||
if (index == 1)
|
||||
{
|
||||
curMag = DIO.GetIOOutput(eDOName.CART_MAG1);
|
||||
curMag = DIO.GetIOOutput(eDOName.PORTC_MAGNET);
|
||||
curLim = DIO.GetIOInput(eDIName.PORTC_LIM_DN);
|
||||
}
|
||||
else if (index == 2)
|
||||
{
|
||||
curMag = DIO.GetIOOutput(eDOName.CART_MAG2);
|
||||
curMag = DIO.GetIOOutput(eDOName.PORTR_MAGNET);
|
||||
curLim = DIO.GetIOInput(eDIName.PORTR_LIM_DN);
|
||||
}
|
||||
|
||||
@@ -1778,7 +1775,11 @@ namespace Project
|
||||
{
|
||||
var ok = PUB.SelectModelV(f.Value);
|
||||
var motionmode = VAR.BOOL[eVarBool.Use_Conveyor] ? "Conveyor" : "Default";
|
||||
PUB.SelectModelM(motionmode);
|
||||
var changeMot = PUB.SelectModelM(motionmode);
|
||||
if (changeMot == false)
|
||||
{
|
||||
PUB.log.AddE($"No Motion model (Conveyor)");
|
||||
}
|
||||
UpdateControl();
|
||||
}
|
||||
}
|
||||
@@ -1978,13 +1979,6 @@ namespace Project
|
||||
f.ShowDialog();
|
||||
}
|
||||
|
||||
private void sWPLCToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
var f = new Dialog.fswPLC();
|
||||
f.Show();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void apiCheckToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -2022,8 +2016,6 @@ namespace Project
|
||||
private void OpenProgramToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
var fn = AR.SETTING.Data.Sidinfofilename;
|
||||
if (fn.isEmpty()) fn = UTIL.MakePath("sidinfo", "update.exe");
|
||||
|
||||
var fi = new System.IO.FileInfo(fn);
|
||||
if (fi.Exists == false)
|
||||
{
|
||||
@@ -2168,5 +2160,24 @@ namespace Project
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void toolStripMenuItem27_Click(object sender, EventArgs e)
|
||||
{
|
||||
var bt = sender as ToolStripMenuItem;
|
||||
var txt = bt.Text;
|
||||
if (int.TryParse(txt, out int memno) == false)
|
||||
{
|
||||
UTIL.MsgE($"Keyence MemoryNo Error : {txt}");
|
||||
return;
|
||||
}
|
||||
PUB.log.Add($"Keyence Send BLOAD({memno})");
|
||||
if (PUB.keyenceF != null) PUB.keyenceF.BLoad(memno);
|
||||
if (PUB.keyenceR != null) PUB.keyenceR.BLoad(memno);
|
||||
}
|
||||
|
||||
private void btAutoReelOut_Click(object sender, EventArgs e)
|
||||
{
|
||||
PUB.Result.AutoReelOut = !PUB.Result.AutoReelOut;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user