영문화완료
This commit is contained in:
@@ -46,6 +46,9 @@ namespace Project
|
||||
DateTime EmergencyTime = DateTime.Now;
|
||||
Dialog.fLog logForm = null;
|
||||
|
||||
Dialog.fSystem_Setting frmSysParam = null;
|
||||
Dialog.fSystem_MotParameter frmSysMotParam = null;
|
||||
delegate void SelectModelHandler(string modelName, bool bUploadConfig);
|
||||
|
||||
|
||||
public FMain()
|
||||
@@ -109,7 +112,7 @@ namespace Project
|
||||
}
|
||||
if (PUB.sm.Step < eSMStep.CLOSING)
|
||||
{
|
||||
var rlt = UTIL.MsgQ(Lang.Q_EXIT);
|
||||
var rlt = UTIL.MsgQ("Do you want to exit?");
|
||||
if (rlt != System.Windows.Forms.DialogResult.Yes)
|
||||
{
|
||||
e.Cancel = true;
|
||||
@@ -595,59 +598,6 @@ namespace Project
|
||||
}
|
||||
|
||||
|
||||
|
||||
delegate void SelectModelHandler(string modelName, bool bUploadConfig);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//void UpLoadBarcodeConfigR()
|
||||
//{
|
||||
// if (PUB.keyenceR == null || PUB.keyenceR.IsConnect == false)
|
||||
// {
|
||||
// PUB.log.AddAT($"Barcode R is not connected, so the configuration file will not be uploaded. This information will be retransmitted when starting a new job. This error will not occur if you check the barcode connection at the bottom left and select a model");
|
||||
// return;
|
||||
// }
|
||||
|
||||
// //바코드설정파일 입력
|
||||
// var mv = PUB.Result.vModel;
|
||||
// var configfilename = mv.Title;
|
||||
// if (configfilename.isEmpty()) configfilename = mv.Title;
|
||||
// if (configfilename.EndsWith("R") == false) configfilename += "R";
|
||||
|
||||
// var jobcode = VAR.STR[eVarString.JOB_TYPE];
|
||||
// if (jobcode.isEmpty() == false) configfilename += $"_{jobcode}";
|
||||
|
||||
// if (configfilename.ToLower().EndsWith("ptc") == false) configfilename += ".ptc";
|
||||
// var configpath = System.IO.Path.Combine(UTIL.CurrentPath, "Model", configfilename);
|
||||
// var configfi = new System.IO.FileInfo(configpath);
|
||||
// if (configfi.Exists == false)
|
||||
// {
|
||||
// PUB.log.AddAT($"Barcode R configuration file ({configfi.Name}) does not exist");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// //접속되어잇ㅇ츠면 끈다
|
||||
// if (PUB.keyenceR.IsConnect) PUB.keyenceR.Trigger(false);
|
||||
// var ftp = new arUtil.FTPClient.FTPClient();
|
||||
// ftp.Host = COMM.SETTING.Data.Keyence_IPR;
|
||||
// ftp.Port = 21;
|
||||
// var UPFileName = @"\CONFIG\CONFIG.PTC";
|
||||
// var upOk = ftp.Upload(UPFileName, configfi.FullName);
|
||||
// if (upOk == false) PUB.log.AddE("Barcode R configuration file upload failed");
|
||||
// else PUB.log.AddI($"Barcode R configuration file upload completed ({configfi.FullName})");
|
||||
// if (PUB.keyenceR.IsConnect) PUB.keyenceR.Trigger(true);
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// PUB.log.AddE($"Barcode R FTP transfer failed: {ex.Message}");
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// soft reset value & use
|
||||
/// </summary>
|
||||
@@ -740,21 +690,19 @@ namespace Project
|
||||
|
||||
Form f;
|
||||
|
||||
f = new Dialog.fSelectJob();
|
||||
if (f.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
PUB.sm.SetNewStep(eSMStep.RUN);
|
||||
}
|
||||
else
|
||||
{
|
||||
PUB.log.AddAT("User cancelled at task selection screen before starting work");
|
||||
using (f = new Dialog.fSelectJob())
|
||||
if (f.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
PUB.sm.SetNewStep(eSMStep.RUN);
|
||||
}
|
||||
else
|
||||
{
|
||||
PUB.log.AddAT("User cancelled at task selection screen before starting work");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Dialog.fSystem_Setting frmSysParam = null;
|
||||
Dialog.fSystem_MotParameter frmSysMotParam = null;
|
||||
|
||||
private void systemParameterToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -810,15 +758,12 @@ namespace Project
|
||||
PUB.log.AddE("check free space : " + ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private void demoRunToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
var item = new Class.JobData(0) { };
|
||||
SaveData_EE(item, "L", "TEST", "debug");
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void arLabel2_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
var ctl = sender as arCtl.arLabel;
|
||||
@@ -827,8 +772,6 @@ namespace Project
|
||||
_BUTTON_START();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void arLabel4_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
PUB.log.Add("User Click : Stop", false);
|
||||
@@ -861,7 +804,7 @@ namespace Project
|
||||
{
|
||||
if (PUB.sm.isRunning == true)
|
||||
{
|
||||
UTIL.MsgE(Lang.CAN_NOT_RUN_AUTOMODE);
|
||||
UTIL.MsgE("AUTO-RUN MODE\\nCannot be used during automatic execution\\nPlease stop and try again");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -941,7 +884,7 @@ namespace Project
|
||||
|
||||
if (PUB.sm.isRunning == true)
|
||||
{
|
||||
msg.AppendLine("! " + Lang.CAN_NOT_RUN_AUTOMODE);
|
||||
msg.AppendLine("! " + "AUTO-RUN MODE\\nCannot be used during automatic execution\\nPlease stop and try again");
|
||||
}
|
||||
|
||||
////if (PUB.sm.Step == eSMStep.PAUSE)
|
||||
@@ -998,7 +941,7 @@ namespace Project
|
||||
var msg = new System.Text.StringBuilder();
|
||||
|
||||
if (PUB.sm.isRunning == true)
|
||||
msg.AppendLine("*" + Lang.CAN_NOT_RUN_AUTOMODE);
|
||||
msg.AppendLine("*" + "AUTO-RUN MODE\\nCannot be used during automatic execution\\nPlease stop and try again");
|
||||
|
||||
if (DIO.GetIOOutput(eDOName.SOL_AIR) == false)
|
||||
msg.AppendLine("* Press the AIR button on the front to supply AIR");
|
||||
@@ -1064,53 +1007,51 @@ namespace Project
|
||||
{
|
||||
if (PUB.sm.isRunning == true)
|
||||
{
|
||||
UTIL.MsgE(Lang.CAN_NOT_RUN_AUTOMODE);
|
||||
UTIL.MsgE("AUTO-RUN MODE\\nCannot be used during automatic execution\\nPlease stop and try again");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
fSetting f = new fSetting();
|
||||
|
||||
var popmsg = PUB.popup.Visible;
|
||||
if (f.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
DIO.InitDIOSensitive();
|
||||
|
||||
//Pin definition file update
|
||||
DIO.Pin.SetInputData(PUB.mdm.dataSet.InputDescription);
|
||||
DIO.Pin.SetOutputData(PUB.mdm.dataSet.OutputDescription);
|
||||
|
||||
if (AR.SETTING.Data.Disable_RoomLight == true)
|
||||
DIO.SetRoomLight(false);
|
||||
if (AR.SETTING.Data.Disable_TowerLamp == true)
|
||||
using (fSetting f = new fSetting())
|
||||
if (f.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
DIO.SetTwGrn(false);
|
||||
DIO.SetTwRed(false);
|
||||
DIO.SetTwYel(false);
|
||||
}
|
||||
if (AR.SETTING.Data.Serial_Remocon.isEmpty() == false)
|
||||
{
|
||||
var portinfo = AR.SETTING.Data.Serial_Remocon.Split(':');
|
||||
var portName = portinfo[0];
|
||||
int baud = 9600;
|
||||
if (portinfo.Length > 1) baud = int.Parse(portinfo[1]);
|
||||
if (PUB.remocon.PortName != portName)
|
||||
DIO.InitDIOSensitive();
|
||||
|
||||
//Pin definition file update
|
||||
DIO.Pin.SetInputData(PUB.mdm.dataSet.InputDescription);
|
||||
DIO.Pin.SetOutputData(PUB.mdm.dataSet.OutputDescription);
|
||||
|
||||
if (AR.SETTING.Data.Disable_RoomLight == true)
|
||||
DIO.SetRoomLight(false);
|
||||
if (AR.SETTING.Data.Disable_TowerLamp == true)
|
||||
{
|
||||
PUB.remocon.Close();
|
||||
PUB.remocon.PortName = portName;
|
||||
PUB.remocon.BaudRate = baud;
|
||||
if (PUB.remocon.Open() == false)
|
||||
PUB.log.AddE("Remote Control Port Open Error : " + PUB.remocon.errorMessage);
|
||||
DIO.SetTwGrn(false);
|
||||
DIO.SetTwRed(false);
|
||||
DIO.SetTwYel(false);
|
||||
}
|
||||
if (AR.SETTING.Data.Serial_Remocon.isEmpty() == false)
|
||||
{
|
||||
var portinfo = AR.SETTING.Data.Serial_Remocon.Split(':');
|
||||
var portName = portinfo[0];
|
||||
int baud = 9600;
|
||||
if (portinfo.Length > 1) baud = int.Parse(portinfo[1]);
|
||||
if (PUB.remocon.PortName != portName)
|
||||
{
|
||||
PUB.remocon.Close();
|
||||
PUB.remocon.PortName = portName;
|
||||
PUB.remocon.BaudRate = baud;
|
||||
if (PUB.remocon.Open() == false)
|
||||
PUB.log.AddE("Remote Control Port Open Error : " + PUB.remocon.errorMessage);
|
||||
}
|
||||
}
|
||||
|
||||
groupBox3.Text = $"Model Info ({PUB.MCCode}/{AR.SETTING.Data.McName})";
|
||||
|
||||
//Printer setting - 201223
|
||||
//PUB.PrinterL.printerName = COMM.SETTING.Data.PrintLeftName;
|
||||
//PUB.PrinterR.printerName = COMM.SETTING.Data.PrintRightName;
|
||||
UpdateControl();
|
||||
}
|
||||
|
||||
groupBox3.Text = $"Model Info ({PUB.MCCode}/{AR.SETTING.Data.McName})";
|
||||
|
||||
//Printer setting - 201223
|
||||
//PUB.PrinterL.printerName = COMM.SETTING.Data.PrintLeftName;
|
||||
//PUB.PrinterR.printerName = COMM.SETTING.Data.PrintRightName;
|
||||
UpdateControl();
|
||||
}
|
||||
if (popmsg) PUB.popup.Visible = true;
|
||||
}
|
||||
|
||||
@@ -1163,7 +1104,7 @@ namespace Project
|
||||
{
|
||||
if (PUB.sm.isRunning == true)
|
||||
{
|
||||
UTIL.MsgE(Lang.CAN_NOT_RUN_AUTOMODE);
|
||||
UTIL.MsgE("AUTO-RUN MODE\\nCannot be used during automatic execution\\nPlease stop and try again");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1417,18 +1358,21 @@ namespace Project
|
||||
var selectedtag = selectContorol.Tag.ToString();
|
||||
var vidx = int.Parse(selectedtag);
|
||||
|
||||
SaveFileDialog sd = new SaveFileDialog();
|
||||
sd.Filter = "bitmap|*.bmp";
|
||||
sd.FileName = $"vision{vidx}.bmp";
|
||||
|
||||
|
||||
if (sd.ShowDialog() == DialogResult.OK)
|
||||
using (SaveFileDialog sd = new SaveFileDialog())
|
||||
{
|
||||
if (vidx == 1)
|
||||
sd.Filter = "bitmap|*.bmp";
|
||||
sd.FileName = $"vision{vidx}.bmp";
|
||||
|
||||
|
||||
if (sd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
SaveImage(sd.FileName);
|
||||
if (vidx == 1)
|
||||
{
|
||||
SaveImage(sd.FileName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//private void sbVisTitle1_Click(object sender, EventArgs e)
|
||||
@@ -1508,8 +1452,8 @@ namespace Project
|
||||
}
|
||||
else PUB.log.AddE($"Keyence image collection failed");
|
||||
}
|
||||
var f = new Dialog.fLoaderInfo(PUB.Result.ItemDataC.VisionData.bcdMessage);
|
||||
f.ShowDialog();
|
||||
using (var f = new Dialog.fLoaderInfo(PUB.Result.ItemDataC.VisionData.bcdMessage))
|
||||
f.ShowDialog();
|
||||
}
|
||||
|
||||
private void lbSize1_Click(object sender, EventArgs e)
|
||||
@@ -1646,8 +1590,8 @@ namespace Project
|
||||
|
||||
private void jOBStartToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
var f = new Dialog.fSelectJob();
|
||||
f.ShowDialog();
|
||||
using (var f = new Dialog.fSelectJob())
|
||||
f.ShowDialog();
|
||||
}
|
||||
|
||||
|
||||
@@ -1657,10 +1601,6 @@ namespace Project
|
||||
|
||||
}
|
||||
|
||||
private void button2_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void visionProcess0ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -1702,8 +1642,8 @@ namespace Project
|
||||
private void toolStripButton16_Click(object sender, EventArgs e)
|
||||
{
|
||||
var file = UTIL.ScreenCapture(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height, new Point(0, 0), false);
|
||||
var f = new AR.Dialog.fMailReport("", file, "", AR.SETTING.Data.Bugreport_mail);
|
||||
f.ShowDialog();
|
||||
using (var f = new AR.Dialog.fMailReport("", file, "", AR.SETTING.Data.Bugreport_mail))
|
||||
f.ShowDialog();
|
||||
}
|
||||
|
||||
private void refreshToolStripMenuItem_Click_1(object sender, EventArgs e)
|
||||
@@ -1752,7 +1692,7 @@ namespace Project
|
||||
}
|
||||
if (PUB.sm.isRunning == true)
|
||||
{
|
||||
UTIL.MsgE(Lang.CAN_NOT_RUN_AUTOMODE);
|
||||
UTIL.MsgE("AUTO-RUN MODE\\nCannot be used during automatic execution\\nPlease stop and try again");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1775,8 +1715,8 @@ namespace Project
|
||||
}
|
||||
else
|
||||
{
|
||||
var f = new Dialog.fPickerMove();
|
||||
f.ShowDialog();
|
||||
using (var f = new Dialog.fPickerMove())
|
||||
f.ShowDialog();
|
||||
|
||||
//If home position is not set and sensor is in center, ask for initialization
|
||||
if (PUB.mot.HasHomeSetOff == true && DIO.GetIOInput(eDIName.PICKER_SAFE))
|
||||
@@ -1790,8 +1730,8 @@ namespace Project
|
||||
|
||||
private void regExTestToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
var f = new Dialog.RegExTest();
|
||||
f.ShowDialog();
|
||||
using (var f = new Dialog.RegExTest())
|
||||
f.ShowDialog();
|
||||
}
|
||||
|
||||
private void toolStripMenuItem11_Click(object sender, EventArgs e)
|
||||
@@ -1857,73 +1797,73 @@ namespace Project
|
||||
{
|
||||
if (PUB.sm.isRunning == true)
|
||||
{
|
||||
UTIL.MsgE(Lang.CAN_NOT_RUN_AUTOMODE);
|
||||
UTIL.MsgE("AUTO-RUN MODE\\nCannot be used during automatic execution\\nPlease stop and try again");
|
||||
return;
|
||||
}
|
||||
|
||||
var f = new Model_Operation();
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
if (SETTING.Data.SystemBypass)
|
||||
using (var f = new Model_Operation())
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
UTIL.MsgI("BYPASS is enabled in settings\n" +
|
||||
"Equipment will operate in BYPASS mode regardless of selected model\n" +
|
||||
"[SYSTEM BYPASS]\n" +
|
||||
"1. Camera function will be OFF\n" +
|
||||
"2. Printer function will be OFF");
|
||||
}
|
||||
if (f.Value != "")
|
||||
{
|
||||
var ok = PUB.SelectModelV(f.Value);
|
||||
var motionmode = VAR.BOOL[eVarBool.Use_Conveyor] ? "Conveyor" : "Default";
|
||||
PUB.SelectModelM(motionmode);
|
||||
UpdateControl();
|
||||
|
||||
if (VAR.BOOL[eVarBool.Use_Conveyor])
|
||||
if (SETTING.Data.SystemBypass)
|
||||
{
|
||||
//var dlg = UTIL.MsgQ("Do you want to change the model for other equipment as well?");
|
||||
//if (dlg == DialogResult.Yes)
|
||||
//{
|
||||
// List<String> urls = new List<string>();
|
||||
// var conv = VAR.BOOL[eVarBool.Use_Conveyor] ? "1" : "0";
|
||||
// if (SETTING.Data.McName == "R1")
|
||||
// {
|
||||
// urls.Add($"{SETTING.Data.WebAPI_R2}/ctrl/model/Set/{f.Value}|{conv}");
|
||||
// urls.Add($"{SETTING.Data.WebAPI_R3}/ctrl/model/Set/{f.Value}|{conv}");
|
||||
// }
|
||||
// else if (SETTING.Data.McName == "R2")
|
||||
// {
|
||||
// urls.Add($"{SETTING.Data.WebAPI_R1}/ctrl/model/Set/{f.Value}|{conv}");
|
||||
// urls.Add($"{SETTING.Data.WebAPI_R3}/ctrl/model/Set/{f.Value}|{conv}");
|
||||
// }
|
||||
// else if (SETTING.Data.McName == "R3")
|
||||
// {
|
||||
// urls.Add($"{SETTING.Data.WebAPI_R1}/ctrl/model/Set/{f.Value}|{conv}");
|
||||
// urls.Add($"{SETTING.Data.WebAPI_R2}/ctrl/model/Set/{f.Value}|{conv}");
|
||||
// }
|
||||
|
||||
// await System.Threading.Tasks.Task.Run(() =>
|
||||
// {
|
||||
// if (urls.Any())
|
||||
// {
|
||||
// foreach (var url in urls)
|
||||
// {
|
||||
// PUB.log.AddI($"Automatic model setting: {url}");
|
||||
// var rlt = UTIL.GetStrfromurl(url, out bool iserr, 3000);
|
||||
// if (iserr)
|
||||
// {
|
||||
// PUB.log.Add($"Model setting failed: " + rlt);
|
||||
// }
|
||||
// }
|
||||
|
||||
// }
|
||||
// });
|
||||
//}
|
||||
UTIL.MsgI("BYPASS is enabled in settings\n" +
|
||||
"Equipment will operate in BYPASS mode regardless of selected model\n" +
|
||||
"[SYSTEM BYPASS]\n" +
|
||||
"1. Camera function will be OFF\n" +
|
||||
"2. Printer function will be OFF");
|
||||
}
|
||||
if (f.Value != "")
|
||||
{
|
||||
var ok = PUB.SelectModelV(f.Value);
|
||||
var motionmode = VAR.BOOL[eVarBool.Use_Conveyor] ? "Conveyor" : "Default";
|
||||
PUB.SelectModelM(motionmode);
|
||||
UpdateControl();
|
||||
|
||||
if (VAR.BOOL[eVarBool.Use_Conveyor])
|
||||
{
|
||||
//var dlg = UTIL.MsgQ("Do you want to change the model for other equipment as well?");
|
||||
//if (dlg == DialogResult.Yes)
|
||||
//{
|
||||
// List<String> urls = new List<string>();
|
||||
// var conv = VAR.BOOL[eVarBool.Use_Conveyor] ? "1" : "0";
|
||||
// if (SETTING.Data.McName == "R1")
|
||||
// {
|
||||
// urls.Add($"{SETTING.Data.WebAPI_R2}/ctrl/model/Set/{f.Value}|{conv}");
|
||||
// urls.Add($"{SETTING.Data.WebAPI_R3}/ctrl/model/Set/{f.Value}|{conv}");
|
||||
// }
|
||||
// else if (SETTING.Data.McName == "R2")
|
||||
// {
|
||||
// urls.Add($"{SETTING.Data.WebAPI_R1}/ctrl/model/Set/{f.Value}|{conv}");
|
||||
// urls.Add($"{SETTING.Data.WebAPI_R3}/ctrl/model/Set/{f.Value}|{conv}");
|
||||
// }
|
||||
// else if (SETTING.Data.McName == "R3")
|
||||
// {
|
||||
// urls.Add($"{SETTING.Data.WebAPI_R1}/ctrl/model/Set/{f.Value}|{conv}");
|
||||
// urls.Add($"{SETTING.Data.WebAPI_R2}/ctrl/model/Set/{f.Value}|{conv}");
|
||||
// }
|
||||
|
||||
// await System.Threading.Tasks.Task.Run(() =>
|
||||
// {
|
||||
// if (urls.Any())
|
||||
// {
|
||||
// foreach (var url in urls)
|
||||
// {
|
||||
// PUB.log.AddI($"Automatic model setting: {url}");
|
||||
// var rlt = UTIL.GetStrfromurl(url, out bool iserr, 3000);
|
||||
// if (iserr)
|
||||
// {
|
||||
// PUB.log.Add($"Model setting failed: " + rlt);
|
||||
// }
|
||||
// }
|
||||
|
||||
// }
|
||||
// });
|
||||
//}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
f.Dispose();
|
||||
|
||||
}
|
||||
|
||||
private void displayVARToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
@@ -1953,8 +1893,8 @@ namespace Project
|
||||
|
||||
private void PrintRuleToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
var f = new Dialog.RegExPrintRule();
|
||||
f.ShowDialog();
|
||||
using (var f = new Dialog.RegExPrintRule())
|
||||
f.ShowDialog();
|
||||
}
|
||||
|
||||
private void tRIGONToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
@@ -1969,10 +1909,7 @@ namespace Project
|
||||
PUB.keyenceR.Trigger(false);
|
||||
}
|
||||
|
||||
private void getImageToolStripMenuItem1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void toolStripMenuItem17_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -2025,19 +1962,7 @@ namespace Project
|
||||
}
|
||||
}
|
||||
|
||||
private void tmLiveView_Tick(object sender, EventArgs e)
|
||||
{
|
||||
//tmLiveView.Stop();
|
||||
//if (PUB.sm.Step >= eSMStep.IDLE && PUB.keyence != null && PUB.keyence.IsConnect)
|
||||
//{
|
||||
// if (PUB.keyence.IsTriggerOn)
|
||||
// {
|
||||
// PUB.keyence.UpdateKeyenceImage(ref pictureBox1);
|
||||
// }
|
||||
//}
|
||||
//tmLiveView.Start();
|
||||
|
||||
}
|
||||
|
||||
private void resetToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -2061,18 +1986,18 @@ namespace Project
|
||||
|
||||
if (PUB.sm.isRunning == true)
|
||||
{
|
||||
UTIL.MsgE(Lang.CAN_NOT_RUN_AUTOMODE);
|
||||
UTIL.MsgE("AUTO-RUN MODE\\nCannot be used during automatic execution\\nPlease stop and try again");
|
||||
return;
|
||||
}
|
||||
|
||||
var f = new Model_Motion();
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
if (f.Value != "")
|
||||
using (var f = new Model_Motion())
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
PUB.SelectModelM(f.Value);
|
||||
if (f.Value != "")
|
||||
{
|
||||
PUB.SelectModelM(f.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void motionEmulatorToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
@@ -2125,24 +2050,15 @@ namespace Project
|
||||
WS_Send(eWorkPort.Left, PUB.wsL, PUB.Result.ItemDataL.guid, "TRIG", PUB.Result.ItemDataL.VisionData.PrintQRData);
|
||||
}
|
||||
|
||||
private void toolStripMenuItem23_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
private void toolStripMenuItem24_Click(object sender, EventArgs e)
|
||||
{
|
||||
WS_Send(eWorkPort.Left, PUB.wsL, string.Empty, "OFF", string.Empty);
|
||||
}
|
||||
|
||||
private void toolStripMenuItem25_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void postDataToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
var f = new Dialog.Debug.fSendInboutData();
|
||||
f.ShowDialog();
|
||||
using (var f = new Dialog.Debug.fSendInboutData())
|
||||
f.ShowDialog();
|
||||
}
|
||||
|
||||
private void manualPrintToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
@@ -2168,9 +2084,8 @@ namespace Project
|
||||
return;
|
||||
}
|
||||
//show io panerl
|
||||
var f = new Dialog.fIOMonitor();
|
||||
f.ShowDialog();
|
||||
f.Dispose();
|
||||
using (var f = new Dialog.fIOMonitor())
|
||||
f.ShowDialog();
|
||||
}
|
||||
|
||||
private void sWPLCToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user