Explorar el Código

版本-V1.0 正式版

master
CPL hace 2 años
padre
commit
4f1be7340a
Se han modificado 46 ficheros con 2213 adiciones y 1772 borrados
  1. BIN
     
  2. BIN
     
  3. BIN
     
  4. BIN
     
  5. BIN
     
  6. BIN
     
  7. BIN
     
  8. BIN
     
  9. BIN
     
  10. BIN
     
  11. BIN
     
  12. BIN
     
  13. BIN
     
  14. BIN
     
  15. BIN
     
  16. BIN
     
  17. BIN
     
  18. BIN
     
  19. +56
    -21
      MaiMuControl/MaiMuControl/Device/AxisDev/Advantech/AdvantechMotion.cs
  20. +21
    -9
      MaiMuControl/MaiMuControl/Device/AxisDev/AxisDev.cs
  21. +12
    -2
      MaiMuControl/MaiMuControl/Device/AxisDev/PMS/PmsMotion.cs
  22. +28
    -28
      MaiMuControl/MaiMuControl/Device/AxisDev/UIAxisCfg.Designer.cs
  23. +4
    -4
      MaiMuControl/MaiMuControl/Device/AxisDev/UIAxisCfg.cs
  24. +1553
    -1553
      MaiMuControl/MaiMuControl/Device/AxisDev/UIAxisCfg.resx
  25. +19
    -6
      MaiMuControl/MaiMuControl/Device/AxisDev/UIAxisDev.Designer.cs
  26. +12
    -10
      MaiMuControl/MaiMuControl/Device/AxisDev/UIAxisDev.cs
  27. +14
    -17
      MaiMuControl/MaiMuControl/Device/CamDev/CamDev.cs
  28. +5
    -5
      MaiMuControl/MaiMuControl/Device/CamDev/MvsCamera/MvsCamDev.cs
  29. +3
    -3
      MaiMuControl/MaiMuControl/Device/CamDev/UICamDev.Designer.cs
  30. +1
    -1
      MaiMuControl/MaiMuControl/Device/CamDev/UICamDev.cs
  31. +33
    -16
      MaiMuControl/MaiMuControl/Device/LightDev/CST/CSTLight.cs
  32. +24
    -10
      MaiMuControl/MaiMuControl/Device/LightDev/UILightDev.cs
  33. +94
    -37
      MaiMuControl/MaiMuControl/Form1.Designer.cs
  34. +27
    -3
      MaiMuControl/MaiMuControl/Form1.cs
  35. +8
    -6
      MaiMuControl/MaiMuControl/MaiMuControl.csproj
  36. +21
    -12
      MaiMuControl/MaiMuControl/SysStatusMgr/StatusMgr/StatusMgr.cs
  37. +1
    -1
      MaiMuControl/MaiMuControl/SysStatusMgr/UserMgr/UserLoginFrm.cs
  38. +1
    -0
      MaiMuControl/MaiMuControl/SysStatusMgr/UserMgr/UserMgr.cs
  39. +25
    -16
      MaiMuControl/MaiMuControl/UIKits/MaiMuMenu/UITitel.Designer.cs
  40. +64
    -2
      MaiMuControl/MaiMuControl/UIKits/MaiMuMenu/UITitel.cs
  41. +32
    -0
      MaiMuControl/MaiMuControl/UIKits/MaiMuMenu/UITitel.resx
  42. +7
    -7
      MaiMuControl/MaiMuControl/bin/x64/Debug/SysConfig.ini
  43. +3
    -0
      MaiMuControl/MaiMuControl/bin/x64/Debug/SystemDefault.ini
  44. BIN
     
  45. BIN
     
  46. +145
    -3
      MaiMuControl/MaiMuControl/obj/x64/Debug/MaiMuControl.csproj.FileListAbsolute.txt


















+ 56
- 21
MaiMuControl/MaiMuControl/Device/AxisDev/Advantech/AdvantechMotion.cs Ver fichero

@@ -3,9 +3,11 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using ToolKits.Ini;
namespace MaiMuControl.Device.AxisDev.Advantech
@@ -53,6 +55,8 @@ namespace MaiMuControl.Device.AxisDev.Advantech
/// </summary>
private uint[] _AxEnableEvtArray = new uint[32];
private uint[] _GpEnableEvt = new uint[32];
private BoardCfgParams _BoardCfgParams;
#endregion
#region 板卡初始化
@@ -86,7 +90,7 @@ namespace MaiMuControl.Device.AxisDev.Advantech
/// </summary>
/// <param name="dev_no">板卡号 -1为所有板卡</param>
/// <returns></returns>
public override int OpenBoard(int dev_no)
public override int OpenBoard(int dev_no, string cfgPath = "")
{
//判断是否初始化PCI
if (_DevList == null || _DevList.Count < 1)
@@ -166,10 +170,23 @@ namespace MaiMuControl.Device.AxisDev.Advantech
}
}
//根据加载的文件设置设备的所有配置(需在打开每个轴 mAcm_AxSetSvOn 后设置)
if (!string.IsNullOrEmpty(cfgPath))
{
if (File.Exists(cfgPath))
{
for (int i = 0; i < _DeviceHandle.Length; i++)
{
uResult = Motion.mAcm_DevLoadConfig(_DeviceHandle[i], cfgPath);
if (uResult != (uint)ErrorCode.SUCCESS)
throw new Exception("Load Config Failed With Error Code: [0x" + Convert.ToString(uResult, 16) + "]");
}
}
}
Thread.Sleep(500);
for (int i = 0; i < _AxisCount; i++)
@@ -185,7 +202,9 @@ namespace MaiMuControl.Device.AxisDev.Advantech
//AxEnableEvtArray[i] |= (uint)EventType.EVT_AX_VH_END;//轴运行速度结束时,开始减速
_AxEnableEvtArray[i] |= (uint)EventType.EVT_AX_HOME_DONE;
_AxEnableEvtArray[i] |= (uint)EventType.EVT_AX_ERROR;
ResetAxisState(i);
}
//uResult = Motion.mAcm_EnableMotionEvent(_DeviceHandle, _AxEnableEvtArray, _GpEnableEvt, _AxisCount, 3);
@@ -213,6 +232,19 @@ namespace MaiMuControl.Device.AxisDev.Advantech
{
throw new Exception("此板卡不支持网口");
}
public override int LoadBoardParams(int devNo, BoardCfgParams param)
{
int ret = 0;
ret = (int)Motion.mAcm_SetU32Property(_DeviceHandle[devNo], (uint)PropertyID.CFG_DevEmgLogic, (uint)param.DevEmgLogic);
_BoardCfgParams = param;
return ret;
}
public override BoardCfgParams GetBoardParams()
{
return _BoardCfgParams;
}
/// <summary>
/// 关闭运动板卡
/// </summary>
@@ -279,10 +311,11 @@ namespace MaiMuControl.Device.AxisDev.Advantech
return (int)uResult;
}
else
return -1;
return -1;
}
public override int GetBoardDevNum()
{
if (_DeviceHandle != null)
@@ -333,6 +366,7 @@ namespace MaiMuControl.Device.AxisDev.Advantech
iniHelper.ReadString(section, "Name", out sValue);
param.Name = sValue.Trim();
return param;
}
@@ -354,6 +388,8 @@ namespace MaiMuControl.Device.AxisDev.Advantech
iniHelper.WriteDouble(section, "RunVel", homeVelocityParams.RunVel);
iniHelper.WriteString(section, "Name", homeVelocityParams.Name);
return 0;
}
@@ -472,6 +508,10 @@ namespace MaiMuControl.Device.AxisDev.Advantech
public override int BackHome(int axis_no, HomeVelocityParams velocityParams)
{
uint result = 0;
ResetAxisState(axis_no);
if (velocityParams.IsValid())
{
result = Motion.mAcm_SetF64Property(_Axishand[axis_no], (uint)PropertyID.PAR_AxVelLow, velocityParams.ToPulse(velocityParams.StartVel));
@@ -667,27 +707,22 @@ namespace MaiMuControl.Device.AxisDev.Advantech
do
{
//判断是否正常停止
//检查运动是否完成
Ret = Motion.mAcm_AxGetState(_Axishand[Axis_no], ref sts);
if (Ret != (uint)ErrorCode.SUCCESS)
return -1;
if (((sts >> (int)(AxisState.STA_AX_ERROR_STOP)) & 1) == 1)
{
return -1;
}
statue = (sts >> (ushort)(AxisState.STA_AX_READY)) & 1;
return (int)Ret;
//判断INP
/*
if (axisLocationInfo.HasExtEncode == 1)
if (sts != (uint)AxisState.STA_AX_READY)
{
inp = APS168.APS_motion_io_status(axisLocationInfo.AxisNo);
inp = (inp >> (int)(APS_Define.MIO_INP)) & 1;
}*/
//break条件是否满足
if (statue == 1 && inp == 1)
//出现急停
if (sts == (uint)AxisState.STA_AX_ERROR_STOP)
{
return (int)AxisState.STA_AX_ERROR_STOP;
}
}
else
break;
//检查是否超时
strtime.Stop();


+ 21
- 9
MaiMuControl/MaiMuControl/Device/AxisDev/AxisDev.cs Ver fichero

@@ -66,7 +66,7 @@ namespace MaiMuControl.Device.AxisDev
/// <returns></returns>
public bool IsValid()
{
if ((Acc > 0) && (Dec > 0) && (StartVel > 0) && (RunVel > 0) & (MM2PulseNum > 0))
if ((Acc > 0) && (Dec > 0) && (StartVel >= 0) && (RunVel > 0) & (MM2PulseNum > 0))
return true;
else
return false;
@@ -112,10 +112,7 @@ namespace MaiMuControl.Device.AxisDev
/// 回原方向 0:正 1:负
/// </summary>
public int HomeDir;
/// <summary>
/// 急停电平逻辑
/// </summary>
public int DevEmgLogic;
public HomeVelocityParams(double acc, double dec, double stVel, double edVel, int ST, int mode, int dir, int MM2Pulse, int EmgLogic)
{
@@ -128,7 +125,7 @@ namespace MaiMuControl.Device.AxisDev
this.HomeMode = mode;
this.HomeDir = dir;
this.Name = "Axis";
this.DevEmgLogic = EmgLogic;
}
public HomeVelocityParams()
{
@@ -141,7 +138,7 @@ namespace MaiMuControl.Device.AxisDev
this.HomeDir = 0;
this.HomeMode = 0;
this.Name = "Axis";
this.DevEmgLogic = 0;
}
/// <summary>
/// 判断参数是否有效
@@ -149,7 +146,7 @@ namespace MaiMuControl.Device.AxisDev
/// <returns></returns>
public bool IsValid()
{
if ((Acc > 0) && (Dec > 0) && (StartVel > 0) && (RunVel > 0) & (MM2PulseNum > 0))
if ((Acc > 0) && (Dec > 0) && (StartVel >= 0) && (RunVel > 0) & (MM2PulseNum > 0))
return true;
else
return false;
@@ -209,6 +206,16 @@ namespace MaiMuControl.Device.AxisDev
#endregion
#region 通用板卡顶级抽象
public class BoardCfgParams
{
public int DevEmgLogic;
public BoardCfgParams()
{
DevEmgLogic = 0;
}
}
/// <summary>
/// 板卡共有方法(顶层)
/// </summary>
@@ -226,11 +233,16 @@ namespace MaiMuControl.Device.AxisDev
/// </summary>
/// <param name="dev_no"></param>
/// <returns></returns>
public abstract int OpenBoard(int dev_no);
public abstract int OpenBoard(int dev_no, string cfgPath = "");
public abstract int OpenBoardByCom(string comName, int baud);
public abstract int OpenBoardByTcp(string ip, int port);
public abstract int LoadBoardParams(int devNo, BoardCfgParams param);
public abstract BoardCfgParams GetBoardParams();
/// <summary>
/// 关闭板卡
/// </summary>


+ 12
- 2
MaiMuControl/MaiMuControl/Device/AxisDev/PMS/PmsMotion.cs Ver fichero

@@ -1,4 +1,5 @@
using System;
using Advantech.Motion;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
@@ -122,7 +123,7 @@ namespace MaiMuControl.Device.AxisDev.PMS
/// </summary>
/// <param name="dev_no"></param>
/// <returns></returns>
public override int OpenBoard(int dev_no)
public override int OpenBoard(int dev_no, string cfgPath)
{
throw new Exception("此板卡不支持PCI");
}
@@ -155,6 +156,15 @@ namespace MaiMuControl.Device.AxisDev.PMS
}
return -1;
}
public override int LoadBoardParams(int devNo, BoardCfgParams param)
{
throw new Exception("此电机不支持加载配置功能");
}
public override BoardCfgParams GetBoardParams()
{
throw new Exception("此电机不支持加载配置功能");
}
/// <summary>
/// 关闭板卡
/// </summary>


+ 28
- 28
MaiMuControl/MaiMuControl/Device/AxisDev/UIAxisCfg.Designer.cs Ver fichero

@@ -35,6 +35,8 @@
this.cbHomeMode = new System.Windows.Forms.ComboBox();
this.label16 = new System.Windows.Forms.Label();
this.AxisParamList = new System.Windows.Forms.GroupBox();
this.cbEmgLogic = new System.Windows.Forms.ComboBox();
this.label17 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.numPulse = new System.Windows.Forms.NumericUpDown();
this.label15 = new System.Windows.Forms.Label();
@@ -61,8 +63,6 @@
this.bnSave = new System.Windows.Forms.Button();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.tbCardType = new System.Windows.Forms.TextBox();
this.cbEmgLogic = new System.Windows.Forms.ComboBox();
this.label17 = new System.Windows.Forms.Label();
this.AxisParamList.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numPulse)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
@@ -121,8 +121,6 @@
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.AxisParamList.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(8)))), ((int)(((byte)(31)))), ((int)(((byte)(120)))));
this.AxisParamList.Controls.Add(this.cbEmgLogic);
this.AxisParamList.Controls.Add(this.label17);
this.AxisParamList.Controls.Add(this.label14);
this.AxisParamList.Controls.Add(this.numPulse);
this.AxisParamList.Controls.Add(this.label15);
@@ -158,6 +156,30 @@
this.AxisParamList.TabStop = false;
this.AxisParamList.Text = "回原参数";
//
// cbEmgLogic
//
this.cbEmgLogic.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbEmgLogic.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cbEmgLogic.FormattingEnabled = true;
this.cbEmgLogic.Items.AddRange(new object[] {
"低电平",
"高电平"});
this.cbEmgLogic.Location = new System.Drawing.Point(551, 7);
this.cbEmgLogic.Name = "cbEmgLogic";
this.cbEmgLogic.Size = new System.Drawing.Size(155, 29);
this.cbEmgLogic.TabIndex = 28;
//
// label17
//
this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label17.ForeColor = System.Drawing.Color.White;
this.label17.Location = new System.Drawing.Point(467, 10);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(78, 21);
this.label17.TabIndex = 27;
this.label17.Text = "急停电平:";
//
// label14
//
this.label14.AutoSize = true;
@@ -514,36 +536,14 @@
this.tbCardType.Text = "X轴";
this.tbCardType.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// cbEmgLogic
//
this.cbEmgLogic.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbEmgLogic.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cbEmgLogic.FormattingEnabled = true;
this.cbEmgLogic.Items.AddRange(new object[] {
"低电平",
"高电平"});
this.cbEmgLogic.Location = new System.Drawing.Point(480, 431);
this.cbEmgLogic.Name = "cbEmgLogic";
this.cbEmgLogic.Size = new System.Drawing.Size(155, 29);
this.cbEmgLogic.TabIndex = 28;
//
// label17
//
this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label17.ForeColor = System.Drawing.Color.White;
this.label17.Location = new System.Drawing.Point(366, 434);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(78, 21);
this.label17.TabIndex = 27;
this.label17.Text = "急停电平:";
//
// UIAxisCfg
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(8)))), ((int)(((byte)(31)))), ((int)(((byte)(120)))));
this.Controls.Add(this.cbEmgLogic);
this.Controls.Add(this.tbCardType);
this.Controls.Add(this.label17);
this.Controls.Add(this.bnSave);
this.Controls.Add(this.label2);
this.Controls.Add(this.cbAxisName);


+ 4
- 4
MaiMuControl/MaiMuControl/Device/AxisDev/UIAxisCfg.cs Ver fichero

@@ -27,6 +27,8 @@ namespace MaiMuControl.Device.AxisDev
{
//显示板卡型号
tbCardType.Text = EnumExtension.GetEnumDescription(type);
cbEmgLogic.SelectedIndex = axisDev.GetBoardParams().DevEmgLogic;
//显示回原方式,方向,tS曲线
cbTS.Items.Clear();
Type VelType = typeof(VelocityCurveType);
@@ -55,8 +57,6 @@ namespace MaiMuControl.Device.AxisDev
}
cbHomeMode.SelectedIndex = 0;
cbEmgLogic.SelectedIndex = 0;
if (File.Exists(cfgParh))
{
_CfgPath = cfgParh;
@@ -104,7 +104,7 @@ namespace MaiMuControl.Device.AxisDev
cbTS.SelectedIndex = _HomeParams[axisNo].JerkT_S;
cbHomeMode.SelectedIndex = _HomeParams[axisNo].HomeMode;
cbHomeDir.SelectedIndex = _HomeParams[axisNo].HomeDir;
cbEmgLogic.SelectedIndex = _HomeParams[axisNo].DevEmgLogic;
}
}
@@ -120,7 +120,7 @@ namespace MaiMuControl.Device.AxisDev
_HomeParams[axisNo].JerkT_S = cbTS.SelectedIndex;
_HomeParams[axisNo].HomeMode = cbHomeMode.SelectedIndex;
_HomeParams[axisNo].HomeDir = cbHomeDir.SelectedIndex;
_HomeParams[axisNo].DevEmgLogic = cbEmgLogic.SelectedIndex;
if (File.Exists(_CfgPath))
ret = _AxisDev.WriteAxisCfg(_CfgPath, axisNo, _HomeParams[axisNo]);
return ret;


+ 1553
- 1553
MaiMuControl/MaiMuControl/Device/AxisDev/UIAxisCfg.resx
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 19
- 6
MaiMuControl/MaiMuControl/Device/AxisDev/UIAxisDev.Designer.cs Ver fichero

@@ -86,6 +86,7 @@
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.tbAxisName = new System.Windows.Forms.TextBox();
this.tbCardType = new System.Windows.Forms.TextBox();
this.checkDone = new System.Windows.Forms.CheckBox();
this.StatusStrip.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit();
this.AxisParamList.SuspendLayout();
@@ -268,7 +269,7 @@
this.numET.TabIndex = 13;
this.numET.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.numET.Value = new decimal(new int[] {
500,
200,
0,
0,
0});
@@ -424,13 +425,13 @@
this.numCurPos.DecimalPlaces = 3;
this.numCurPos.Location = new System.Drawing.Point(147, 41);
this.numCurPos.Maximum = new decimal(new int[] {
100000,
0,
1215752192,
23,
0,
0});
this.numCurPos.Minimum = new decimal(new int[] {
100000,
0,
1215752192,
23,
0,
-2147483648});
this.numCurPos.Name = "numCurPos";
@@ -452,6 +453,7 @@
// groupBox2
//
this.groupBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(51)))), ((int)(((byte)(122)))));
this.groupBox2.Controls.Add(this.checkDone);
this.groupBox2.Controls.Add(this.numDist);
this.groupBox2.Controls.Add(this.btnMove);
this.groupBox2.Controls.Add(this.label13);
@@ -495,7 +497,7 @@
this.btnMove.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Cyan;
this.btnMove.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnMove.ForeColor = System.Drawing.Color.Black;
this.btnMove.Location = new System.Drawing.Point(145, 136);
this.btnMove.Location = new System.Drawing.Point(184, 136);
this.btnMove.Name = "btnMove";
this.btnMove.Size = new System.Drawing.Size(114, 35);
this.btnMove.TabIndex = 10;
@@ -832,6 +834,16 @@
this.tbCardType.Text = "PCI-1730,BID#0";
this.tbCardType.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// checkDone
//
this.checkDone.AutoSize = true;
this.checkDone.Location = new System.Drawing.Point(43, 142);
this.checkDone.Name = "checkDone";
this.checkDone.Size = new System.Drawing.Size(109, 25);
this.checkDone.TabIndex = 19;
this.checkDone.Text = "等待到位?";
this.checkDone.UseVisualStyleBackColor = true;
//
// UIAxisDev
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@@ -936,5 +948,6 @@
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.TextBox tbAxisName;
private System.Windows.Forms.TextBox tbCardType;
private System.Windows.Forms.CheckBox checkDone;
}
}

+ 12
- 10
MaiMuControl/MaiMuControl/Device/AxisDev/UIAxisDev.cs Ver fichero

@@ -79,7 +79,7 @@ namespace MaiMuControl.Device.AxisDev
_HomeParams[i] = _AxisDev.ReadAxisCfg(_CfgPath, i);
CreatDefCfg = true;
}
_VelParams[i] = new VelocityCurveParams(500, 500, 0, 500, 1, _HomeParams[i].MM2PulseNum);
_VelParams[i] = new VelocityCurveParams(500, 500, 0, 200, 1, _HomeParams[i].MM2PulseNum);
_VelParams[i].Name = _HomeParams[i].Name;
cbAxisName.Items.Add("Axis-" + i.ToString());
}
@@ -124,7 +124,7 @@ namespace MaiMuControl.Device.AxisDev
{
int sv = _AxisDev.GetServo(axisNo);
AxisSignalState axisSignal = _AxisDev.GetAxisState(axisNo);
double pos = _AxisDev.GetFeedbackPos(axisNo)/ (double)_VelParams[axisNo].MM2PulseNum;
double pos = _AxisDev.GetFeedbackPos(axisNo)/ ((double)_VelParams[axisNo].MM2PulseNum == 0? 1: (double)_VelParams[axisNo].MM2PulseNum);
ledSV.BackColor = sv == 1 ? Color.Lime : Color.Gray;
ledPL.BackColor = axisSignal.PosEL == GeneralElectricalLevelMode.High ? Color.Lime : Color.Gray;
ledNL.BackColor = axisSignal.NegEL == GeneralElectricalLevelMode.High ? Color.Lime : Color.Gray;
@@ -244,17 +244,19 @@ namespace MaiMuControl.Device.AxisDev
LogSts.Text = "相对运动 : " + numDist.Value;
_AxisDev.MoveRelValue(cbAxisName.SelectedIndex, _VelParams[cbAxisName.SelectedIndex], (double)numDist.Value);
}
int ret = _AxisDev.CheckHomeDone(cbAxisName.SelectedIndex, 90);
if (ret < 0)
if (this.checkDone.Checked)
{
if (ret == -2)
LogSts.Text = "移动超时";
int ret = _AxisDev.CheckHomeDone(cbAxisName.SelectedIndex, 90);
if (ret < 0)
{
if (ret == -2)
LogSts.Text = "移动超时";
else
LogSts.Text = "移动异常";
}
else
LogSts.Text = "移动异常";
LogSts.Text = "到位成功";
}
else
LogSts.Text = "到位成功";
}
}


+ 14
- 17
MaiMuControl/MaiMuControl/Device/CamDev/CamDev.cs Ver fichero

@@ -326,21 +326,21 @@ namespace MaiMuControl.Device.CamDev
}
[DllImport("kernel32.dll")]
public static extern void CopyMemory(int Destination, int add, int Length);
public static extern void CopyMemory(int Destination, int add, long Length);
/// <summary>
/// HObject转8位Bitmap(单通道)
/// </summary>
/// <param name="image"></param>
/// <param name="res"></param>
private static void HObject2Bpp8(HObject image, out Bitmap res)
public static void HObject2Bpp8(HObject image, out Bitmap res)
{
try
{
HTuple hpoint, type, width, height;
const int Alpha = 255;
int[] ptr = new int[2];
HOperatorSet.GetImagePointer1(image, out hpoint, out type, out width, out height);
res = new Bitmap(width, height, PixelFormat.Format8bppIndexed);
@@ -353,19 +353,16 @@ namespace MaiMuControl.Device.CamDev
Rectangle rect = new Rectangle(0, 0, width, height);
BitmapData bitmapData = res.LockBits(rect, ImageLockMode.WriteOnly, PixelFormat.Format8bppIndexed);
int PixelSize = Bitmap.GetPixelFormatSize(bitmapData.PixelFormat) / 8;
ptr[0] = bitmapData.Scan0.ToInt32();
ptr[1] = hpoint.I;
if (width % 4 == 0)
CopyMemory(ptr[0], ptr[1], width * height * PixelSize);
else
{
for (int i = 0; i < height - 1; i++)
{
ptr[1] += width;
CopyMemory(ptr[0], ptr[1], width * PixelSize);
ptr[0] += bitmapData.Stride;
}
}
IntPtr ptr1 = bitmapData.Scan0;
IntPtr ptr2 = hpoint;
int bytes = width * height;
byte[] rgbvalues = new byte[bytes];
System.Runtime.InteropServices.Marshal.Copy(ptr2, rgbvalues, 0, bytes);
System.Runtime.InteropServices.Marshal.Copy(rgbvalues, 0, ptr1, bytes);
res.UnlockBits(bitmapData);
}
catch (Exception ex)
@@ -380,7 +377,7 @@ namespace MaiMuControl.Device.CamDev
/// </summary>
/// <param name="image"></param>
/// <param name="res"></param>
private static void HObject2Bpp24(HObject image, out Bitmap res)
public static void HObject2Bpp24(HObject image, out Bitmap res)
{
try
{


+ 5
- 5
MaiMuControl/MaiMuControl/Device/CamDev/MvsCamera/MvsCamDev.cs Ver fichero

@@ -727,11 +727,11 @@ namespace MaiMuControl.Device.CamDev.MvsCamera
{
return CO_FAIL;
}
nRet = this.m_pCSI.MV_CC_OpenDevice_NET();
if (MyCamera.MV_OK != nRet)
{
return CO_FAIL;
}
//nRet = this.m_pCSI.MV_CC_OpenDevice_NET();
//if (MyCamera.MV_OK != nRet)
//{
// return CO_FAIL;
//}
}
return CO_OK;
}


+ 3
- 3
MaiMuControl/MaiMuControl/Device/CamDev/UICamDev.Designer.cs Ver fichero

@@ -182,7 +182,7 @@
this.numFarm.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.numFarm.Location = new System.Drawing.Point(69, 265);
this.numFarm.Maximum = new decimal(new int[] {
10000,
100000,
0,
0,
0});
@@ -208,7 +208,7 @@
this.numGain.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.numGain.Location = new System.Drawing.Point(69, 199);
this.numGain.Maximum = new decimal(new int[] {
10000,
1000000,
0,
0,
0});
@@ -234,7 +234,7 @@
this.numExposure.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.numExposure.Location = new System.Drawing.Point(69, 131);
this.numExposure.Maximum = new decimal(new int[] {
10000,
1000000,
0,
0,
0});


+ 1
- 1
MaiMuControl/MaiMuControl/Device/CamDev/UICamDev.cs Ver fichero

@@ -78,7 +78,7 @@ namespace MaiMuControl.Device.CamDev
{
//正常拍照
//_CamDev.ClearImageQueue();
Acquisition acq = _CamDev.Snap(1, 100);
Acquisition acq = _CamDev.Snap(1, 5000);
if (acq.GrabStatus != "GrabPass")
{
LogSts.Text = "获取图片失败!";


+ 33
- 16
MaiMuControl/MaiMuControl/Device/LightDev/CST/CSTLight.cs Ver fichero

@@ -1,4 +1,5 @@
using System;
using Google.Protobuf.WellKnownTypes;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
@@ -63,7 +64,12 @@ namespace MaiMuControl.Device.LightDev.CST
/// <returns></returns>
public override int OpenLight(int channel)
{
throw new Exception($"光源开启未定义!");
int val = 0;
if (_Params.Lum[channel] == 0)
val = 100;
else
val = (int)_Params.Lum[channel];
return SetLightDigitalValue(channel, val);
}
/// <summary>
@@ -72,7 +78,11 @@ namespace MaiMuControl.Device.LightDev.CST
/// <returns></returns>
public override int CloseLight(int channel)
{
throw new Exception($"光源关闭未定义!");
if (!_IsInit)
return -1;
if (SetDigitalValue(channel, 0, _PortHandle) != SUCCESS)
return -2;// false;
return 0;
}
#endregion
@@ -124,10 +134,17 @@ namespace MaiMuControl.Device.LightDev.CST
iniHelper.WriteString(section, "IP", paran.IP);
iniHelper.WriteInteger(section, "Port", paran.Port);
iniHelper.WriteDouble(section, "Lum1", paran.Lum[0]);
iniHelper.WriteDouble(section, "Lum2", paran.Lum[1]);
iniHelper.WriteDouble(section, "Lum3", paran.Lum[2]);
iniHelper.WriteDouble(section, "Lum4", paran.Lum[3]);
iniHelper.WriteInteger(section, "ChCount", paran.ChCount);
for (int i = 0; i < paran.ChCount; i++)
{
iniHelper.WriteDouble(section, "Lum" + (i + 1).ToString(), paran.Lum[i]);
}
//iniHelper.WriteDouble(section, "Lum1", paran.Lum[0]);
//iniHelper.WriteDouble(section, "Lum2", paran.Lum[1]);
//iniHelper.WriteDouble(section, "Lum3", paran.Lum[2]);
//iniHelper.WriteDouble(section, "Lum4", paran.Lum[3]);
return 0;
}
@@ -147,7 +164,7 @@ namespace MaiMuControl.Device.LightDev.CST
LightParams param = new LightParams();
param.Lum = new double[4];
string section = "LightRsee-" + devName;
string section = "LightCST-" + devName;
iniHelper.ReadString(section, "DeviceName", out sValue);
param.DevName = sValue.Trim();
@@ -160,14 +177,14 @@ namespace MaiMuControl.Device.LightDev.CST
iniHelper.ReadInteger(section, "Port", out iValue);
param.Port = iValue;
iniHelper.ReadDouble(section, "Lum1", out dValue);
param.Lum[0] = dValue;
iniHelper.ReadDouble(section, "Lum2", out dValue);
param.Lum[1] = dValue;
iniHelper.ReadDouble(section, "Lum3", out dValue);
param.Lum[2] = dValue;
iniHelper.ReadDouble(section, "Lum4", out dValue);
param.Lum[3] = dValue;
iniHelper.ReadInteger(section, "ChCount", out iValue);
param.ChCount = iValue;
param.Lum = new double[param.ChCount];
for (int i = 0; i < param.ChCount; i++)
{
iniHelper.ReadDouble(section, "Lum" + (i + 1).ToString(), out dValue);
param.Lum[i] = dValue;
}
return param;
}


+ 24
- 10
MaiMuControl/MaiMuControl/Device/LightDev/UILightDev.cs Ver fichero

@@ -92,20 +92,34 @@ namespace MaiMuControl.Device.LightDev
private void btnOpen_Click(object sender, EventArgs e)
{
int ret = _Dev.OpenLight(cbCH.SelectedIndex + 1);
if (ret == 0)
LogSts.Text = "打开光源";
else
LogSts.Text = "打开光源失败";
try
{
int ret = _Dev.OpenLight(cbCH.SelectedIndex + 1);
if (ret == 0)
LogSts.Text = "打开光源";
else
LogSts.Text = "打开光源失败";
}
catch(Exception ex)
{
LogSts.Text = "打开光源失败:" + ex.Message;
}
}
private void btnClose_Click(object sender, EventArgs e)
{
int ret = _Dev.CloseLight(cbCH.SelectedIndex + 1);
if (ret == 0)
LogSts.Text = "关闭光源";
else
LogSts.Text = "关闭光源失败";
try
{
int ret = _Dev.CloseLight(cbCH.SelectedIndex + 1);
if (ret == 0)
LogSts.Text = "关闭光源";
else
LogSts.Text = "关闭光源失败";
}
catch (Exception ex)
{
LogSts.Text = "关闭光源失败:" + ex.Message;
}
}
private void btnSet_Click(object sender, EventArgs e)


+ 94
- 37
MaiMuControl/MaiMuControl/Form1.Designer.cs Ver fichero

@@ -43,22 +43,28 @@
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem();
this.uiTitel1 = new MaiMuControl.UIKits.MaiMuMenu.UITitel();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.button4 = new System.Windows.Forms.Button();
this.uiLightDev1 = new MaiMuControl.Device.LightDev.UILightDev();
this.uiioCardDev1 = new MaiMuControl.Device.IOCardDev.UIIOCardDev();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.uiAxisDev1 = new MaiMuControl.Device.AxisDev.UIAxisDev();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.uiCamDev1 = new MaiMuControl.Device.CamDev.UICamDev();
this.uiTitel1 = new MaiMuControl.UIKits.MaiMuMenu.UITitel();
this.tabPage5 = new System.Windows.Forms.TabPage();
this.imageBox1 = new ImageToolKits.ImageBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.menuStrip1.SuspendLayout();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabPage2.SuspendLayout();
this.tabPage3.SuspendLayout();
this.tabPage4.SuspendLayout();
this.tabPage5.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// button1
@@ -114,7 +120,7 @@
this.statusStrip1.Location = new System.Drawing.Point(0, 711);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.ManagerRenderMode;
this.statusStrip1.Size = new System.Drawing.Size(920, 22);
this.statusStrip1.Size = new System.Drawing.Size(938, 22);
this.statusStrip1.TabIndex = 7;
this.statusStrip1.Text = "statusStrip1";
//
@@ -127,7 +133,7 @@
this.toolStripMenuItem4});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(920, 25);
this.menuStrip1.Size = new System.Drawing.Size(938, 25);
this.menuStrip1.TabIndex = 9;
this.menuStrip1.Text = "menuStrip1";
//
@@ -179,21 +185,13 @@
this.toolStripMenuItem4.Size = new System.Drawing.Size(27, 21);
this.toolStripMenuItem4.Text = "4";
//
// uiTitel1
//
this.uiTitel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(8)))), ((int)(((byte)(31)))), ((int)(((byte)(120)))));
this.uiTitel1.Dock = System.Windows.Forms.DockStyle.Top;
this.uiTitel1.Location = new System.Drawing.Point(0, 25);
this.uiTitel1.Name = "uiTitel1";
this.uiTitel1.Size = new System.Drawing.Size(920, 44);
this.uiTitel1.TabIndex = 8;
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Controls.Add(this.tabPage4);
this.tabControl1.Controls.Add(this.tabPage5);
this.tabControl1.Location = new System.Drawing.Point(12, 132);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
@@ -222,6 +220,38 @@
this.tabPage2.Text = "tabPage2";
this.tabPage2.UseVisualStyleBackColor = true;
//
// tabPage3
//
this.tabPage3.Controls.Add(this.uiAxisDev1);
this.tabPage3.Location = new System.Drawing.Point(4, 22);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(888, 530);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "tabPage3";
this.tabPage3.UseVisualStyleBackColor = true;
//
// tabPage4
//
this.tabPage4.Controls.Add(this.uiCamDev1);
this.tabPage4.Location = new System.Drawing.Point(4, 22);
this.tabPage4.Name = "tabPage4";
this.tabPage4.Padding = new System.Windows.Forms.Padding(3);
this.tabPage4.Size = new System.Drawing.Size(888, 530);
this.tabPage4.TabIndex = 3;
this.tabPage4.Text = "tabPage4";
this.tabPage4.UseVisualStyleBackColor = true;
//
// button4
//
this.button4.Location = new System.Drawing.Point(734, 97);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(152, 23);
this.button4.TabIndex = 11;
this.button4.Text = "hobjectToBitmap";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// uiLightDev1
//
this.uiLightDev1.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
@@ -243,17 +273,6 @@
this.uiioCardDev1.Size = new System.Drawing.Size(849, 491);
this.uiioCardDev1.TabIndex = 0;
//
// tabPage3
//
this.tabPage3.Controls.Add(this.uiAxisDev1);
this.tabPage3.Location = new System.Drawing.Point(4, 22);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(888, 530);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "tabPage3";
this.tabPage3.UseVisualStyleBackColor = true;
//
// uiAxisDev1
//
this.uiAxisDev1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(8)))), ((int)(((byte)(31)))), ((int)(((byte)(120)))));
@@ -262,17 +281,6 @@
this.uiAxisDev1.Size = new System.Drawing.Size(849, 491);
this.uiAxisDev1.TabIndex = 0;
//
// tabPage4
//
this.tabPage4.Controls.Add(this.uiCamDev1);
this.tabPage4.Location = new System.Drawing.Point(4, 22);
this.tabPage4.Name = "tabPage4";
this.tabPage4.Padding = new System.Windows.Forms.Padding(3);
this.tabPage4.Size = new System.Drawing.Size(888, 530);
this.tabPage4.TabIndex = 3;
this.tabPage4.Text = "tabPage4";
this.tabPage4.UseVisualStyleBackColor = true;
//
// uiCamDev1
//
this.uiCamDev1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(8)))), ((int)(((byte)(31)))), ((int)(((byte)(120)))));
@@ -281,12 +289,55 @@
this.uiCamDev1.Size = new System.Drawing.Size(849, 491);
this.uiCamDev1.TabIndex = 0;
//
// uiTitel1
//
this.uiTitel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(8)))), ((int)(((byte)(31)))), ((int)(((byte)(120)))));
this.uiTitel1.Dock = System.Windows.Forms.DockStyle.Top;
this.uiTitel1.Location = new System.Drawing.Point(0, 25);
this.uiTitel1.Name = "uiTitel1";
this.uiTitel1.Size = new System.Drawing.Size(938, 44);
this.uiTitel1.TabIndex = 8;
//
// tabPage5
//
this.tabPage5.Controls.Add(this.pictureBox1);
this.tabPage5.Controls.Add(this.imageBox1);
this.tabPage5.Location = new System.Drawing.Point(4, 22);
this.tabPage5.Name = "tabPage5";
this.tabPage5.Padding = new System.Windows.Forms.Padding(3);
this.tabPage5.Size = new System.Drawing.Size(888, 530);
this.tabPage5.TabIndex = 4;
this.tabPage5.Text = "tabPage5";
this.tabPage5.UseVisualStyleBackColor = true;
//
// imageBox1
//
this.imageBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.imageBox1.ColorName = System.Drawing.Color.LimeGreen;
this.imageBox1.DrawParam = null;
this.imageBox1.Image = null;
this.imageBox1.Location = new System.Drawing.Point(0, 0);
this.imageBox1.Margin = new System.Windows.Forms.Padding(0);
this.imageBox1.Name = "imageBox1";
this.imageBox1.Size = new System.Drawing.Size(481, 428);
this.imageBox1.TabIndex = 1;
//
// pictureBox1
//
this.pictureBox1.Location = new System.Drawing.Point(484, 0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(398, 428);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 2;
this.pictureBox1.TabStop = false;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(8)))), ((int)(((byte)(31)))), ((int)(((byte)(120)))));
this.ClientSize = new System.Drawing.Size(920, 733);
this.ClientSize = new System.Drawing.Size(938, 733);
this.Controls.Add(this.button4);
this.Controls.Add(this.tabControl1);
this.Controls.Add(this.uiTitel1);
this.Controls.Add(this.statusStrip1);
@@ -306,6 +357,8 @@
this.tabPage2.ResumeLayout(false);
this.tabPage3.ResumeLayout(false);
this.tabPage4.ResumeLayout(false);
this.tabPage5.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -336,6 +389,10 @@
private Device.AxisDev.UIAxisDev uiAxisDev1;
private System.Windows.Forms.TabPage tabPage4;
private Device.CamDev.UICamDev uiCamDev1;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.TabPage tabPage5;
private ImageToolKits.ImageBox imageBox1;
private System.Windows.Forms.PictureBox pictureBox1;
}
}

+ 27
- 3
MaiMuControl/MaiMuControl/Form1.cs Ver fichero

@@ -1,4 +1,5 @@
using MaiMuControl.Device;
using HalconDotNet;
using MaiMuControl.Device;
using MaiMuControl.Device.AxisDev;
using MaiMuControl.Device.AxisDev.Advantech;
using MaiMuControl.Device.CamDev;
@@ -9,6 +10,7 @@ using MaiMuControl.Device.LightDev.CST;
using MaiMuControl.Device.LightDev.Rsee;
using MaiMuControl.SysStatusMgr.StatusMgr;
using MaiMuControl.SysStatusMgr.UserMgr;
using OpenCvSharp;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -40,7 +42,7 @@ namespace MaiMuControl
this.uiTitel1.UserMenuStrip = this.menuStrip1;
this.uiTitel1.ShowMenu();
_camDev = new CamDev(CameraEnumType.MVSCamera_CC, "P16054911","");
_camDev = new CamDev(CameraEnumType.MVSCamera_GENTL, "DA1185031", "C:\\Program Files (x86)\\Common Files\\MVS\\Runtime\\Win64_x64\\MvFGProducerCXP.cti");
//_dev = new RseeLight(LightDevNameEnum.Rsee_PM_D, "Test");
_dev = new CSTLight("test", 6);
_iodev = new AdvantechIO();
@@ -66,7 +68,9 @@ namespace MaiMuControl
if (ret < 0)
MessageBox.Show("打开IO失败");
else
uiioCardDev1.InitUI( IOBordType.Advantech, _iodev);
{
uiioCardDev1.InitUI(IOBordType.Advantech, _iodev);
}
ret = _axisdev.InitBoard();
if (ret < 0)
@@ -75,7 +79,13 @@ namespace MaiMuControl
if (ret < 0)
MessageBox.Show("打开Axis失败");
else
{
BoardCfgParams fr = new BoardCfgParams();
fr.DevEmgLogic = 1;
_axisdev.LoadBoardParams(0, fr);
//_axisdev.LoadCfgFile(0,"E:\\MaiMu\\MaiMuAOI\\MaiMuAOI\\bin\\x64\\Debug\\ConfigFiles\\Axis_754974720.cfg");
uiAxisDev1.InitUI(AxisBordType.Advantech, _axisdev, Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\SysConfig.ini");
}
if(!_camDev.InitCamera())
MessageBox.Show("初始化Cam失败");
@@ -107,5 +117,19 @@ namespace MaiMuControl
{
}
private void button4_Click(object sender, EventArgs e)
{
HObject image = new HImage();
HTuple ImagePath = @"C:\Users\fang\Desktop\Size_SNLP20230915463_I111_X152.5008_Y-576.0998_PI_TW7.5 (良品) 10 Gerber\1.bmp";
HOperatorSet.ReadImage(out image, ImagePath);
Mat img = CamDev.HImageToMat(image);
this.imageBox1.RefreshWindow(img);
Bitmap bp;
//CamDev.HObject2Bpp8(image.CopyObj(1, -1), out bp);
bp = CamDev.HImageToBitmap(image.CopyObj(1, -1));
this.pictureBox1.Image = bp;
bp.Save(@"C:\Users\fang\Desktop\Size_SNLP20230915463_I111_X152.5008_Y-576.0998_PI_TW7.5 (良品) 10 Gerber\11.bmp");
}
}
}

+ 8
- 6
MaiMuControl/MaiMuControl/MaiMuControl.csproj Ver fichero

@@ -56,8 +56,9 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="AdvMotAPI">
<HintPath>..\..\..\..\2023\版博士\源码\2023-10-6\code\Code\bin\x64\Debug\AdvMotAPI.dll</HintPath>
<Reference Include="AdvMotAPI, Version=2.0.8.5, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>Dlls\AdvMotAPI.dll</HintPath>
</Reference>
<Reference Include="Automation.BDaq4">
<HintPath>Dlls\Automation.BDaq4.dll</HintPath>
@@ -78,7 +79,8 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>Dlls\halcondotnet.dll</HintPath>
</Reference>
<Reference Include="hdevenginedotnet">
<Reference Include="hdevenginedotnet, Version=21.5.0.0, Culture=neutral, PublicKeyToken=4973bed59ddbf2b8, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>Dlls\hdevenginedotnet.dll</HintPath>
</Reference>
<Reference Include="ImageBox">
@@ -374,9 +376,9 @@
<None Include="Resources\9.png" />
<None Include="Resources\10.png" />
<None Include="Resources\11.png" />
<Content Include="ToolKits\Tool\halcondotnet.dll" />
<Content Include="ToolKits\Tool\HTHalControl.dll" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Folder Include="ToolKits\Tool\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

+ 21
- 12
MaiMuControl/MaiMuControl/SysStatusMgr/StatusMgr/StatusMgr.cs Ver fichero

@@ -71,6 +71,8 @@ namespace MaiMuControl.SysStatusMgr.StatusMgr
/// 获取数据库ip
/// </summary>
public string MySqlIP { get { return _MySqlIP; } }
private object _Lock = new object();
#endregion
#region 构造
@@ -118,19 +120,22 @@ namespace MaiMuControl.SysStatusMgr.StatusMgr
/// <param name="text">记录</param>
public void WriteLog(WarningEnum level, string tag, string text)
{
string directory = _LogPath + "\\" + DateTime.Now.ToString("yyyyMM") + "\\";
if (!System.IO.Directory.Exists(directory))
System.IO.Directory.CreateDirectory(directory);
lock (_Lock)
{
string directory = _LogPath + "\\" + DateTime.Now.ToString("yyyyMM") + "\\";
string writelog = "";
if (level == WarningEnum.High)
writelog = "[报警] " + DateTime.Now.ToString("HH:mm:ss.fff") + ": [" + tag + "]-" + text;
else if (level == WarningEnum.Low)
writelog = "[提示] " + DateTime.Now.ToString("HH:mm:ss.fff") + ": [" + tag + "]-" + text;
else
writelog = "[正常] " + DateTime.Now.ToString("HH:mm:ss.fff") + ": [" + tag + "]-" + text;
File.AppendAllText(directory + DateTime.Now.ToString("yyyyMMdd") + ".log", writelog + "\r\n");
if (!System.IO.Directory.Exists(directory))
System.IO.Directory.CreateDirectory(directory);
string writelog = "";
if (level == WarningEnum.High)
writelog = "[报警] " + DateTime.Now.ToString("HH:mm:ss.fff") + ": [" + tag + "]-" + text;
else if (level == WarningEnum.Low)
writelog = "[提示] " + DateTime.Now.ToString("HH:mm:ss.fff") + ": [" + tag + "]-" + text;
else
writelog = "[正常] " + DateTime.Now.ToString("HH:mm:ss.fff") + ": [" + tag + "]-" + text;
File.AppendAllText(directory + DateTime.Now.ToString("yyyyMMdd") + ".log", writelog + "\r\n");
}
}
#endregion
@@ -211,6 +216,10 @@ namespace MaiMuControl.SysStatusMgr.StatusMgr
_Warning = warningEnum;
WriteLog(warningEnum, tag, txt);
}
public void ClearWarning()
{
_Warning = WarningEnum.Normal;
}
#endregion
#region 文件删除


+ 1
- 1
MaiMuControl/MaiMuControl/SysStatusMgr/UserMgr/UserLoginFrm.cs Ver fichero

@@ -82,7 +82,7 @@ namespace MaiMuControl.SysStatusMgr.UserMgr
{
TipLabel.Text = "登入成功!";
this.Refresh();
Thread.Sleep(500);
//Thread.Sleep(500);
}));
_UserMgr.SetRememberUser(chkRememberUserCode.Checked, chkRememberPw.Checked);


+ 1
- 0
MaiMuControl/MaiMuControl/SysStatusMgr/UserMgr/UserMgr.cs Ver fichero

@@ -613,6 +613,7 @@ namespace MaiMuControl.SysStatusMgr.UserMgr
public bool RightControl(UserRightEnum rightEnum)
{
//if (_LoginUser.RoleInfo.Code.IndexOf("admin") > 0)
if (_LoginUser.RoleInfo.Code == "admin")
return true;
switch (rightEnum)


+ 25
- 16
MaiMuControl/MaiMuControl/UIKits/MaiMuMenu/UITitel.Designer.cs Ver fichero

@@ -33,12 +33,12 @@
this.UimenuStrip = new System.Windows.Forms.MenuStrip();
this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripTextBox1 = new System.Windows.Forms.ToolStripTextBox();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.skinToolStrip1 = new CCWin.SkinControl.SkinToolStrip();
this.tsbClose = new System.Windows.Forms.ToolStripButton();
this.tsbMax = new System.Windows.Forms.ToolStripButton();
this.tsbMin = new System.Windows.Forms.ToolStripButton();
this.tsbSize = new System.Windows.Forms.ToolStripButton();
this.tableLayoutPanel1.SuspendLayout();
this.UimenuStrip.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
@@ -50,7 +50,7 @@
this.tableLayoutPanel1.ColumnCount = 3;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 200F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 100F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 110F));
this.tableLayoutPanel1.Controls.Add(this.UimenuStrip, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.pictureBox2, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.skinToolStrip1, 2, 0);
@@ -69,11 +69,10 @@
this.UimenuStrip.Dock = System.Windows.Forms.DockStyle.Fill;
this.UimenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripMenuItem3,
this.toolStripMenuItem4,
this.toolStripTextBox1});
this.toolStripMenuItem4});
this.UimenuStrip.Location = new System.Drawing.Point(200, 0);
this.UimenuStrip.Name = "UimenuStrip";
this.UimenuStrip.Size = new System.Drawing.Size(660, 43);
this.UimenuStrip.Size = new System.Drawing.Size(650, 43);
this.UimenuStrip.TabIndex = 3;
this.UimenuStrip.Text = "menuStrip2";
//
@@ -91,13 +90,6 @@
this.toolStripMenuItem4.Size = new System.Drawing.Size(136, 39);
this.toolStripMenuItem4.Text = "toolStripMenuItem2";
//
// toolStripTextBox1
//
this.toolStripTextBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(8)))), ((int)(((byte)(31)))), ((int)(((byte)(120)))));
this.toolStripTextBox1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.toolStripTextBox1.Name = "toolStripTextBox1";
this.toolStripTextBox1.Size = new System.Drawing.Size(100, 39);
//
// pictureBox2
//
this.pictureBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(8)))), ((int)(((byte)(31)))), ((int)(((byte)(120)))));
@@ -152,12 +144,13 @@
this.skinToolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.tsbClose,
this.tsbMax,
this.tsbMin});
this.skinToolStrip1.Location = new System.Drawing.Point(860, 0);
this.tsbMin,
this.tsbSize});
this.skinToolStrip1.Location = new System.Drawing.Point(850, 0);
this.skinToolStrip1.Name = "skinToolStrip1";
this.skinToolStrip1.RadiusStyle = CCWin.SkinClass.RoundStyle.All;
this.skinToolStrip1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.skinToolStrip1.Size = new System.Drawing.Size(100, 43);
this.skinToolStrip1.Size = new System.Drawing.Size(110, 43);
this.skinToolStrip1.SkinAllColor = true;
this.skinToolStrip1.TabIndex = 9;
this.skinToolStrip1.Text = "skinToolStrip1";
@@ -165,6 +158,7 @@
this.skinToolStrip1.TitleColor = System.Drawing.Color.FromArgb(((int)(((byte)(209)))), ((int)(((byte)(228)))), ((int)(((byte)(236)))));
this.skinToolStrip1.TitleRadius = 4;
this.skinToolStrip1.TitleRadiusStyle = CCWin.SkinClass.RoundStyle.All;
this.skinToolStrip1.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.skinToolStrip1_ItemClicked);
//
// tsbClose
//
@@ -199,6 +193,21 @@
this.tsbMin.ToolTipText = "最小化";
this.tsbMin.Click += new System.EventHandler(this.tsbMin_Click);
//
// tsbSize
//
this.tsbSize.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.tsbSize.Image = ((System.Drawing.Image)(resources.GetObject("tsbSize.Image")));
this.tsbSize.ImageTransparentColor = System.Drawing.Color.Magenta;
this.tsbSize.Name = "tsbSize";
this.tsbSize.Size = new System.Drawing.Size(23, 40);
this.tsbSize.Text = "toolStripButton1";
this.tsbSize.ToolTipText = "最大化/还原";
this.tsbSize.Click += new System.EventHandler(this.tsbSize_Click);
this.tsbSize.MouseDown += new System.Windows.Forms.MouseEventHandler(this.tsbSize_MouseDown);
this.tsbSize.MouseLeave += new System.EventHandler(this.tsbSize_MouseLeave);
this.tsbSize.MouseMove += new System.Windows.Forms.MouseEventHandler(this.tsbSize_MouseMove);
this.tsbSize.MouseUp += new System.Windows.Forms.MouseEventHandler(this.tsbSize_MouseUp);
//
// UITitel
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@@ -226,10 +235,10 @@
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem3;
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem4;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.ToolStripTextBox toolStripTextBox1;
private CCWin.SkinControl.SkinToolStrip skinToolStrip1;
private System.Windows.Forms.ToolStripButton tsbClose;
private System.Windows.Forms.ToolStripButton tsbMax;
private System.Windows.Forms.ToolStripButton tsbMin;
private System.Windows.Forms.ToolStripButton tsbSize;
}
}

+ 64
- 2
MaiMuControl/MaiMuControl/UIKits/MaiMuMenu/UITitel.cs Ver fichero

@@ -1,4 +1,5 @@
using System;
using MaiMuControl.Device;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -41,11 +42,16 @@ namespace MaiMuControl.UIKits.MaiMuMenu
}
}
public void ShowContrlBox(bool min, bool max, bool close)
public void ShowContrlBox(bool min, bool max, bool close, bool size = false)
{
this.tsbMin.Visible = min;
this.tsbMax.Visible = max;
this.tsbClose.Visible = close;
this.tsbSize.Visible = size;
}
private void tsbSize_Click(object sender, EventArgs e)
{
}
private void tsbMin_Click(object sender, EventArgs e)
@@ -90,6 +96,62 @@ namespace MaiMuControl.UIKits.MaiMuMenu
ReleaseCapture();
SendMessage(FatherForm.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0);
}
#endregion
private void skinToolStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
}
#region 界面放大缩小
bool isMouseDown = false; //表示鼠标当前是否处于按下状态,初始值为否
Point size_change = Point.Empty;
private void tsbSize_MouseDown(object sender, MouseEventArgs e)
{
isMouseDown = true;
FatherForm.Cursor = Cursors.SizeNESW;
this.Cursor = Cursors.SizeNESW;
size_change = e.Location;
}
private void tsbSize_MouseMove(object sender, MouseEventArgs e)
{
ResizeWindow(e);
}
private void tsbSize_MouseUp(object sender, MouseEventArgs e)
{
isMouseDown = false;
FatherForm.Cursor = Cursors.Default;
this.Cursor = Cursors.Default;
}
private void ResizeWindow(MouseEventArgs e)
{
//这个判断很重要,只有在鼠标按下时才能拖拽改变窗体大小,如果不作判断,那么鼠标弹起和按下时,窗体都可以改变
if (!isMouseDown)
return;
//MousePosition的参考点是屏幕的左上角,表示鼠标当前相对于屏幕左上角的坐标this.left和this.top的参考点也是屏幕,属性MousePosition是该程序的重点
if (FatherForm.Cursor == Cursors.SizeNESW)
{
//此行代码在mousemove事件中已经写过,在此再写一遍,并不多余,一定要写
this.Cursor = Cursors.SizeNESW;
//下面是改变窗体宽和高的代码,不明白的可以仔细思考一下
FatherForm.Width = FatherForm.Width + (e.Location.X - size_change.X);
FatherForm.Top = FatherForm.Top + (e.Location.Y - size_change.Y);
FatherForm.Height = FatherForm.Height - (e.Location.Y - size_change.Y) ;
this.Refresh();
}
//即使鼠标按下,但是不在窗口右和下边缘,那么也不能改变窗口大小
else
this.Cursor = Cursors.Arrow;
}
private void tsbSize_MouseLeave(object sender, EventArgs e)
{
isMouseDown = false;
FatherForm.Cursor = Cursors.Default;
this.Cursor = Cursors.Default;
}
#endregion


+ 32
- 0
MaiMuControl/MaiMuControl/UIKits/MaiMuMenu/UITitel.resx Ver fichero

@@ -142,6 +142,38 @@
UDNN4SvGlOqhpprC14wJHYeaaArfMMZ0GGqsKXzLGNFBqJGmsA8+pP1QQ03hB8aA9kINNIUbDqqGEm4I
PzL6tBuqryncZPRoJ1RPU/iJ0aXtUF1N4WdGh7ZCdTSFXxht2gzV1hR+ZbRoI1RLU/iuKIovLn4SaWkK
18gP/RYKq1L7Bw8AN9TW9zQtAAAAAElFTkSuQmCC
</value>
</data>
<data name="tsbSize.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAYPSURBVHhe7d1hchy3DoVRLUVL8c6zlOxECdD87LJl3VEP
pgmSTZw/ryLfAUjeiZNKvSq/lVz/TYZjlSy8+zQ4VsnCu0+DY5UsvPs0OFbJwrtPg2OVLLz7NDhWycK7
T4NjlSy8+zQ4VlmZ9fje6nweI8qqrMNw+Y4xZUXW30vlO0aV1Vh3L5fvGFdWYr1dUr5jZFmFdXZZ+Y6x
ZQXW17Pl/+B/JUaX2VlXT5fP5x46hr+COWlYKxHrhjWpbG2ofMdfS8TimJOGtRKxbliTxlaGy3f8TCIW
x5w0rJWIdcOaFLbupfIdP5eIxTEnDWslYt2wpjtb9XL5jl+TiMUxJw1rJWLdsKYrW3NJ+Y5fl4jFMScN
ayVi3bCmG1txWfmOjEQsjjlpWCsR64Y1Xdj4S8t35CRiccxJw1qJWDesuZyNvrx8R1YiFscciVh5wJ6p
S/mOvEQsjjkSsSLYE3Ur3/EZiVgccyRi5Qv2PF3Ld3xOIhbHHIlY+cSepnv5js9KxOKYIxErv7FnSSnf
8XmJWBxzJGIF9iRp5TtmSMTimCMRK8aeI7V8xxyJWBxzJGLbs6dIL98xSyIWxxyJ2NbsGYaU75gnEYtj
jkRsW/YEw8p3zJSIxTFHIrYlu/7Q8h1zJWJxzJGIbceuPrx8x2yJWBxzJGJbsWtPUX4KLiAR24ZdeZ/y
HZeQiG3BrrtX+Y6LSMRuz666X/mOy0jEbs2uuWf5jgtJxG7Lrrhv+Y5LScRuya63d/mOi0nEbseuVuXv
ysqs8ndlZVb5u7Iyq/xdWZlV/q6szCp/V1Zmlb8rK7PK35WVWeWfweUlYkuxY09TPvMlYuNwDonYUj4+
Pv7l+Gd0/TufHRKxcTiHRGwpduz3k1+C7r/ts0ciNg7nkIgtx47+3Zcg5Z/57JKIjcM5JGJLsuOrL0Ha
v/CxTyI2DueQiC3LrvD5S5BWvmOnRGwcziERW5pd4+eXILV8dzziA8TG4RwSsRLEM0rExuEcErESxDNK
xMbhHBKxEsQzSsTG4RwSsRLEM0rExuEcErESxDNKxMbhHBKxEsQzSsTG4RwSsRLEM0rExuEcErESxDNK
xMbhHBKxEsQzSsTG4RwSsRLEM0rExuEcErE0tvIH/9n2nR8t7XjEB4iNwzkkYils3a8/J+8uX4J2G43Y
OJxDItadrfrrD0m8w5eg3UQjNg7nkIh1ZWvkn5C5+peg3UIjNg7nkIh1Yyu+/eNRV/4StBtoxMbhHBKx
Lmz8t+X/ZF+Cf/jYUji+RGwcziERu5yNfqZ8/x0g/f/McYV2A43YXuzeW5RfvuBlHs2eUOXfjJd5NHtC
lX8zXubR7AlV/s14mUezJ1T5N+NlHs2eUOXfjJd5NHtClX8zXubR7AlV/s14mUezJ9y9/HZLjdh92J2q
/N+0m2rE7sHuU+V/0m6rEVuf3aXK/0K7sUZsbXaPKl9ot9aIrcvuUOU/0G6uEVuTnb/K/0a7vUZsPXb2
Kv+E9gIasTjmSMQuZWOr/JPaK2jE4pgjEbuMjazyn9BeQiMWxxyJ2CVsXJX/pPYaGrE45kjEXmajqvyA
9iIasTjmSMReYmOq/KD2KhqxOOZIxMJsRJX/gvYyGrE45kjEQuzjVf6L2utoxOKYIxF7mn20yr9AeyGN
WBxzJGJPsY9V+Rdpr6QRi2OOROw0+0iVf6H2UhqxOOZIxE6xeJV/sfZaGrE45kjEvmXRKr+D9mIasTjm
SMQestg05bct/bBGIpaGtXHMkYhJFpnq7/y2qR/WSMTSsDaOORKxL9kvT/fbftvWD2skYmlYG8ccidhf
7Jem/Gd+29gPayRiaVgbxxyJ2B/sx9P+C1/b2g9rJGJpWBvHHInYL/ajact3bXM/rJGIpWFtHHMkYgf7
y6nLd217P6yRiKVhbRxzJGJLlO/aCfphjUQsDWvjmCORWaL8EtBqe6jKv7NW3euq/EW1+l5T5S+sVRhX
5S+u1RhT5d9Aq/J5Vf5NtDqfU+XfSKt0HhyrZOHdp8GxShbefRocq2Th3afBsUoW3n0aHKtk4d2nwbFK
Ft59GhyrZOHdp8GxSoq3t/8BDG9DwjVnZ/0AAAAASUVORK5CYII=
</value>
</data>
</root>

+ 7
- 7
MaiMuControl/MaiMuControl/bin/x64/Debug/SysConfig.ini Ver fichero

@@ -2,12 +2,12 @@
[AdvAxis-0]
MM2PulseNum=5000
JerkT_S=1
HomeMode=5
HomeDir=0
Acc=100
Dec=100
StartVel=0
RunVel=100
HomeMode=10
HomeDir=1
Acc=20
Dec=20
StartVel=10
RunVel=40
Name=X1
[AdvAxis-1]
MM2PulseNum=1
@@ -23,7 +23,7 @@ Name=Axis
MM2PulseNum=5000
JerkT_S=1
HomeMode=5
HomeDir=0
HomeDir=1
Acc=100
Dec=100
StartVel=0


+ 3
- 0
MaiMuControl/MaiMuControl/bin/x64/Debug/SystemDefault.ini Ver fichero

@@ -0,0 +1,3 @@
#SystemDefault.ini
[SystemDefault]
MySqlCode=123456



+ 145
- 3
MaiMuControl/MaiMuControl/obj/x64/Debug/MaiMuControl.csproj.FileListAbsolute.txt Ver fichero

@@ -70,9 +70,6 @@ E:\CPL\迈沐智能项目\模块化\Code\MaiMuControl\MaiMuControl\bin\x64\Debug
E:\CPL\迈沐智能项目\模块化\Code\MaiMuControl\MaiMuControl\bin\x64\Debug\ImageBox.xml
E:\CPL\迈沐智能项目\模块化\Code\MaiMuControl\MaiMuControl\bin\x64\Debug\ImageBox.dll.config
E:\CPL\迈沐智能项目\模块化\Code\MaiMuControl\MaiMuControl\bin\x64\Debug\OpenCvSharp.xml
E:\CPL\迈沐智能项目\模块化\Code\MaiMuControl\MaiMuControl\bin\x64\Debug\MaiMuControl.dll.config
E:\CPL\迈沐智能项目\模块化\Code\MaiMuControl\MaiMuControl\bin\x64\Debug\MaiMuControl.dll
E:\CPL\迈沐智能项目\模块化\Code\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.dll
E:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\MaiMuControl.pdb
E:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\Automation.BDaq4.dll
E:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\BouncyCastle.Crypto.dll
@@ -144,3 +141,148 @@ E:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.pdb
E:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\MaiMuControl.dll.config
E:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\MaiMuControl.dll
E:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\MaiMuControl.pdb
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\Automation.BDaq4.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\BouncyCastle.Crypto.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\ControllerDllCSharp.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\CSkin.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\Google.Protobuf.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\halcondotnet.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\hdevenginedotnet.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\K4os.Compression.LZ4.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\K4os.Compression.LZ4.Streams.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\K4os.Hash.xxHash.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\Microsoft.Bcl.AsyncInterfaces.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\MvCameraControl.Net.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\MySql.Data.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\MySqlBackup.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\Newtonsoft.Json.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\S7.Net.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\SqlSugar.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Buffers.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Configuration.ConfigurationManager.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Data.SQLite.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Diagnostics.DiagnosticSource.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\System.IO.Pipelines.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Memory.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Numerics.Vectors.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Runtime.CompilerServices.Unsafe.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Threading.Tasks.Extensions.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\ZstdSharp.dll
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\BouncyCastle.Crypto.xml
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\Google.Protobuf.pdb
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\Google.Protobuf.xml
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\ImageBox.pdb
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\ImageBox.xml
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\ImageBox.dll.config
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\K4os.Compression.LZ4.xml
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\K4os.Compression.LZ4.Streams.xml
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\K4os.Hash.xxHash.xml
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\Microsoft.Bcl.AsyncInterfaces.xml
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\MySql.Data.xml
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\Newtonsoft.Json.xml
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\OpenCvSharp.xml
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\S7.Net.xml
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Buffers.xml
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Diagnostics.DiagnosticSource.xml
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\System.IO.Pipelines.xml
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Memory.xml
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Numerics.Vectors.xml
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Runtime.CompilerServices.Unsafe.xml
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Threading.Tasks.Extensions.xml
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.csproj.AssemblyReference.cache
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.Device.AxisDev.UIAxisCfg.resources
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.Device.AxisDev.UIAxisDev.resources
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.Device.CamDev.UICamDev.resources
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.Device.IOCardDev.UIIOCardDev.resources
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.Device.LightDev.UILightDev.resources
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.Form1.resources
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.Properties.Resources.resources
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.SysStatusMgr.UserMgr.ModifyPWFrm.resources
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.SysStatusMgr.UserMgr.NewRoleFrm.resources
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.SysStatusMgr.UserMgr.NewUserFrm.resources
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.SysStatusMgr.UserMgr.RightMgrFrm.resources
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.SysStatusMgr.UserMgr.UserListFrm.resources
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.SysStatusMgr.UserMgr.UserLoginFrm.resources
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.UIKits.MaiMuMenu.UITitel.resources
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.csproj.GenerateResource.cache
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.csproj.CoreCompileInputs.cache
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.csproj.CopyComplete
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.pdb
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\MaiMuControl.dll.config
G:\MaiMu\MaiMuControl\MaiMuControl\bin\x64\Debug\MaiMuControl.dll
G:\MaiMu\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\MaiMuControl.dll.config
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\MaiMuControl.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\MaiMuControl.pdb
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\Automation.BDaq4.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\BouncyCastle.Crypto.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\ControllerDllCSharp.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\CSkin.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\Google.Protobuf.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\halcondotnet.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\hdevenginedotnet.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\K4os.Compression.LZ4.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\K4os.Compression.LZ4.Streams.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\K4os.Hash.xxHash.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\Microsoft.Bcl.AsyncInterfaces.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\MvCameraControl.Net.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\MySql.Data.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\MySqlBackup.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\Newtonsoft.Json.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\S7.Net.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\SqlSugar.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Buffers.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Configuration.ConfigurationManager.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Data.SQLite.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Diagnostics.DiagnosticSource.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\System.IO.Pipelines.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Memory.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Numerics.Vectors.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Runtime.CompilerServices.Unsafe.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Threading.Tasks.Extensions.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\ZstdSharp.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\BouncyCastle.Crypto.xml
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\Google.Protobuf.pdb
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\Google.Protobuf.xml
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\ImageBox.pdb
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\ImageBox.xml
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\ImageBox.dll.config
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\K4os.Compression.LZ4.xml
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\K4os.Compression.LZ4.Streams.xml
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\K4os.Hash.xxHash.xml
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\Microsoft.Bcl.AsyncInterfaces.xml
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\MySql.Data.xml
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\Newtonsoft.Json.xml
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\OpenCvSharp.xml
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\S7.Net.xml
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Buffers.xml
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Diagnostics.DiagnosticSource.xml
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\System.IO.Pipelines.xml
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Memory.xml
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Numerics.Vectors.xml
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Runtime.CompilerServices.Unsafe.xml
D:\版博士\AOI\MaiMuControl\MaiMuControl\bin\x64\Debug\System.Threading.Tasks.Extensions.xml
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.csproj.AssemblyReference.cache
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.Device.AxisDev.UIAxisCfg.resources
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.Device.AxisDev.UIAxisDev.resources
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.Device.CamDev.UICamDev.resources
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.Device.IOCardDev.UIIOCardDev.resources
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.Device.LightDev.UILightDev.resources
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.Form1.resources
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.Properties.Resources.resources
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.SysStatusMgr.UserMgr.ModifyPWFrm.resources
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.SysStatusMgr.UserMgr.NewRoleFrm.resources
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.SysStatusMgr.UserMgr.NewUserFrm.resources
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.SysStatusMgr.UserMgr.RightMgrFrm.resources
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.SysStatusMgr.UserMgr.UserListFrm.resources
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.SysStatusMgr.UserMgr.UserLoginFrm.resources
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.UIKits.MaiMuMenu.UITitel.resources
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.csproj.GenerateResource.cache
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.csproj.CoreCompileInputs.cache
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.csproj.CopyComplete
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.dll
D:\版博士\AOI\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.pdb
E:\CPL\迈沐智能项目\模块化\Code\MaiMuControl\MaiMuControl\bin\x64\Debug\MaiMuControl.dll.config
E:\CPL\迈沐智能项目\模块化\Code\MaiMuControl\MaiMuControl\bin\x64\Debug\MaiMuControl.dll
E:\CPL\迈沐智能项目\模块化\Code\MaiMuControl\MaiMuControl\obj\x64\Debug\MaiMuControl.dll

Cargando…
Cancelar
Guardar