1. BLDC 설정 '복사', '붙여넣기' 기능 추가

2. 알람 뜨지 않는 버그 수정
3. 6765 MCU<->Manual 표기 반대로 수정
master
DESKTOP-999R8N3\CJY 2022-03-20 21:40:02 +09:00
parent b0f5caa530
commit fc78d5b82d
11 changed files with 973 additions and 661 deletions

View File

@ -66,7 +66,7 @@ namespace ITC81DB_0H.Controls
private void DefaultSetting()
{
this.labelSerialNo.Text = this.ParentForm.ParentForm.SystemConfig1.SerialNumber;
this.labelDisplayVer.Text = "1.2.1";
this.labelDisplayVer.Text = "1.3.1";
}
public void UpdateMainBoardVersionDisplay(string version)

View File

@ -31,11 +31,17 @@
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ControlCenterSystemBLDCMotorSetting));
this.smartGroupBox1 = new SmartX.SmartGroupBox();
this.buttonPasteAll = new SmartX.SmartButton();
this.buttonCopy = new SmartX.SmartButton();
this.buttonMotor5 = new SmartX.SmartButton();
this.buttonDefaultSet = new SmartX.SmartButton();
this.buttonReboot = new SmartX.SmartButton();
this.buttonStart = new SmartX.SmartButton();
this.smartGroupBox4 = new SmartX.SmartGroupBox();
this.listBoxAlarm = new SmartX.SmartListBox();
this.listBoxAlarm5 = new SmartX.SmartListBox();
this.listBoxAlarm4 = new SmartX.SmartListBox();
this.listBoxAlarm3 = new SmartX.SmartListBox();
this.listBoxAlarm2 = new SmartX.SmartListBox();
this.listBoxAlarm1 = new SmartX.SmartListBox();
this.buttonMotor4 = new SmartX.SmartButton();
this.smartGroupBox2 = new SmartX.SmartGroupBox();
this.labelTitleMotorID = new SmartX.SmartLabel();
@ -49,7 +55,6 @@
this.labelAttenuatorRatio = new SmartX.SmartLabel();
this.comboBoxMotorPoleNum = new System.Windows.Forms.ComboBox();
this.buttonMotor3 = new SmartX.SmartButton();
this.buttonRefresh = new SmartX.SmartButton();
this.buttonMotor2 = new SmartX.SmartButton();
this.smartGroupBox3 = new SmartX.SmartGroupBox();
this.labelTitleMotorRPM = new SmartX.SmartLabel();
@ -65,7 +70,6 @@
this.labelVersionMajor = new SmartX.SmartLabel();
this.labelTitleVersion = new SmartX.SmartLabel();
this.timer = new SmartX.SmartTimer(this.components);
this.buttonMotor5 = new SmartX.SmartButton();
this.smartGroupBox1.SuspendLayout();
this.smartGroupBox4.SuspendLayout();
this.smartGroupBox2.SuspendLayout();
@ -78,15 +82,15 @@
this.smartGroupBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(46)))), ((int)(((byte)(46)))));
this.smartGroupBox1.BackPictureBox = null;
this.smartGroupBox1.BackPictureBox1 = null;
this.smartGroupBox1.Controls.Add(this.buttonPasteAll);
this.smartGroupBox1.Controls.Add(this.buttonCopy);
this.smartGroupBox1.Controls.Add(this.buttonMotor5);
this.smartGroupBox1.Controls.Add(this.buttonDefaultSet);
this.smartGroupBox1.Controls.Add(this.buttonReboot);
this.smartGroupBox1.Controls.Add(this.buttonStart);
this.smartGroupBox1.Controls.Add(this.smartGroupBox4);
this.smartGroupBox1.Controls.Add(this.buttonMotor4);
this.smartGroupBox1.Controls.Add(this.smartGroupBox2);
this.smartGroupBox1.Controls.Add(this.buttonMotor3);
this.smartGroupBox1.Controls.Add(this.buttonRefresh);
this.smartGroupBox1.Controls.Add(this.buttonMotor2);
this.smartGroupBox1.Controls.Add(this.smartGroupBox3);
this.smartGroupBox1.Controls.Add(this.buttonMotor1);
@ -104,6 +108,102 @@
this.smartGroupBox1.TabIndex = 175;
this.smartGroupBox1.TextColor = System.Drawing.Color.Black;
//
// buttonPasteAll
//
this.buttonPasteAll.BackPictureBox = null;
this.buttonPasteAll.BackPictureBox1 = null;
this.buttonPasteAll.BackPictureBox2 = null;
this.buttonPasteAll.ButtonColor = System.Drawing.Color.Gray;
this.buttonPasteAll.ButtonImageAutoSize = true;
this.buttonPasteAll.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonPasteAll.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonPasteAll.DisableImage")));
this.buttonPasteAll.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonPasteAll.DownImage")));
this.buttonPasteAll.GroupID = 0;
this.buttonPasteAll.InitVisible = true;
this.buttonPasteAll.Location = new System.Drawing.Point(625, 20);
this.buttonPasteAll.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.buttonPasteAll.Name = "buttonPasteAll";
this.buttonPasteAll.NestedClickEventPrevent = false;
this.buttonPasteAll.OutlinePixel = 1;
this.buttonPasteAll.RepeatInterval = 200;
this.buttonPasteAll.RepeatIntervalAccelerate = null;
this.buttonPasteAll.SafeInterval = 200;
this.buttonPasteAll.Size = new System.Drawing.Size(50, 50);
this.buttonPasteAll.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonPasteAll.TabIndex = 216;
this.buttonPasteAll.TextColor = System.Drawing.Color.Black;
this.buttonPasteAll.TextDownColor = System.Drawing.Color.White;
this.buttonPasteAll.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonPasteAll.TextLocation = new System.Drawing.Point(0, 0);
this.buttonPasteAll.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonPasteAll.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonPasteAll.UpImage")));
this.buttonPasteAll.Click += new System.EventHandler(this.buttonPasteAll_Click);
//
// buttonCopy
//
this.buttonCopy.BackPictureBox = null;
this.buttonCopy.BackPictureBox1 = null;
this.buttonCopy.BackPictureBox2 = null;
this.buttonCopy.ButtonColor = System.Drawing.Color.Gray;
this.buttonCopy.ButtonImageAutoSize = true;
this.buttonCopy.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonCopy.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonCopy.DisableImage")));
this.buttonCopy.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonCopy.DownImage")));
this.buttonCopy.Font = new System.Drawing.Font("Arial", 18F, System.Drawing.FontStyle.Bold);
this.buttonCopy.GroupID = 0;
this.buttonCopy.InitVisible = true;
this.buttonCopy.Location = new System.Drawing.Point(519, 20);
this.buttonCopy.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.buttonCopy.Name = "buttonCopy";
this.buttonCopy.NestedClickEventPrevent = false;
this.buttonCopy.OutlinePixel = 1;
this.buttonCopy.RepeatInterval = 200;
this.buttonCopy.RepeatIntervalAccelerate = null;
this.buttonCopy.SafeInterval = 200;
this.buttonCopy.Size = new System.Drawing.Size(100, 50);
this.buttonCopy.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonCopy.TabIndex = 215;
this.buttonCopy.TextColor = System.Drawing.Color.White;
this.buttonCopy.TextDownColor = System.Drawing.Color.White;
this.buttonCopy.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonCopy.TextLocation = new System.Drawing.Point(25, 0);
this.buttonCopy.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonCopy.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonCopy.UpImage")));
this.buttonCopy.Click += new System.EventHandler(this.buttonCopy_Click);
//
// buttonMotor5
//
this.buttonMotor5.BackPictureBox = null;
this.buttonMotor5.BackPictureBox1 = null;
this.buttonMotor5.BackPictureBox2 = null;
this.buttonMotor5.ButtonColor = System.Drawing.Color.Gray;
this.buttonMotor5.ButtonImageAutoSize = true;
this.buttonMotor5.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonMotor5.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonMotor5.DisableImage")));
this.buttonMotor5.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonMotor5.DownImage")));
this.buttonMotor5.Font = new System.Drawing.Font("Arial", 20F, System.Drawing.FontStyle.Bold);
this.buttonMotor5.GroupID = 0;
this.buttonMotor5.InitVisible = true;
this.buttonMotor5.Location = new System.Drawing.Point(261, 20);
this.buttonMotor5.Mode = SmartX.SmartButton.BUTTONMODE.RADIO;
this.buttonMotor5.Name = "buttonMotor5";
this.buttonMotor5.NestedClickEventPrevent = false;
this.buttonMotor5.OutlinePixel = 1;
this.buttonMotor5.RepeatInterval = 200;
this.buttonMotor5.RepeatIntervalAccelerate = null;
this.buttonMotor5.SafeInterval = 200;
this.buttonMotor5.Size = new System.Drawing.Size(50, 50);
this.buttonMotor5.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonMotor5.TabIndex = 214;
this.buttonMotor5.Tag = "4";
this.buttonMotor5.Text = "5";
this.buttonMotor5.TextColor = System.Drawing.Color.White;
this.buttonMotor5.TextDownColor = System.Drawing.Color.White;
this.buttonMotor5.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonMotor5.TextLocation = new System.Drawing.Point(0, 0);
this.buttonMotor5.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonMotor5.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonMotor5.UpImage")));
//
// buttonDefaultSet
//
this.buttonDefaultSet.BackPictureBox = null;
@ -116,7 +216,7 @@
this.buttonDefaultSet.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonDefaultSet.DownImage")));
this.buttonDefaultSet.GroupID = 0;
this.buttonDefaultSet.InitVisible = true;
this.buttonDefaultSet.Location = new System.Drawing.Point(389, 20);
this.buttonDefaultSet.Location = new System.Drawing.Point(369, 20);
this.buttonDefaultSet.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.buttonDefaultSet.Name = "buttonDefaultSet";
this.buttonDefaultSet.NestedClickEventPrevent = false;
@ -147,7 +247,7 @@
this.buttonReboot.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonReboot.DownImage")));
this.buttonReboot.GroupID = 0;
this.buttonReboot.InitVisible = true;
this.buttonReboot.Location = new System.Drawing.Point(445, 20);
this.buttonReboot.Location = new System.Drawing.Point(425, 20);
this.buttonReboot.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.buttonReboot.Name = "buttonReboot";
this.buttonReboot.NestedClickEventPrevent = false;
@ -166,43 +266,16 @@
this.buttonReboot.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonReboot.UpImage")));
this.buttonReboot.Click += new System.EventHandler(this.buttonReboot_Click);
//
// buttonStart
//
this.buttonStart.BackPictureBox = null;
this.buttonStart.BackPictureBox1 = null;
this.buttonStart.BackPictureBox2 = null;
this.buttonStart.ButtonColor = System.Drawing.Color.Gray;
this.buttonStart.ButtonImageAutoSize = true;
this.buttonStart.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonStart.DisableImage = null;
this.buttonStart.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonStart.DownImage")));
this.buttonStart.GroupID = 0;
this.buttonStart.InitVisible = true;
this.buttonStart.Location = new System.Drawing.Point(623, 20);
this.buttonStart.Mode = SmartX.SmartButton.BUTTONMODE.PUSH;
this.buttonStart.Name = "buttonStart";
this.buttonStart.NestedClickEventPrevent = false;
this.buttonStart.OutlinePixel = 1;
this.buttonStart.RepeatInterval = 200;
this.buttonStart.RepeatIntervalAccelerate = null;
this.buttonStart.SafeInterval = 200;
this.buttonStart.Size = new System.Drawing.Size(50, 50);
this.buttonStart.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonStart.TabIndex = 211;
this.buttonStart.TextColor = System.Drawing.Color.Black;
this.buttonStart.TextDownColor = System.Drawing.Color.White;
this.buttonStart.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonStart.TextLocation = new System.Drawing.Point(0, 0);
this.buttonStart.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonStart.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonStart.UpImage")));
this.buttonStart.Click += new System.EventHandler(this.buttonStart_Click);
//
// smartGroupBox4
//
this.smartGroupBox4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30)))));
this.smartGroupBox4.BackPictureBox = null;
this.smartGroupBox4.BackPictureBox1 = null;
this.smartGroupBox4.Controls.Add(this.listBoxAlarm);
this.smartGroupBox4.Controls.Add(this.listBoxAlarm5);
this.smartGroupBox4.Controls.Add(this.listBoxAlarm4);
this.smartGroupBox4.Controls.Add(this.listBoxAlarm3);
this.smartGroupBox4.Controls.Add(this.listBoxAlarm2);
this.smartGroupBox4.Controls.Add(this.listBoxAlarm1);
this.smartGroupBox4.Font = new System.Drawing.Font("Arial", 13F, System.Drawing.FontStyle.Bold);
this.smartGroupBox4.FrameLineColor1 = System.Drawing.Color.White;
this.smartGroupBox4.FrameLineColor2 = System.Drawing.Color.Black;
@ -218,38 +291,165 @@
this.smartGroupBox4.Text = "Alarm";
this.smartGroupBox4.TextColor = System.Drawing.Color.White;
//
// listBoxAlarm
// listBoxAlarm5
//
this.listBoxAlarm.BackPictureBox = null;
this.listBoxAlarm.BackPictureBox1 = null;
this.listBoxAlarm.BackPictureBox2 = null;
this.listBoxAlarm.ColumnAlign = SmartX.SmartListBox.COLUMNALIGNS.CENTER;
this.listBoxAlarm.ColumnDelimiter = '\0';
this.listBoxAlarm.ColumnOffsets = null;
this.listBoxAlarm.Font = new System.Drawing.Font("Arial", 13F, System.Drawing.FontStyle.Regular);
this.listBoxAlarm.FontColor = System.Drawing.Color.Black;
this.listBoxAlarm.InitVisible = true;
this.listBoxAlarm.ItemAddOrder = SmartX.SmartListBox.ITEMADDORDERS.BOTTOMADD;
this.listBoxAlarm.ItemOffsetGap = 0;
this.listBoxAlarm.ItemOffsetX = 0;
this.listBoxAlarm.ItemOffsetY = 0;
this.listBoxAlarm.Location = new System.Drawing.Point(34, 39);
this.listBoxAlarm.MouseMoveEventSpace = 3;
this.listBoxAlarm.MouseMoveSpace = 10;
this.listBoxAlarm.Name = "listBoxAlarm";
this.listBoxAlarm.OutLineColor = System.Drawing.SystemColors.ControlText;
this.listBoxAlarm.SelectColor = System.Drawing.Color.Blue;
this.listBoxAlarm.SelectFilled = true;
this.listBoxAlarm.SelectFontColor = System.Drawing.Color.DarkBlue;
this.listBoxAlarm.SelectItemIndex = -1;
this.listBoxAlarm.SeparationlineColor1 = System.Drawing.Color.Gray;
this.listBoxAlarm.SeparationlineColor2 = System.Drawing.Color.LightGray;
this.listBoxAlarm.SeparationLineStyle = SmartX.SmartListBox.SEPARATIONLINETYPES.FixedSingle;
this.listBoxAlarm.SeparationlineVisibleBottom = true;
this.listBoxAlarm.SeparationlineVisibleTop = true;
this.listBoxAlarm.Size = new System.Drawing.Size(206, 164);
this.listBoxAlarm.TabIndex = 210;
this.listBoxAlarm.Text = "smartListBox1";
this.listBoxAlarm5.BackPictureBox = null;
this.listBoxAlarm5.BackPictureBox1 = null;
this.listBoxAlarm5.BackPictureBox2 = null;
this.listBoxAlarm5.ColumnAlign = SmartX.SmartListBox.COLUMNALIGNS.LEFT;
this.listBoxAlarm5.ColumnDelimiter = '\0';
this.listBoxAlarm5.ColumnOffsets = null;
this.listBoxAlarm5.FontColor = System.Drawing.Color.Black;
this.listBoxAlarm5.InitVisible = true;
this.listBoxAlarm5.ItemAddOrder = SmartX.SmartListBox.ITEMADDORDERS.BOTTOMADD;
this.listBoxAlarm5.ItemOffsetGap = 0;
this.listBoxAlarm5.ItemOffsetX = 0;
this.listBoxAlarm5.ItemOffsetY = 0;
this.listBoxAlarm5.Location = new System.Drawing.Point(21, 39);
this.listBoxAlarm5.MouseMoveEventSpace = 3;
this.listBoxAlarm5.MouseMoveSpace = 10;
this.listBoxAlarm5.Name = "listBoxAlarm5";
this.listBoxAlarm5.OutLineColor = System.Drawing.SystemColors.ControlText;
this.listBoxAlarm5.SelectColor = System.Drawing.Color.Blue;
this.listBoxAlarm5.SelectFilled = true;
this.listBoxAlarm5.SelectFontColor = System.Drawing.Color.DarkBlue;
this.listBoxAlarm5.SelectItemIndex = -1;
this.listBoxAlarm5.SeparationlineColor1 = System.Drawing.Color.Gray;
this.listBoxAlarm5.SeparationlineColor2 = System.Drawing.Color.LightGray;
this.listBoxAlarm5.SeparationLineStyle = SmartX.SmartListBox.SEPARATIONLINETYPES.FixedSingle;
this.listBoxAlarm5.SeparationlineVisibleBottom = true;
this.listBoxAlarm5.SeparationlineVisibleTop = true;
this.listBoxAlarm5.Size = new System.Drawing.Size(232, 164);
this.listBoxAlarm5.TabIndex = 214;
this.listBoxAlarm5.Text = "smartListBox1";
//
// listBoxAlarm4
//
this.listBoxAlarm4.BackPictureBox = null;
this.listBoxAlarm4.BackPictureBox1 = null;
this.listBoxAlarm4.BackPictureBox2 = null;
this.listBoxAlarm4.ColumnAlign = SmartX.SmartListBox.COLUMNALIGNS.LEFT;
this.listBoxAlarm4.ColumnDelimiter = '\0';
this.listBoxAlarm4.ColumnOffsets = null;
this.listBoxAlarm4.FontColor = System.Drawing.Color.Black;
this.listBoxAlarm4.InitVisible = true;
this.listBoxAlarm4.ItemAddOrder = SmartX.SmartListBox.ITEMADDORDERS.BOTTOMADD;
this.listBoxAlarm4.ItemOffsetGap = 0;
this.listBoxAlarm4.ItemOffsetX = 0;
this.listBoxAlarm4.ItemOffsetY = 0;
this.listBoxAlarm4.Location = new System.Drawing.Point(21, 39);
this.listBoxAlarm4.MouseMoveEventSpace = 3;
this.listBoxAlarm4.MouseMoveSpace = 10;
this.listBoxAlarm4.Name = "listBoxAlarm4";
this.listBoxAlarm4.OutLineColor = System.Drawing.SystemColors.ControlText;
this.listBoxAlarm4.SelectColor = System.Drawing.Color.Blue;
this.listBoxAlarm4.SelectFilled = true;
this.listBoxAlarm4.SelectFontColor = System.Drawing.Color.DarkBlue;
this.listBoxAlarm4.SelectItemIndex = -1;
this.listBoxAlarm4.SeparationlineColor1 = System.Drawing.Color.Gray;
this.listBoxAlarm4.SeparationlineColor2 = System.Drawing.Color.LightGray;
this.listBoxAlarm4.SeparationLineStyle = SmartX.SmartListBox.SEPARATIONLINETYPES.FixedSingle;
this.listBoxAlarm4.SeparationlineVisibleBottom = true;
this.listBoxAlarm4.SeparationlineVisibleTop = true;
this.listBoxAlarm4.Size = new System.Drawing.Size(232, 164);
this.listBoxAlarm4.TabIndex = 213;
this.listBoxAlarm4.Text = "smartListBox1";
//
// listBoxAlarm3
//
this.listBoxAlarm3.BackPictureBox = null;
this.listBoxAlarm3.BackPictureBox1 = null;
this.listBoxAlarm3.BackPictureBox2 = null;
this.listBoxAlarm3.ColumnAlign = SmartX.SmartListBox.COLUMNALIGNS.LEFT;
this.listBoxAlarm3.ColumnDelimiter = '\0';
this.listBoxAlarm3.ColumnOffsets = null;
this.listBoxAlarm3.FontColor = System.Drawing.Color.Black;
this.listBoxAlarm3.InitVisible = true;
this.listBoxAlarm3.ItemAddOrder = SmartX.SmartListBox.ITEMADDORDERS.BOTTOMADD;
this.listBoxAlarm3.ItemOffsetGap = 0;
this.listBoxAlarm3.ItemOffsetX = 0;
this.listBoxAlarm3.ItemOffsetY = 0;
this.listBoxAlarm3.Location = new System.Drawing.Point(21, 39);
this.listBoxAlarm3.MouseMoveEventSpace = 3;
this.listBoxAlarm3.MouseMoveSpace = 10;
this.listBoxAlarm3.Name = "listBoxAlarm3";
this.listBoxAlarm3.OutLineColor = System.Drawing.SystemColors.ControlText;
this.listBoxAlarm3.SelectColor = System.Drawing.Color.Blue;
this.listBoxAlarm3.SelectFilled = true;
this.listBoxAlarm3.SelectFontColor = System.Drawing.Color.DarkBlue;
this.listBoxAlarm3.SelectItemIndex = -1;
this.listBoxAlarm3.SeparationlineColor1 = System.Drawing.Color.Gray;
this.listBoxAlarm3.SeparationlineColor2 = System.Drawing.Color.LightGray;
this.listBoxAlarm3.SeparationLineStyle = SmartX.SmartListBox.SEPARATIONLINETYPES.FixedSingle;
this.listBoxAlarm3.SeparationlineVisibleBottom = true;
this.listBoxAlarm3.SeparationlineVisibleTop = true;
this.listBoxAlarm3.Size = new System.Drawing.Size(232, 164);
this.listBoxAlarm3.TabIndex = 212;
this.listBoxAlarm3.Text = "smartListBox1";
//
// listBoxAlarm2
//
this.listBoxAlarm2.BackPictureBox = null;
this.listBoxAlarm2.BackPictureBox1 = null;
this.listBoxAlarm2.BackPictureBox2 = null;
this.listBoxAlarm2.ColumnAlign = SmartX.SmartListBox.COLUMNALIGNS.LEFT;
this.listBoxAlarm2.ColumnDelimiter = '\0';
this.listBoxAlarm2.ColumnOffsets = null;
this.listBoxAlarm2.FontColor = System.Drawing.Color.Black;
this.listBoxAlarm2.InitVisible = true;
this.listBoxAlarm2.ItemAddOrder = SmartX.SmartListBox.ITEMADDORDERS.BOTTOMADD;
this.listBoxAlarm2.ItemOffsetGap = 0;
this.listBoxAlarm2.ItemOffsetX = 0;
this.listBoxAlarm2.ItemOffsetY = 0;
this.listBoxAlarm2.Location = new System.Drawing.Point(21, 39);
this.listBoxAlarm2.MouseMoveEventSpace = 3;
this.listBoxAlarm2.MouseMoveSpace = 10;
this.listBoxAlarm2.Name = "listBoxAlarm2";
this.listBoxAlarm2.OutLineColor = System.Drawing.SystemColors.ControlText;
this.listBoxAlarm2.SelectColor = System.Drawing.Color.Blue;
this.listBoxAlarm2.SelectFilled = true;
this.listBoxAlarm2.SelectFontColor = System.Drawing.Color.DarkBlue;
this.listBoxAlarm2.SelectItemIndex = -1;
this.listBoxAlarm2.SeparationlineColor1 = System.Drawing.Color.Gray;
this.listBoxAlarm2.SeparationlineColor2 = System.Drawing.Color.LightGray;
this.listBoxAlarm2.SeparationLineStyle = SmartX.SmartListBox.SEPARATIONLINETYPES.FixedSingle;
this.listBoxAlarm2.SeparationlineVisibleBottom = true;
this.listBoxAlarm2.SeparationlineVisibleTop = true;
this.listBoxAlarm2.Size = new System.Drawing.Size(232, 164);
this.listBoxAlarm2.TabIndex = 211;
this.listBoxAlarm2.Text = "smartListBox1";
//
// listBoxAlarm1
//
this.listBoxAlarm1.BackPictureBox = null;
this.listBoxAlarm1.BackPictureBox1 = null;
this.listBoxAlarm1.BackPictureBox2 = null;
this.listBoxAlarm1.ColumnAlign = SmartX.SmartListBox.COLUMNALIGNS.LEFT;
this.listBoxAlarm1.ColumnDelimiter = '\0';
this.listBoxAlarm1.ColumnOffsets = null;
this.listBoxAlarm1.FontColor = System.Drawing.Color.Black;
this.listBoxAlarm1.InitVisible = true;
this.listBoxAlarm1.ItemAddOrder = SmartX.SmartListBox.ITEMADDORDERS.BOTTOMADD;
this.listBoxAlarm1.ItemOffsetGap = 0;
this.listBoxAlarm1.ItemOffsetX = 0;
this.listBoxAlarm1.ItemOffsetY = 0;
this.listBoxAlarm1.Location = new System.Drawing.Point(21, 39);
this.listBoxAlarm1.MouseMoveEventSpace = 3;
this.listBoxAlarm1.MouseMoveSpace = 10;
this.listBoxAlarm1.Name = "listBoxAlarm1";
this.listBoxAlarm1.OutLineColor = System.Drawing.SystemColors.ControlText;
this.listBoxAlarm1.SelectColor = System.Drawing.Color.Blue;
this.listBoxAlarm1.SelectFilled = true;
this.listBoxAlarm1.SelectFontColor = System.Drawing.Color.DarkBlue;
this.listBoxAlarm1.SelectItemIndex = -1;
this.listBoxAlarm1.SeparationlineColor1 = System.Drawing.Color.Gray;
this.listBoxAlarm1.SeparationlineColor2 = System.Drawing.Color.LightGray;
this.listBoxAlarm1.SeparationLineStyle = SmartX.SmartListBox.SEPARATIONLINETYPES.FixedSingle;
this.listBoxAlarm1.SeparationlineVisibleBottom = true;
this.listBoxAlarm1.SeparationlineVisibleTop = true;
this.listBoxAlarm1.Size = new System.Drawing.Size(232, 164);
this.listBoxAlarm1.TabIndex = 210;
this.listBoxAlarm1.Text = "smartListBox1";
//
// buttonMotor4
//
@ -558,38 +758,6 @@
this.buttonMotor3.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonMotor3.UpImage")));
this.buttonMotor3.Click += new System.EventHandler(this.buttonMotor_Click);
//
// buttonRefresh
//
this.buttonRefresh.BackPictureBox = null;
this.buttonRefresh.BackPictureBox1 = null;
this.buttonRefresh.BackPictureBox2 = null;
this.buttonRefresh.ButtonColor = System.Drawing.Color.Gray;
this.buttonRefresh.ButtonImageAutoSize = true;
this.buttonRefresh.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonRefresh.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonRefresh.DisableImage")));
this.buttonRefresh.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonRefresh.DownImage")));
this.buttonRefresh.GroupID = 0;
this.buttonRefresh.InitVisible = true;
this.buttonRefresh.Location = new System.Drawing.Point(567, 20);
this.buttonRefresh.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.buttonRefresh.Name = "buttonRefresh";
this.buttonRefresh.NestedClickEventPrevent = false;
this.buttonRefresh.OutlinePixel = 1;
this.buttonRefresh.RepeatInterval = 200;
this.buttonRefresh.RepeatIntervalAccelerate = null;
this.buttonRefresh.SafeInterval = 200;
this.buttonRefresh.Size = new System.Drawing.Size(50, 50);
this.buttonRefresh.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonRefresh.TabIndex = 207;
this.buttonRefresh.TextColor = System.Drawing.Color.Black;
this.buttonRefresh.TextDownColor = System.Drawing.Color.White;
this.buttonRefresh.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonRefresh.TextLocation = new System.Drawing.Point(0, 0);
this.buttonRefresh.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonRefresh.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonRefresh.UpImage")));
this.buttonRefresh.Visible = false;
this.buttonRefresh.Click += new System.EventHandler(this.buttonRefresh_Click);
//
// buttonMotor2
//
this.buttonMotor2.BackPictureBox = null;
@ -845,9 +1013,9 @@
this.labelVersionBuild.ForeColor = System.Drawing.Color.White;
this.labelVersionBuild.InitVisible = true;
this.labelVersionBuild.LineSpacing = 0F;
this.labelVersionBuild.Location = new System.Drawing.Point(198, 30);
this.labelVersionBuild.Location = new System.Drawing.Point(206, 30);
this.labelVersionBuild.Name = "labelVersionBuild";
this.labelVersionBuild.Size = new System.Drawing.Size(27, 28);
this.labelVersionBuild.Size = new System.Drawing.Size(35, 28);
this.labelVersionBuild.TabIndex = 146;
this.labelVersionBuild.Text = "00";
this.labelVersionBuild.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
@ -868,7 +1036,7 @@
this.labelVersionMinor.LineSpacing = 0F;
this.labelVersionMinor.Location = new System.Drawing.Point(165, 30);
this.labelVersionMinor.Name = "labelVersionMinor";
this.labelVersionMinor.Size = new System.Drawing.Size(27, 28);
this.labelVersionMinor.Size = new System.Drawing.Size(35, 28);
this.labelVersionMinor.TabIndex = 145;
this.labelVersionMinor.Text = "00.";
this.labelVersionMinor.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
@ -887,9 +1055,9 @@
this.labelVersionMajor.ForeColor = System.Drawing.Color.White;
this.labelVersionMajor.InitVisible = true;
this.labelVersionMajor.LineSpacing = 0F;
this.labelVersionMajor.Location = new System.Drawing.Point(132, 30);
this.labelVersionMajor.Location = new System.Drawing.Point(124, 30);
this.labelVersionMajor.Name = "labelVersionMajor";
this.labelVersionMajor.Size = new System.Drawing.Size(27, 28);
this.labelVersionMajor.Size = new System.Drawing.Size(35, 28);
this.labelVersionMajor.TabIndex = 144;
this.labelVersionMajor.Text = "01.";
this.labelVersionMajor.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
@ -910,9 +1078,9 @@
this.labelTitleVersion.LineSpacing = 0F;
this.labelTitleVersion.Location = new System.Drawing.Point(31, 30);
this.labelTitleVersion.Name = "labelTitleVersion";
this.labelTitleVersion.Size = new System.Drawing.Size(101, 28);
this.labelTitleVersion.Size = new System.Drawing.Size(87, 28);
this.labelTitleVersion.TabIndex = 141;
this.labelTitleVersion.Text = "Version : V";
this.labelTitleVersion.Text = "Version : ";
this.labelTitleVersion.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
this.labelTitleVersion.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.labelTitleVersion.Wordwrap = false;
@ -926,39 +1094,6 @@
this.timer.StartTime = ((long)(0));
this.timer.Tick += new System.EventHandler(this.timer_Tick);
//
// buttonMotor5
//
this.buttonMotor5.BackPictureBox = null;
this.buttonMotor5.BackPictureBox1 = null;
this.buttonMotor5.BackPictureBox2 = null;
this.buttonMotor5.ButtonColor = System.Drawing.Color.Gray;
this.buttonMotor5.ButtonImageAutoSize = true;
this.buttonMotor5.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonMotor5.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonMotor5.DisableImage")));
this.buttonMotor5.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonMotor5.DownImage")));
this.buttonMotor5.Font = new System.Drawing.Font("Arial", 20F, System.Drawing.FontStyle.Bold);
this.buttonMotor5.GroupID = 0;
this.buttonMotor5.InitVisible = true;
this.buttonMotor5.Location = new System.Drawing.Point(261, 20);
this.buttonMotor5.Mode = SmartX.SmartButton.BUTTONMODE.RADIO;
this.buttonMotor5.Name = "buttonMotor5";
this.buttonMotor5.NestedClickEventPrevent = false;
this.buttonMotor5.OutlinePixel = 1;
this.buttonMotor5.RepeatInterval = 200;
this.buttonMotor5.RepeatIntervalAccelerate = null;
this.buttonMotor5.SafeInterval = 200;
this.buttonMotor5.Size = new System.Drawing.Size(50, 50);
this.buttonMotor5.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonMotor5.TabIndex = 214;
this.buttonMotor5.Tag = "4";
this.buttonMotor5.Text = "5";
this.buttonMotor5.TextColor = System.Drawing.Color.White;
this.buttonMotor5.TextDownColor = System.Drawing.Color.White;
this.buttonMotor5.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonMotor5.TextLocation = new System.Drawing.Point(0, 0);
this.buttonMotor5.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonMotor5.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonMotor5.UpImage")));
//
// ControlCenterSystemBLDCMotorSetting
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@ -998,7 +1133,6 @@
private SmartX.SmartLabel labelTitleSelectOperMode;
private SmartX.SmartLabel labelTitleMotorDirectionWrite;
private SmartX.SmartButton buttonMotorDirectionWrite;
private SmartX.SmartButton buttonRefresh;
private SmartX.SmartGroupBox smartGroupBox2;
private SmartX.SmartButton buttonMotor1;
private SmartX.SmartGroupBox smartGroupBox3;
@ -1008,11 +1142,16 @@
private SmartX.SmartLabel labelTitleMotorID;
public SmartX.SmartLabel labelMotorID;
private SmartX.SmartGroupBox smartGroupBox4;
private SmartX.SmartButton buttonStart;
private SmartX.SmartListBox listBoxAlarm;
private SmartX.SmartListBox listBoxAlarm1;
private SmartX.SmartTimer timer;
private SmartX.SmartButton buttonReboot;
private SmartX.SmartButton buttonDefaultSet;
private SmartX.SmartButton buttonMotor5;
private SmartX.SmartListBox listBoxAlarm3;
private SmartX.SmartListBox listBoxAlarm2;
private SmartX.SmartListBox listBoxAlarm5;
private SmartX.SmartListBox listBoxAlarm4;
private SmartX.SmartButton buttonPasteAll;
private SmartX.SmartButton buttonCopy;
}
}

View File

@ -22,6 +22,9 @@ namespace ITC81DB_0H.Controls
private string CommID;
private int MotorIndex;
private Collection<SmartX.SmartListBox> CollectionListBox;
private BLDCMotorParameter CopyBLDCMotorParameter;
#endregion
#region Constructor
@ -78,6 +81,15 @@ namespace ITC81DB_0H.Controls
this.MotorIndex = 0;
this.CommID = "A";
this.CopyBLDCMotorParameter = new BLDCMotorParameter();
this.CollectionListBox = new Collection<SmartListBox>();
this.CollectionListBox.Add(this.listBoxAlarm1);
this.CollectionListBox.Add(this.listBoxAlarm2);
this.CollectionListBox.Add(this.listBoxAlarm3);
this.CollectionListBox.Add(this.listBoxAlarm4);
this.CollectionListBox.Add(this.listBoxAlarm5);
this.comboBoxMotorPoleNum.Items.Clear();
this.comboBoxMotorPoleNum.Items.Add("3");
this.comboBoxMotorPoleNum.Items.Add("6");
@ -117,13 +129,56 @@ namespace ITC81DB_0H.Controls
}
public void UpdateAlarm(int index, Collection<BLDCMotorParameter> items)
{
this.listBoxAlarm.Items.Clear();
switch (index)
{
case 0:
this.listBoxAlarm1.ClearAll();
if (items[index]._6790_Alarm_FaultSignal == true)
this.listBoxAlarm.Items.Add("Detect Fault Signal");
this.listBoxAlarm1.AddItem("Detect Fault Signal");
if (items[index]._6791_Alarm_HallSensorError == true)
this.listBoxAlarm.Items.Add("Hall Sensor Error");
this.listBoxAlarm1.AddItem("Hall Sensor Error");
if (items[index]._6792_Alarm_MotorStop == true)
this.listBoxAlarm.Items.Add("Motor stopped while operating");
this.listBoxAlarm1.AddItem("Motor stopped while operating");
break;
case 1:
this.listBoxAlarm2.ClearAll();
if (items[index]._6790_Alarm_FaultSignal == true)
this.listBoxAlarm2.AddItem("Detect Fault Signal");
if (items[index]._6791_Alarm_HallSensorError == true)
this.listBoxAlarm2.AddItem("Hall Sensor Error");
if (items[index]._6792_Alarm_MotorStop == true)
this.listBoxAlarm2.AddItem("Motor stopped while operating");
break;
case 2:
this.listBoxAlarm3.ClearAll();
if (items[index]._6790_Alarm_FaultSignal == true)
this.listBoxAlarm3.AddItem("Detect Fault Signal");
if (items[index]._6791_Alarm_HallSensorError == true)
this.listBoxAlarm3.AddItem("Hall Sensor Error");
if (items[index]._6792_Alarm_MotorStop == true)
this.listBoxAlarm3.AddItem("Motor stopped while operating");
break;
case 3:
this.listBoxAlarm4.ClearAll();
if (items[index]._6790_Alarm_FaultSignal == true)
this.listBoxAlarm4.AddItem("Detect Fault Signal");
if (items[index]._6791_Alarm_HallSensorError == true)
this.listBoxAlarm4.AddItem("Hall Sensor Error");
if (items[index]._6792_Alarm_MotorStop == true)
this.listBoxAlarm4.AddItem("Motor stopped while operating");
break;
case 4:
this.listBoxAlarm5.ClearAll();
if (items[index]._6790_Alarm_FaultSignal == true)
this.listBoxAlarm5.AddItem("Detect Fault Signal");
if (items[index]._6791_Alarm_HallSensorError == true)
this.listBoxAlarm5.AddItem("Hall Sensor Error");
if (items[index]._6792_Alarm_MotorStop == true)
this.listBoxAlarm5.AddItem("Motor stopped while operating");
break;
default:
break;
}
}
public void UpdateParameter(int index, Collection<BLDCMotorParameter> items)
{
@ -150,13 +205,13 @@ namespace ITC81DB_0H.Controls
switch (items[index]._6765_SelectOperMode)
{
case 0:
this.labelSelectOperMode.Text = "MCU";
break;
case 1:
this.labelSelectOperMode.Text = "Manual";
break;
case 1:
this.labelSelectOperMode.Text = "MCU";
break;
default:
this.labelMotorDirectionRead.Text = "MCU";
this.labelMotorDirectionRead.Text = "Manual";
break;
}
}
@ -175,11 +230,13 @@ namespace ITC81DB_0H.Controls
public void DisplayRefresh(SystemStatus status, Collection<BLDCMotorParameter> items)
{
this.ParentForm.ParentForm.CurrentSystemStatus.CurrentDisplay = DataStore.DisplayStore.SystemBLDCMotorSetting;
this.ParentForm.ParentForm.SetDisplayMode(DataStore.DisplayMode.Menu);
this.ParentForm.ParentForm.SetDisplayMode(DataStore.DisplayMode.EquipmentTest);
this.ParentForm.DisplayTitleRoot(this.ParentForm.ParentForm.CurrentSystemStatus);
this.buttonCopy.Text = "";
this.MotorIndex = 0;
this.CommID = "A";
this.listBoxAlarm1.BringToFront();
this.buttonMotor2.ButtonUp();
this.buttonMotor3.ButtonUp();
@ -201,6 +258,7 @@ namespace ITC81DB_0H.Controls
this.MotorIndex = int.Parse(button.Tag.ToString());
this.CommID = this.ParentForm.ParentForm.CurrentCommunicationID(this.MotorIndex);
this.CollectionListBox[this.MotorIndex].BringToFront();
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Read, this.CommID,
CommunicationAddress.BLDCMotorParameterRead, "");
@ -240,19 +298,6 @@ namespace ITC81DB_0H.Controls
{
this.RefreshDisplay();
}
private void buttonStart_Click(object sender, EventArgs e)
{
if (this.buttonStart.ButtonStatus == SmartButton.BUTSTATUS.DOWN)
{
this.ParentForm.ParentForm.TransferData(CommunicationCommand.Start, this.CommID);
this.timer.Start();
}
else
{
this.ParentForm.ParentForm.TransferData(CommunicationCommand.Stop, this.CommID);
this.timer.Stop();
}
}
private void labelMotorID_Click(object sender, EventArgs e)
{
@ -357,6 +402,52 @@ namespace ITC81DB_0H.Controls
this.RefreshDisplay();
}
private void buttonCopy_Click(object sender, EventArgs e)
{
this.buttonCopy.Text = this.CommID;
BLDCMotorParameter BLDCParam = this.ParentForm.ParentForm.CollectionBLDCParameter[this.MotorIndex];
this.CopyBLDCMotorParameter._6700_CommBaudrate = BLDCParam._6700_CommBaudrate;
this.CopyBLDCMotorParameter._6701_CommParityBit = BLDCParam._6701_CommParityBit;
this.CopyBLDCMotorParameter._6702_PWMDelay = BLDCParam._6702_PWMDelay;
this.CopyBLDCMotorParameter._6703_FeedbackDeviation = BLDCParam._6703_FeedbackDeviation;
this.CopyBLDCMotorParameter._6704_MotorSpeed = BLDCParam._6704_MotorSpeed;
this.CopyBLDCMotorParameter._6705_PoleNum = BLDCParam._6705_PoleNum;
this.CopyBLDCMotorParameter._6706_AttenuatorRatio = BLDCParam._6706_AttenuatorRatio;
this.CopyBLDCMotorParameter._6760_BootingStart = BLDCParam._6760_BootingStart;
this.CopyBLDCMotorParameter._6761_PortUse = BLDCParam._6761_PortUse;
this.CopyBLDCMotorParameter._6762_Feedback = BLDCParam._6762_Feedback;
this.CopyBLDCMotorParameter._6763_InitDirection = BLDCParam._6763_InitDirection;
this.CopyBLDCMotorParameter._6764_OperDirection = BLDCParam._6764_OperDirection;
}
private void buttonPasteAll_Click(object sender, EventArgs e)
{
if (this.buttonCopy.Text != "")
{
for (int i = 0; i < this.ParentForm.ParentForm.SystemConfig2.BLDCTotalMotorNum; i++)
{
this.ParentForm.ParentForm.CollectionBLDCParameter[i]._6700_CommBaudrate = this.CopyBLDCMotorParameter._6700_CommBaudrate;
this.ParentForm.ParentForm.CollectionBLDCParameter[i]._6701_CommParityBit = this.CopyBLDCMotorParameter._6701_CommParityBit;
this.ParentForm.ParentForm.CollectionBLDCParameter[i]._6702_PWMDelay = this.CopyBLDCMotorParameter._6702_PWMDelay;
this.ParentForm.ParentForm.CollectionBLDCParameter[i]._6703_FeedbackDeviation = this.CopyBLDCMotorParameter._6703_FeedbackDeviation;
this.ParentForm.ParentForm.CollectionBLDCParameter[i]._6704_MotorSpeed = this.CopyBLDCMotorParameter._6704_MotorSpeed;
this.ParentForm.ParentForm.CollectionBLDCParameter[i]._6705_PoleNum = this.CopyBLDCMotorParameter._6705_PoleNum;
this.ParentForm.ParentForm.CollectionBLDCParameter[i]._6706_AttenuatorRatio = this.CopyBLDCMotorParameter._6706_AttenuatorRatio;
this.ParentForm.ParentForm.CollectionBLDCParameter[i]._6760_BootingStart = this.CopyBLDCMotorParameter._6760_BootingStart;
this.ParentForm.ParentForm.CollectionBLDCParameter[i]._6761_PortUse = this.CopyBLDCMotorParameter._6761_PortUse;
this.ParentForm.ParentForm.CollectionBLDCParameter[i]._6762_Feedback = this.CopyBLDCMotorParameter._6762_Feedback;
this.ParentForm.ParentForm.CollectionBLDCParameter[i]._6763_InitDirection = this.CopyBLDCMotorParameter._6763_InitDirection;
this.ParentForm.ParentForm.CollectionBLDCParameter[i]._6764_OperDirection = this.CopyBLDCMotorParameter._6764_OperDirection;
}
this.ParentForm.ParentForm.SaveBLDCMotorFile(this.ParentForm.ParentForm.CollectionBLDCParameter);
this.ParentForm.ParentForm.TransferBLDCMotorData("0", this.ParentForm.ParentForm.SystemConfig2,
this.ParentForm.ParentForm.CollectionBLDCParameter[this.MotorIndex]);
}
this.buttonCopy.Text = "";
}
private void timer_Tick(object sender, EventArgs e)
{
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Read, this.CommID,

View File

@ -536,26 +536,27 @@ namespace ITC81DB_0H.Controls
{
string value = "", message = "";
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelFeedSpeed.Text, 4, 0, false, this.ParentForm.ParentForm.SystemConfig1.Language);
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelFeedSpeed.Text, 3, 0, false, this.ParentForm.ParentForm.SystemConfig1.Language);
if (myKeyPad.ShowDialog() == DialogResult.OK)
{
if (myKeyPad.doubleValue < 1 || myKeyPad.doubleValue > 120)
if (myKeyPad.doubleValue < 1 || myKeyPad.doubleValue > 100)
{
// 입력범위를 확인하세요
message = "1~120";
message = "1~100";
DialogFormMessage myMsg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig1.Language, message);
myMsg.ShowDialog();
}
else
{
this.labelFeedSpeed.Text = myKeyPad.StringValue;
this.ParentForm.ParentForm.CurrentJudgmentSetItem.FeedSpeed1 = myKeyPad.IntValue;
for(int i = 0; i < this.ParentForm.ParentForm.SystemConfig2.BLDCTotalMotorNum; i++)
this.ParentForm.ParentForm.CollectionBLDCParameter[i]._6704_MotorSpeed = myKeyPad.IntValue;
value = Helper.StringZeroFillDigits4(myKeyPad.StringValue);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress.FeedSpeed, value);
this.ParentForm.ParentForm.SaveJudgmentSetFile(this.ParentForm.ParentForm.CurrentJudgmentSetItem, this.ParentForm.ParentForm.SystemConfig1.ProductNumber - 1);
this.ParentForm.ParentForm.SaveBLDCMotorFile(this.ParentForm.ParentForm.CollectionBLDCParameter);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, "0",
CommunicationAddress.BLDCMotorSpeed, value);
}
}
}

View File

@ -3106,7 +3106,7 @@ namespace ITC81DB_0H
this._6761_PortUse = 1;
this._6762_Feedback = 0;
this._6763_InitDirection = 0;
this._6764_OperDirection = 0;
this._6764_OperDirection = 1;
this._6765_SelectOperMode = 0;
this._6730_VersionMajor = "01";
@ -3114,7 +3114,7 @@ namespace ITC81DB_0H
this._6732_VersionBuild = "00";
this._6733_Frequency = "0";
this._6734_MotorRPM = "0";
this._6735_MotorDirection = 1;
this._6735_MotorDirection = 0;
this._6736_AttenuatorRPM = "0";
this._6790_Alarm_FaultSignal = false;

View File

@ -2316,9 +2316,9 @@ namespace ITC81DB_0H.Forms
{
index = i;
this.CollectionBLDCParameter[index]._6790_Alarm_FaultSignal = bool.Parse(receiveData.Substring(0, 4));
this.CollectionBLDCParameter[index]._6791_Alarm_HallSensorError = bool.Parse(receiveData.Substring(4, 4));
this.CollectionBLDCParameter[index]._6792_Alarm_MotorStop = bool.Parse(receiveData.Substring(8, 4));
this.CollectionBLDCParameter[index]._6790_Alarm_FaultSignal = Convert.ToBoolean(int.Parse(receiveData.Substring(0, 4)));
this.CollectionBLDCParameter[index]._6791_Alarm_HallSensorError = Convert.ToBoolean(int.Parse(receiveData.Substring(4, 4)));
this.CollectionBLDCParameter[index]._6792_Alarm_MotorStop = Convert.ToBoolean(int.Parse(receiveData.Substring(8, 4)));
if (this.ChildFormMenu.CenterSystemBLDCMotorSetting != null)
this.ChildFormMenu.CenterSystemBLDCMotorSetting.UpdateAlarm(index, this.CollectionBLDCParameter);

View File

@ -530,7 +530,8 @@ namespace ITC81DB_0H.Forms
private bool EquipmentRun(DataStore.DisplayStore currentDisplay)
{
if (currentDisplay == DataStore.DisplayStore.SystemJudgmentManual
|| currentDisplay == DataStore.DisplayStore.SystemSorterSetting)
|| currentDisplay == DataStore.DisplayStore.SystemSorterSetting
|| currentDisplay == DataStore.DisplayStore.SystemBLDCMotorSetting)
return true;
else
return false;

View File

@ -12,6 +12,11 @@
기본형 컨베어 고정밀센서 계량기
*/
@ Ver 1.3.1 by CJY
- 2022.03.18
- Ver 1.3.0 Modify
- 판정설정 이송속도 - 설정 시 모든 BLDC 모터에 적용(lane = 0)
@ Ver 1.3.0 by CJY
- 2022.02.16
- Ver 1.2.1 Modify