1、增加料仓料盘的图片显示。

2、增加屏蔽吸嘴功能
master
lhiven 1 year ago
parent 27541823ac
commit a0d011699c

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

@ -0,0 +1,71 @@
namespace Rs.MotionPlat.Recipe
{
partial class LookPicture
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.himgNozzle2 = new ChoiceTech.Halcon.Control.HWindow_Final();
this.SuspendLayout();
//
// himgNozzle2
//
this.himgNozzle2.BackColor = System.Drawing.Color.Transparent;
this.himgNozzle2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.himgNozzle2.Dock = System.Windows.Forms.DockStyle.Fill;
this.himgNozzle2.DrawModel = false;
this.himgNozzle2.ForeColor = System.Drawing.Color.White;
this.himgNozzle2.Image = null;
this.himgNozzle2.Location = new System.Drawing.Point(0, 40);
this.himgNozzle2.Margin = new System.Windows.Forms.Padding(4);
this.himgNozzle2.Name = "himgNozzle2";
this.himgNozzle2.Size = new System.Drawing.Size(723, 860);
this.himgNozzle2.TabIndex = 13;
//
// LookPicture
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(723, 900);
this.Controls.Add(this.himgNozzle2);
this.HeaderBackgroundColor = System.Drawing.Color.IndianRed;
this.HeadText = "picsize";
this.Name = "LookPicture";
this.ShowMax = false;
this.ShowMin = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "LookPicture";
this.Load += new System.EventHandler(this.LookPicture_Load);
this.Controls.SetChildIndex(this.himgNozzle2, 0);
this.ResumeLayout(false);
}
#endregion
private ChoiceTech.Halcon.Control.HWindow_Final himgNozzle2;
}
}

@ -0,0 +1,39 @@
using HalconDotNet;
using Rs.MotionPlat.Properties;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Rs.MotionPlat.Recipe
{
public partial class LookPicture : BaseFormHeader
{
string m_mode = "SM";
public LookPicture()
{
InitializeComponent();
}
public LookPicture(string mode)
{
InitializeComponent();
m_mode= mode;
}
private void LookPicture_Load(object sender, EventArgs e)
{
this.HeadText = $"{m_mode} tray size";
HOperatorSet.ReadImage(out HObject image,$"Images/{m_mode}.jpg");
HOperatorSet.RotateImage(image, out HObject imageRotate, 270, "constant");
himgNozzle2.HobjectToHimage(imageRotate);
}
}
}

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

@ -29,13 +29,13 @@
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.goToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.moveToolStripMenuItem9 = new System.Windows.Forms.ToolStripMenuItem();
@ -99,6 +99,8 @@
this.btnCreateMatrix = new System.Windows.Forms.Button();
this.btnMoveMarkY2 = new System.Windows.Forms.Button();
this.btnMoveMarkY1 = new System.Windows.Forms.Button();
this.btnLg = new System.Windows.Forms.Button();
this.btnSm = new System.Windows.Forms.Button();
this.btnMoveMarkX2 = new System.Windows.Forms.Button();
this.btnMoveMarkX1 = new System.Windows.Forms.Button();
this.txtSlotOffsetDistY = new System.Windows.Forms.TextBox();
@ -553,6 +555,8 @@
this.groupBox1.Controls.Add(this.btnCreateMatrix);
this.groupBox1.Controls.Add(this.btnMoveMarkY2);
this.groupBox1.Controls.Add(this.btnMoveMarkY1);
this.groupBox1.Controls.Add(this.btnLg);
this.groupBox1.Controls.Add(this.btnSm);
this.groupBox1.Controls.Add(this.btnMoveMarkX2);
this.groupBox1.Controls.Add(this.btnMoveMarkX1);
this.groupBox1.Controls.Add(this.txtSlotOffsetDistY);
@ -645,6 +649,7 @@
this.btnCreateTrayStatus.Tag = "LoadY";
this.btnCreateTrayStatus.Text = "CreateTrayStatus";
this.btnCreateTrayStatus.UseVisualStyleBackColor = false;
this.btnCreateTrayStatus.Visible = false;
this.btnCreateTrayStatus.Click += new System.EventHandler(this.btnCreateTrayStatus_Click);
//
// btnSaveSlotOffsetDistY
@ -670,7 +675,7 @@
this.btnSaveMark2CenterDistY.FlatAppearance.BorderColor = System.Drawing.Color.White;
this.btnSaveMark2CenterDistY.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSaveMark2CenterDistY.ForeColor = System.Drawing.Color.White;
this.btnSaveMark2CenterDistY.Location = new System.Drawing.Point(685, 117);
this.btnSaveMark2CenterDistY.Location = new System.Drawing.Point(429, 229);
this.btnSaveMark2CenterDistY.Name = "btnSaveMark2CenterDistY";
this.btnSaveMark2CenterDistY.Size = new System.Drawing.Size(79, 25);
this.btnSaveMark2CenterDistY.TabIndex = 51;
@ -734,7 +739,7 @@
this.btnSaveMark2CenterDistX.FlatAppearance.BorderColor = System.Drawing.Color.White;
this.btnSaveMark2CenterDistX.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSaveMark2CenterDistX.ForeColor = System.Drawing.Color.White;
this.btnSaveMark2CenterDistX.Location = new System.Drawing.Point(685, 86);
this.btnSaveMark2CenterDistX.Location = new System.Drawing.Point(429, 198);
this.btnSaveMark2CenterDistX.Name = "btnSaveMark2CenterDistX";
this.btnSaveMark2CenterDistX.Size = new System.Drawing.Size(79, 25);
this.btnSaveMark2CenterDistX.TabIndex = 52;
@ -822,6 +827,38 @@
this.btnMoveMarkY1.UseVisualStyleBackColor = false;
this.btnMoveMarkY1.Click += new System.EventHandler(this.btnMove_Click);
//
// btnLg
//
this.btnLg.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnLg.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56)))));
this.btnLg.FlatAppearance.BorderColor = System.Drawing.Color.White;
this.btnLg.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnLg.ForeColor = System.Drawing.Color.White;
this.btnLg.Location = new System.Drawing.Point(685, 89);
this.btnLg.Name = "btnLg";
this.btnLg.Size = new System.Drawing.Size(79, 25);
this.btnLg.TabIndex = 50;
this.btnLg.Tag = "LoadX";
this.btnLg.Text = "LG";
this.btnLg.UseVisualStyleBackColor = false;
this.btnLg.Click += new System.EventHandler(this.btnLg_Click);
//
// btnSm
//
this.btnSm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnSm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56)))));
this.btnSm.FlatAppearance.BorderColor = System.Drawing.Color.White;
this.btnSm.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSm.ForeColor = System.Drawing.Color.White;
this.btnSm.Location = new System.Drawing.Point(551, 87);
this.btnSm.Name = "btnSm";
this.btnSm.Size = new System.Drawing.Size(79, 25);
this.btnSm.TabIndex = 50;
this.btnSm.Tag = "LoadX";
this.btnSm.Text = "SM";
this.btnSm.UseVisualStyleBackColor = false;
this.btnSm.Click += new System.EventHandler(this.btnSm_Click);
//
// btnMoveMarkX2
//
this.btnMoveMarkX2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56)))));
@ -890,7 +927,7 @@
this.txtMark2CenterDistY.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtMark2CenterDistY.Font = new System.Drawing.Font("宋体", 9F);
this.txtMark2CenterDistY.ForeColor = System.Drawing.Color.White;
this.txtMark2CenterDistY.Location = new System.Drawing.Point(576, 121);
this.txtMark2CenterDistY.Location = new System.Drawing.Point(320, 233);
this.txtMark2CenterDistY.Name = "txtMark2CenterDistY";
this.txtMark2CenterDistY.Size = new System.Drawing.Size(85, 21);
this.txtMark2CenterDistY.TabIndex = 53;
@ -906,7 +943,7 @@
this.txtMark2CenterDistX.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtMark2CenterDistX.Font = new System.Drawing.Font("宋体", 9F);
this.txtMark2CenterDistX.ForeColor = System.Drawing.Color.White;
this.txtMark2CenterDistX.Location = new System.Drawing.Point(576, 90);
this.txtMark2CenterDistX.Location = new System.Drawing.Point(320, 202);
this.txtMark2CenterDistX.Name = "txtMark2CenterDistX";
this.txtMark2CenterDistX.Size = new System.Drawing.Size(85, 21);
this.txtMark2CenterDistX.TabIndex = 54;
@ -990,7 +1027,7 @@
//
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(440, 125);
this.label2.Location = new System.Drawing.Point(184, 237);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(125, 12);
this.label2.TabIndex = 47;
@ -1070,7 +1107,7 @@
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(440, 94);
this.label1.Location = new System.Drawing.Point(184, 206);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(125, 12);
this.label1.TabIndex = 48;
@ -1132,9 +1169,9 @@
this.dgvRunPoints.AllowUserToDeleteRows = false;
this.dgvRunPoints.AllowUserToResizeColumns = false;
this.dgvRunPoints.AllowUserToResizeRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56)))));
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White;
this.dgvRunPoints.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56)))));
dataGridViewCellStyle8.ForeColor = System.Drawing.Color.White;
this.dgvRunPoints.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle8;
this.dgvRunPoints.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dgvRunPoints.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(16)))), ((int)(((byte)(36)))));
this.dgvRunPoints.ColumnHeadersHeight = 30;
@ -1143,14 +1180,14 @@
this.dataGridViewTextBoxColumn2,
this.dataGridViewTextBoxColumn3,
this.dataGridViewLinkColumn1});
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(16)))), ((int)(((byte)(36)))));
dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle6.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvRunPoints.DefaultCellStyle = dataGridViewCellStyle6;
dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(16)))), ((int)(((byte)(36)))));
dataGridViewCellStyle13.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle13.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle13.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle13.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvRunPoints.DefaultCellStyle = dataGridViewCellStyle13;
this.dgvRunPoints.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvRunPoints.EnableHeadersVisualStyles = false;
this.dgvRunPoints.GridColor = System.Drawing.SystemColors.ActiveCaption;
@ -1158,14 +1195,14 @@
this.dgvRunPoints.MultiSelect = false;
this.dgvRunPoints.Name = "dgvRunPoints";
this.dgvRunPoints.ReadOnly = true;
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(16)))), ((int)(((byte)(36)))));
dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle7.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.White;
dataGridViewCellStyle7.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvRunPoints.RowHeadersDefaultCellStyle = dataGridViewCellStyle7;
dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(16)))), ((int)(((byte)(36)))));
dataGridViewCellStyle14.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle14.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle14.SelectionBackColor = System.Drawing.Color.White;
dataGridViewCellStyle14.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvRunPoints.RowHeadersDefaultCellStyle = dataGridViewCellStyle14;
this.dgvRunPoints.RowHeadersVisible = false;
this.dgvRunPoints.RowHeadersWidth = 30;
this.dgvRunPoints.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
@ -1181,8 +1218,8 @@
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.DataPropertyName = "SlotIndex";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle2;
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle9;
this.dataGridViewTextBoxColumn1.FillWeight = 10F;
this.dataGridViewTextBoxColumn1.HeaderText = "IX";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
@ -1191,8 +1228,8 @@
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.DataPropertyName = "X";
dataGridViewCellStyle3.Format = "0.000";
this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle3;
dataGridViewCellStyle10.Format = "0.000";
this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle10;
this.dataGridViewTextBoxColumn2.FillWeight = 40F;
this.dataGridViewTextBoxColumn2.HeaderText = "X";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
@ -1201,8 +1238,8 @@
// dataGridViewTextBoxColumn3
//
this.dataGridViewTextBoxColumn3.DataPropertyName = "Y";
dataGridViewCellStyle4.Format = "0.000";
this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle4;
dataGridViewCellStyle11.Format = "0.000";
this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle11;
this.dataGridViewTextBoxColumn3.FillWeight = 40F;
this.dataGridViewTextBoxColumn3.HeaderText = "Y";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
@ -1211,10 +1248,10 @@
// dataGridViewLinkColumn1
//
this.dataGridViewLinkColumn1.ActiveLinkColor = System.Drawing.Color.White;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.Color.Silver;
dataGridViewCellStyle5.ForeColor = System.Drawing.Color.White;
this.dataGridViewLinkColumn1.DefaultCellStyle = dataGridViewCellStyle5;
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle12.BackColor = System.Drawing.Color.Silver;
dataGridViewCellStyle12.ForeColor = System.Drawing.Color.White;
this.dataGridViewLinkColumn1.DefaultCellStyle = dataGridViewCellStyle12;
this.dataGridViewLinkColumn1.FillWeight = 10F;
this.dataGridViewLinkColumn1.HeaderText = "Move";
this.dataGridViewLinkColumn1.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
@ -1346,5 +1383,7 @@
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
private System.Windows.Forms.DataGridViewLinkColumn dataGridViewLinkColumn1;
private System.Windows.Forms.Button btnLg;
private System.Windows.Forms.Button btnSm;
}
}

@ -341,5 +341,17 @@ namespace Rs.MotionPlat.Recipe
dgvRunPoints.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.FromArgb(11, 16, 36);
}
}
private void btnSm_Click(object sender, EventArgs e)
{
LookPicture lp = new LookPicture("sm");
lp.Show();
}
private void btnLg_Click(object sender, EventArgs e)
{
LookPicture lp = new LookPicture("lg");
lp.Show();
}
}
}

@ -680,6 +680,7 @@
this.btnCreateTrayStatus.Tag = "LoadY";
this.btnCreateTrayStatus.Text = "CreateTrayStatus";
this.btnCreateTrayStatus.UseVisualStyleBackColor = false;
this.btnCreateTrayStatus.Visible = false;
this.btnCreateTrayStatus.Click += new System.EventHandler(this.btnCreateTrayStatus_Click);
//
// btnCreateMatrix

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 KiB

@ -336,6 +336,12 @@
<Compile Include="Recipe\FixtureTrayExceptionNozzle.Designer.cs">
<DependentUpon>FixtureTrayExceptionNozzle.cs</DependentUpon>
</Compile>
<Compile Include="Recipe\LookPicture.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Recipe\LookPicture.Designer.cs">
<DependentUpon>LookPicture.cs</DependentUpon>
</Compile>
<Compile Include="Recipe\StockTrayHaveOrNot.cs">
<SubType>Form</SubType>
</Compile>
@ -601,6 +607,9 @@
<EmbeddedResource Include="Recipe\FixtureTrayExceptionNozzle.resx">
<DependentUpon>FixtureTrayExceptionNozzle.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Recipe\LookPicture.resx">
<DependentUpon>LookPicture.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Recipe\StockTrayHaveOrNot.resx">
<DependentUpon>StockTrayHaveOrNot.cs</DependentUpon>
</EmbeddedResource>
@ -709,6 +718,14 @@
</ItemGroup>
<ItemGroup>
<None Include="Resources\downCameraLook.png" />
<None Include="Resources\sm.jpg" />
<None Include="Resources\sm.png" />
<Content Include="Images\lg.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Images\sm.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="ThirdLib\ecat_config.dll" />
<Content Include="ThirdLib\ecat_master.dll" />
<Content Include="ThirdLib\Ecfg_parser.dll" />

File diff suppressed because it is too large Load Diff

@ -39,6 +39,7 @@ namespace Rs.MotionPlat.SysConfig
//formIO.TopLevel = false;
//panelEx2.Controls.Add(formIO);
timer1.Enabled = true;
BindNozzles();
}
private void Teach_Click(object sender, EventArgs e)
@ -255,5 +256,37 @@ namespace Rs.MotionPlat.SysConfig
Ops.Off($"{i}号吸嘴真空破电磁阀");
}
}
private void cboxNozzle_CheckedChanged(object sender, EventArgs e)
{
CheckBox cbox=(CheckBox)sender;
string updateSql = "update nozzle set enable={0} where nozzleIndex={1}";
int enable = cbox.Checked ? 1 : 0;
db.ExecuteNonQuery(string.Format(updateSql, enable, cbox.Text));
}
void BindNozzles()
{
string querySql = "select * from nozzle";
DataTable dt = db.GetDataTable(querySql);
if(dt!=null && dt.Rows.Count>0)
{
foreach (DataRow dataRow in dt.Rows)
{
Control[] cboxs = groupBox3.Controls.Find($"cboxNozzle{dataRow["NozzleIndex"].ToString()}",false);
if(cboxs!=null && cboxs.Length>0)
{
if (dataRow["enable"].ToString() == "1")
{
((CheckBox)cboxs[0]).Checked = true;
}
else
{
((CheckBox)cboxs[0]).Checked = false;
}
}
}
}
}
}
}

Loading…
Cancel
Save