BLDC 추가 - 1차 완료

master
DESKTOP-999R8N3\CJY 2022-02-21 15:02:33 +09:00
parent 5a17337872
commit 8de97eeddf
8 changed files with 1065 additions and 696 deletions

View File

@ -31,11 +31,11 @@
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ControlCenterSystemBLDCMotorSetting));
this.smartGroupBox1 = new SmartX.SmartGroupBox();
this.buttonDefaultSet = new SmartX.SmartButton();
this.buttonReboot = new SmartX.SmartButton();
this.buttonStart = new SmartX.SmartButton();
this.smartGroupBox4 = new SmartX.SmartGroupBox();
this.smartListBox1 = new SmartX.SmartListBox();
this.buttonAlarmRead = new SmartX.SmartButton();
this.buttonAlarmReset = new SmartX.SmartButton();
this.listBoxAlarm = new SmartX.SmartListBox();
this.buttonMotor4 = new SmartX.SmartButton();
this.smartGroupBox2 = new SmartX.SmartGroupBox();
this.labelTitleMotorID = new SmartX.SmartLabel();
@ -77,6 +77,8 @@
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.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);
@ -100,6 +102,68 @@
this.smartGroupBox1.TabIndex = 175;
this.smartGroupBox1.TextColor = System.Drawing.Color.Black;
//
// buttonDefaultSet
//
this.buttonDefaultSet.BackPictureBox = null;
this.buttonDefaultSet.BackPictureBox1 = null;
this.buttonDefaultSet.BackPictureBox2 = null;
this.buttonDefaultSet.ButtonColor = System.Drawing.Color.Gray;
this.buttonDefaultSet.ButtonImageAutoSize = true;
this.buttonDefaultSet.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonDefaultSet.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonDefaultSet.DisableImage")));
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.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.buttonDefaultSet.Name = "buttonDefaultSet";
this.buttonDefaultSet.NestedClickEventPrevent = false;
this.buttonDefaultSet.OutlinePixel = 1;
this.buttonDefaultSet.RepeatInterval = 200;
this.buttonDefaultSet.RepeatIntervalAccelerate = null;
this.buttonDefaultSet.SafeInterval = 200;
this.buttonDefaultSet.Size = new System.Drawing.Size(50, 50);
this.buttonDefaultSet.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonDefaultSet.TabIndex = 213;
this.buttonDefaultSet.TextColor = System.Drawing.Color.Black;
this.buttonDefaultSet.TextDownColor = System.Drawing.Color.White;
this.buttonDefaultSet.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonDefaultSet.TextLocation = new System.Drawing.Point(0, 0);
this.buttonDefaultSet.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonDefaultSet.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonDefaultSet.UpImage")));
this.buttonDefaultSet.Click += new System.EventHandler(this.buttonDefaultSet_Click);
//
// buttonReboot
//
this.buttonReboot.BackPictureBox = null;
this.buttonReboot.BackPictureBox1 = null;
this.buttonReboot.BackPictureBox2 = null;
this.buttonReboot.ButtonColor = System.Drawing.Color.Gray;
this.buttonReboot.ButtonImageAutoSize = true;
this.buttonReboot.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonReboot.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonReboot.DisableImage")));
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.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.buttonReboot.Name = "buttonReboot";
this.buttonReboot.NestedClickEventPrevent = false;
this.buttonReboot.OutlinePixel = 1;
this.buttonReboot.RepeatInterval = 200;
this.buttonReboot.RepeatIntervalAccelerate = null;
this.buttonReboot.SafeInterval = 200;
this.buttonReboot.Size = new System.Drawing.Size(50, 50);
this.buttonReboot.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonReboot.TabIndex = 212;
this.buttonReboot.TextColor = System.Drawing.Color.Black;
this.buttonReboot.TextDownColor = System.Drawing.Color.White;
this.buttonReboot.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonReboot.TextLocation = new System.Drawing.Point(0, 0);
this.buttonReboot.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonReboot.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonReboot.UpImage")));
this.buttonReboot.Click += new System.EventHandler(this.buttonReboot_Click);
//
// buttonStart
//
this.buttonStart.BackPictureBox = null;
@ -136,9 +200,7 @@
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.smartListBox1);
this.smartGroupBox4.Controls.Add(this.buttonAlarmRead);
this.smartGroupBox4.Controls.Add(this.buttonAlarmReset);
this.smartGroupBox4.Controls.Add(this.listBoxAlarm);
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;
@ -154,104 +216,38 @@
this.smartGroupBox4.Text = "Alarm";
this.smartGroupBox4.TextColor = System.Drawing.Color.White;
//
// smartListBox1
// listBoxAlarm
//
this.smartListBox1.BackPictureBox = null;
this.smartListBox1.BackPictureBox1 = null;
this.smartListBox1.BackPictureBox2 = null;
this.smartListBox1.ColumnAlign = SmartX.SmartListBox.COLUMNALIGNS.CENTER;
this.smartListBox1.ColumnDelimiter = '\0';
this.smartListBox1.ColumnOffsets = null;
this.smartListBox1.Font = new System.Drawing.Font("Arial", 13F, System.Drawing.FontStyle.Regular);
this.smartListBox1.FontColor = System.Drawing.Color.Black;
this.smartListBox1.InitVisible = true;
this.smartListBox1.ItemAddOrder = SmartX.SmartListBox.ITEMADDORDERS.BOTTOMADD;
this.smartListBox1.ItemOffsetGap = 0;
this.smartListBox1.ItemOffsetX = 0;
this.smartListBox1.ItemOffsetY = 0;
this.smartListBox1.Location = new System.Drawing.Point(34, 89);
this.smartListBox1.MouseMoveEventSpace = 3;
this.smartListBox1.MouseMoveSpace = 10;
this.smartListBox1.Name = "smartListBox1";
this.smartListBox1.OutLineColor = System.Drawing.SystemColors.ControlText;
this.smartListBox1.SelectColor = System.Drawing.Color.Blue;
this.smartListBox1.SelectFilled = true;
this.smartListBox1.SelectFontColor = System.Drawing.Color.DarkBlue;
this.smartListBox1.SelectItemIndex = -1;
this.smartListBox1.SeparationlineColor1 = System.Drawing.Color.Gray;
this.smartListBox1.SeparationlineColor2 = System.Drawing.Color.LightGray;
this.smartListBox1.SeparationLineStyle = SmartX.SmartListBox.SEPARATIONLINETYPES.FixedSingle;
this.smartListBox1.SeparationlineVisibleBottom = true;
this.smartListBox1.SeparationlineVisibleTop = true;
this.smartListBox1.Size = new System.Drawing.Size(206, 107);
this.smartListBox1.TabIndex = 210;
this.smartListBox1.Text = "smartListBox1";
//
// buttonAlarmRead
//
this.buttonAlarmRead.BackPictureBox = null;
this.buttonAlarmRead.BackPictureBox1 = null;
this.buttonAlarmRead.BackPictureBox2 = null;
this.buttonAlarmRead.ButtonColor = System.Drawing.Color.Gray;
this.buttonAlarmRead.ButtonImageAutoSize = true;
this.buttonAlarmRead.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonAlarmRead.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonAlarmRead.DisableImage")));
this.buttonAlarmRead.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonAlarmRead.DownImage")));
this.buttonAlarmRead.Font = new System.Drawing.Font("Arial", 11F, System.Drawing.FontStyle.Bold);
this.buttonAlarmRead.GroupID = 0;
this.buttonAlarmRead.InitVisible = true;
this.buttonAlarmRead.Location = new System.Drawing.Point(34, 43);
this.buttonAlarmRead.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.buttonAlarmRead.Name = "buttonAlarmRead";
this.buttonAlarmRead.NestedClickEventPrevent = false;
this.buttonAlarmRead.OutlinePixel = 1;
this.buttonAlarmRead.RepeatInterval = 200;
this.buttonAlarmRead.RepeatIntervalAccelerate = null;
this.buttonAlarmRead.SafeInterval = 200;
this.buttonAlarmRead.Size = new System.Drawing.Size(100, 40);
this.buttonAlarmRead.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonAlarmRead.TabIndex = 209;
this.buttonAlarmRead.Text = "Alarm Read";
this.buttonAlarmRead.TextColor = System.Drawing.Color.White;
this.buttonAlarmRead.TextDownColor = System.Drawing.Color.White;
this.buttonAlarmRead.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonAlarmRead.TextLocation = new System.Drawing.Point(0, 0);
this.buttonAlarmRead.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonAlarmRead.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonAlarmRead.UpImage")));
this.buttonAlarmRead.Click += new System.EventHandler(this.buttonAlarmRead_Click);
//
// buttonAlarmReset
//
this.buttonAlarmReset.BackPictureBox = null;
this.buttonAlarmReset.BackPictureBox1 = null;
this.buttonAlarmReset.BackPictureBox2 = null;
this.buttonAlarmReset.ButtonColor = System.Drawing.Color.Gray;
this.buttonAlarmReset.ButtonImageAutoSize = true;
this.buttonAlarmReset.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonAlarmReset.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonAlarmReset.DisableImage")));
this.buttonAlarmReset.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonAlarmReset.DownImage")));
this.buttonAlarmReset.Font = new System.Drawing.Font("Arial", 11F, System.Drawing.FontStyle.Bold);
this.buttonAlarmReset.GroupID = 0;
this.buttonAlarmReset.InitVisible = true;
this.buttonAlarmReset.Location = new System.Drawing.Point(140, 43);
this.buttonAlarmReset.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.buttonAlarmReset.Name = "buttonAlarmReset";
this.buttonAlarmReset.NestedClickEventPrevent = false;
this.buttonAlarmReset.OutlinePixel = 1;
this.buttonAlarmReset.RepeatInterval = 200;
this.buttonAlarmReset.RepeatIntervalAccelerate = null;
this.buttonAlarmReset.SafeInterval = 200;
this.buttonAlarmReset.Size = new System.Drawing.Size(100, 40);
this.buttonAlarmReset.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonAlarmReset.TabIndex = 208;
this.buttonAlarmReset.Text = "Alarm Reset";
this.buttonAlarmReset.TextColor = System.Drawing.Color.White;
this.buttonAlarmReset.TextDownColor = System.Drawing.Color.White;
this.buttonAlarmReset.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonAlarmReset.TextLocation = new System.Drawing.Point(0, 0);
this.buttonAlarmReset.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonAlarmReset.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonAlarmReset.UpImage")));
this.buttonAlarmReset.Click += new System.EventHandler(this.buttonAlarmReset_Click);
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";
//
// buttonMotor4
//
@ -588,6 +584,7 @@
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
@ -976,9 +973,9 @@
public SmartX.SmartLabel labelMotorID;
private SmartX.SmartGroupBox smartGroupBox4;
private SmartX.SmartButton buttonStart;
private SmartX.SmartButton buttonAlarmReset;
private SmartX.SmartButton buttonAlarmRead;
private SmartX.SmartListBox smartListBox1;
private SmartX.SmartListBox listBoxAlarm;
private SmartX.SmartTimer timer;
private SmartX.SmartButton buttonReboot;
private SmartX.SmartButton buttonDefaultSet;
}
}

View File

@ -93,6 +93,10 @@ namespace ITC81DB_0H.Controls
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Read, this.CommID,
CommunicationAddress.BLDCMotorParameterRead, "");
}
public void DisplayRPM()
{
this.labelMotorRPM.Text = this.ParentForm.ParentForm.CollectionBLDCParameter[this.MotorIndex]._6734_MotorRPM;
}
public void VisibleMotorNum(int num)
{
@ -108,14 +112,24 @@ namespace ITC81DB_0H.Controls
button[i].Visible = false;
}
public void UpdateAlarm(int index, Collection<BLDCMotorParameter> items)
{
this.listBoxAlarm.Items.Clear();
if (items[index]._6790_Alarm_FaultSignal == true)
this.listBoxAlarm.Items.Add("Detect Fault Signal");
if (items[index]._6791_Alarm_HallSensorError == true)
this.listBoxAlarm.Items.Add("Hall Sensor Error");
if (items[index]._6792_Alarm_MotorStop == true)
this.listBoxAlarm.Items.Add("Motor stopped while operating");
}
public void UpdateParameter(int index, Collection<BLDCMotorParameter> items)
{
this.labelVersionMajor.Text = items[index].VersionMajor + ".";
this.labelVersionMinor.Text = items[index].VersionMinor + ".";
this.labelVersionBuild.Text = items[index].VersionBuild;
this.labelVersionMajor.Text = items[index]._6730_VersionMajor + ".";
this.labelVersionMinor.Text = items[index]._6731_VersionMinor + ".";
this.labelVersionBuild.Text = items[index]._6732_VersionBuild;
this.labelMotorRPM.Text = items[index].MotorRPM.ToString();
switch (items[index].MotorDirection)
this.labelMotorRPM.Text = items[index]._6734_MotorRPM.ToString();
switch (items[index]._6735_MotorDirection)
{
case 0:
this.labelMotorDirectionRead.Text = "None";
@ -130,7 +144,7 @@ namespace ITC81DB_0H.Controls
this.labelMotorDirectionRead.Text = "None";
break;
}
switch (items[index].SelectOperMode)
switch (items[index]._6765_SelectOperMode)
{
case 0:
this.labelSelectOperMode.Text = "MCU";
@ -146,10 +160,10 @@ namespace ITC81DB_0H.Controls
public void DisplayParameter(int index, Collection<BLDCMotorParameter> items)
{
this.labelMotorID.Text = items[index].MotorID.ToString();
this.labelMotorSpeed.Text = items[index].MotorSpeed.ToString();
this.comboBoxMotorPoleNum.SelectedIndex = items[index].PoleNum;
this.labelAttenuatorRatio.Text = items[index].AttenuatorRatio.ToString();
if (items[index].OperDirection == 1)
this.labelMotorSpeed.Text = items[index]._6704_MotorSpeed.ToString();
this.comboBoxMotorPoleNum.SelectedIndex = items[index]._6705_PoleNum;
this.labelAttenuatorRatio.Text = items[index]._6706_AttenuatorRatio.ToString();
if (items[index]._6764_OperDirection == 1)
this.buttonMotorDirectionWrite.ButtonDown();
else
this.buttonMotorDirectionWrite.ButtonUp();
@ -187,16 +201,50 @@ namespace ITC81DB_0H.Controls
this.DisplayParameter(this.MotorIndex, this.ParentForm.ParentForm.CollectionBLDCParameter);
}
private void buttonDefaultSet_Click(object sender, EventArgs e)
{
DialogFormYesNo myDlg = new DialogFormYesNo(this.ParentForm.ParentForm.SystemConfig1.Language, 25);
if (myDlg.ShowDialog() == DialogResult.Yes)
{
this.ParentForm.ParentForm.TransferData(CommunicationCommand.BLDCDefaultSet, CommunicationID.MainBoard);
for (int i = 0; i < FormMain.BLDCMotorNum; i++)
{
this.ParentForm.ParentForm.CollectionBLDCParameter[i]._6704_MotorSpeed = 80;
this.ParentForm.ParentForm.CollectionBLDCParameter[i]._6705_PoleNum = 1;
this.ParentForm.ParentForm.CollectionBLDCParameter[i]._6706_AttenuatorRatio = 5;
this.ParentForm.ParentForm.CollectionBLDCParameter[i]._6764_OperDirection = 1;
}
this.ParentForm.ParentForm.SaveBLDCMotorFile(this.ParentForm.ParentForm.CollectionBLDCParameter);
//this.ParentForm.ParentForm.TransferBLDCMotorData
// (this.CommID, this.ParentForm.ParentForm.CollectionBLDCParameter[this.MotorIndex]);
}
}
private void buttonReboot_Click(object sender, EventArgs e)
{
DialogFormYesNo myDlg = new DialogFormYesNo(this.ParentForm.ParentForm.SystemConfig1.Language, 26);
if (myDlg.ShowDialog() == DialogResult.Yes)
{
this.ParentForm.ParentForm.TransferData(CommunicationCommand.BLDCMCUReboot, CommunicationID.MainBoard);
}
}
private void buttonRefresh_Click(object sender, EventArgs e)
{
this.RefreshDisplay();
}
private void buttonStart_Click(object sender, EventArgs e)
{
if(this.buttonStart.ButtonStatus == SmartButton.BUTSTATUS.DOWN)
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)
@ -242,7 +290,7 @@ namespace ITC81DB_0H.Controls
else
{
this.labelMotorSpeed.Text = myKeyPad.StringValue;
this.ParentForm.ParentForm.CollectionBLDCParameter[this.MotorIndex].MotorSpeed = myKeyPad.IntValue;
this.ParentForm.ParentForm.CollectionBLDCParameter[this.MotorIndex]._6704_MotorSpeed = myKeyPad.IntValue;
value = Helper.StringZeroFillDigits4(myKeyPad.StringValue);
this.ParentForm.ParentForm.SaveBLDCMotorFile(this.ParentForm.ParentForm.CollectionBLDCParameter);
@ -255,7 +303,7 @@ namespace ITC81DB_0H.Controls
{
string value = "";
this.ParentForm.ParentForm.CollectionBLDCParameter[this.MotorIndex].PoleNum = this.comboBoxMotorPoleNum.SelectedIndex;
this.ParentForm.ParentForm.CollectionBLDCParameter[this.MotorIndex]._6705_PoleNum = this.comboBoxMotorPoleNum.SelectedIndex;
value = Helper.StringZeroFillDigits4(this.comboBoxMotorPoleNum.SelectedIndex.ToString());
this.ParentForm.ParentForm.SaveBLDCMotorFile(this.ParentForm.ParentForm.CollectionBLDCParameter);
@ -278,7 +326,7 @@ namespace ITC81DB_0H.Controls
else
{
this.labelAttenuatorRatio.Text = myKeyPad.StringValue;
this.ParentForm.ParentForm.CollectionBLDCParameter[this.MotorIndex].AttenuatorRatio = myKeyPad.IntValue;
this.ParentForm.ParentForm.CollectionBLDCParameter[this.MotorIndex]._6706_AttenuatorRatio = myKeyPad.IntValue;
value = Helper.StringZeroFillDigits4(myKeyPad.StringValue);
this.ParentForm.ParentForm.SaveBLDCMotorFile(this.ParentForm.ParentForm.CollectionBLDCParameter);
@ -291,29 +339,21 @@ namespace ITC81DB_0H.Controls
string value = "";
if (this.buttonMotorDirectionWrite.ButtonStatus == SmartButton.BUTSTATUS.DOWN)
this.ParentForm.ParentForm.CollectionBLDCParameter[this.MotorIndex].OperDirection = 1; // CCW
this.ParentForm.ParentForm.CollectionBLDCParameter[this.MotorIndex]._6764_OperDirection = 1; // CCW
else
this.ParentForm.ParentForm.CollectionBLDCParameter[this.MotorIndex].OperDirection = 0; // CW
this.ParentForm.ParentForm.CollectionBLDCParameter[this.MotorIndex]._6764_OperDirection = 0; // CW
this.ParentForm.ParentForm.SaveBLDCMotorFile(this.ParentForm.ParentForm.CollectionBLDCParameter);
value = Helper.StringZeroFillDigits4(this.ParentForm.ParentForm.CollectionBLDCParameter[this.MotorIndex].OperDirection.ToString());
value = Helper.StringZeroFillDigits4(this.ParentForm.ParentForm.CollectionBLDCParameter[this.MotorIndex]._6764_OperDirection.ToString());
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, this.CommID, CommunicationAddress.BLDCOperDirection, value);
this.RefreshDisplay();
}
private void buttonAlarmRead_Click(object sender, EventArgs e)
{
}
private void buttonAlarmReset_Click(object sender, EventArgs e)
{
this.ParentForm.ParentForm.TransferData(CommunicationCommand.MotorAlarmReset, this.CommID);
}
private void timer_Tick(object sender, EventArgs e)
{
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Read, this.CommID,
CommunicationAddress.BLDCMotorRPM, "");
}
#endregion
}

View File

@ -906,6 +906,8 @@ namespace ITC81DB_0H
public static readonly string SystemInformationRead4 = "9515";
// BLDC 모터 파라미터 읽기
public static readonly string BLDCMotorParameterRead = "9516";
// BLDC 모터 알람 읽기
public static readonly string BLDCMotorAlarmRead = "9517";
}
#endregion
@ -2923,29 +2925,32 @@ namespace ITC81DB_0H
#region Field
private int m_MotorID;
private int m_CommBaudrate;
private int m_CommParityBit;
private int m_PWMDelay;
private int m_FeedbackDeviation;
private int m_MotorSpeed;
private int m_PoleNum;
private int m_AttenuatorRatio;
private int m_6700_CommBaudrate;
private int m_6701_CommParityBit;
private int m_6702_PWMDelay;
private int m_6703_FeedbackDeviation;
private int m_6704_MotorSpeed;
private int m_6705_PoleNum;
private int m_6706_AttenuatorRatio;
private int m_BootingStart;
private int m_PortUse;
private int m_Feedback;
private int m_InitDirection;
private int m_OperDirection;
private int m_SelectOperMode;
private int m_6760_BootingStart;
private int m_6761_PortUse;
private int m_6762_Feedback;
private int m_6763_InitDirection;
private int m_6764_OperDirection;
private int m_6765_SelectOperMode;
private string m_VersionMajor;
private string m_VersionMinor;
private string m_VersionBuild;
private string m_Frequency;
private string m_MotorRPM;
private int m_MotorDirection;
private string m_AttenuatorRPM;
private string m_6730_VersionMajor;
private string m_6731_VersionMinor;
private string m_6732_VersionBuild;
private string m_6733_Frequency;
private string m_6734_MotorRPM;
private int m_6735_MotorDirection;
private string m_6736_AttenuatorRPM;
private bool m_6790_Alarm_FaultSignal;
private bool m_6791_Alarm_HallSensorError;
private bool m_6792_Alarm_MotorStop;
#endregion
#region Constructor
@ -2962,107 +2967,123 @@ namespace ITC81DB_0H
set { this.m_MotorID = value; }
}
public int CommBaudrate
public int _6700_CommBaudrate
{
get { return this.m_CommBaudrate; }
set { this.m_CommBaudrate = value; }
get { return this.m_6700_CommBaudrate; }
set { this.m_6700_CommBaudrate = value; }
}
public int CommParityBit
public int _6701_CommParityBit
{
get { return this.m_CommParityBit; }
set { this.m_CommParityBit = value; }
get { return this.m_6701_CommParityBit; }
set { this.m_6701_CommParityBit = value; }
}
public int PWMDelay
public int _6702_PWMDelay
{
get { return this.m_PWMDelay; }
set { this.m_PWMDelay = value; }
get { return this.m_6702_PWMDelay; }
set { this.m_6702_PWMDelay = value; }
}
public int FeedbackDeviation
public int _6703_FeedbackDeviation
{
get { return this.m_FeedbackDeviation; }
set { this.m_FeedbackDeviation = value; }
get { return this.m_6703_FeedbackDeviation; }
set { this.m_6703_FeedbackDeviation = value; }
}
public int MotorSpeed
public int _6704_MotorSpeed
{
get { return this.m_MotorSpeed; }
set { this.m_MotorSpeed = value; }
get { return this.m_6704_MotorSpeed; }
set { this.m_6704_MotorSpeed = value; }
}
public int PoleNum
public int _6705_PoleNum
{
get { return this.m_PoleNum; }
set { this.m_PoleNum = value; }
get { return this.m_6705_PoleNum; }
set { this.m_6705_PoleNum = value; }
}
public int AttenuatorRatio
public int _6706_AttenuatorRatio
{
get { return this.m_AttenuatorRatio; }
set { this.m_AttenuatorRatio = value; }
get { return this.m_6706_AttenuatorRatio; }
set { this.m_6706_AttenuatorRatio = value; }
}
public int BootingStart
public int _6760_BootingStart
{
get { return this.m_BootingStart; }
set { this.m_BootingStart = value; }
get { return this.m_6760_BootingStart; }
set { this.m_6760_BootingStart = value; }
}
public int PortUse
public int _6761_PortUse
{
get { return this.m_PortUse; }
set { this.m_PortUse = value; }
get { return this.m_6761_PortUse; }
set { this.m_6761_PortUse = value; }
}
public int Feedback
public int _6762_Feedback
{
get { return this.m_Feedback; }
set { this.m_Feedback = value; }
get { return this.m_6762_Feedback; }
set { this.m_6762_Feedback = value; }
}
public int InitDirection
public int _6763_InitDirection
{
get { return this.m_InitDirection; }
set { this.m_InitDirection = value; }
get { return this.m_6763_InitDirection; }
set { this.m_6763_InitDirection = value; }
}
public int OperDirection
public int _6764_OperDirection
{
get { return this.m_OperDirection; }
set { this.m_OperDirection = value; }
get { return this.m_6764_OperDirection; }
set { this.m_6764_OperDirection = value; }
}
public int SelectOperMode
public int _6765_SelectOperMode
{
get { return this.m_SelectOperMode; }
set { this.m_SelectOperMode = value; }
get { return this.m_6765_SelectOperMode; }
set { this.m_6765_SelectOperMode = value; }
}
public string VersionMajor
public string _6730_VersionMajor
{
get { return this.m_VersionMajor; }
set { this.m_VersionMajor = value; }
get { return this.m_6730_VersionMajor; }
set { this.m_6730_VersionMajor = value; }
}
public string VersionMinor
public string _6731_VersionMinor
{
get { return this.m_VersionMinor; }
set { this.m_VersionMinor = value; }
get { return this.m_6731_VersionMinor; }
set { this.m_6731_VersionMinor = value; }
}
public string VersionBuild
public string _6732_VersionBuild
{
get { return this.m_VersionBuild; }
set { this.m_VersionBuild = value; }
get { return this.m_6732_VersionBuild; }
set { this.m_6732_VersionBuild = value; }
}
public string Frequency
public string _6733_Frequency
{
get { return this.m_Frequency; }
set { this.m_Frequency = value; }
get { return this.m_6733_Frequency; }
set { this.m_6733_Frequency = value; }
}
public string MotorRPM
public string _6734_MotorRPM
{
get { return this.m_MotorRPM; }
set { this.m_MotorRPM = value; }
get { return this.m_6734_MotorRPM; }
set { this.m_6734_MotorRPM = value; }
}
public int MotorDirection
public int _6735_MotorDirection
{
get { return this.m_MotorDirection; }
set { this.m_MotorDirection = value; }
get { return this.m_6735_MotorDirection; }
set { this.m_6735_MotorDirection = value; }
}
public string AttenuatorRPM
public string _6736_AttenuatorRPM
{
get { return this.m_AttenuatorRPM; }
set { this.m_AttenuatorRPM = value; }
get { return this.m_6736_AttenuatorRPM; }
set { this.m_6736_AttenuatorRPM = value; }
}
public bool _6790_Alarm_FaultSignal
{
get { return this.m_6790_Alarm_FaultSignal; }
set { this.m_6790_Alarm_FaultSignal = value; }
}
public bool _6791_Alarm_HallSensorError
{
get { return this.m_6791_Alarm_HallSensorError; }
set { this.m_6791_Alarm_HallSensorError = value; }
}
public bool _6792_Alarm_MotorStop
{
get { return this.m_6792_Alarm_MotorStop; }
set { this.m_6792_Alarm_MotorStop = value; }
}
#endregion
@ -3071,28 +3092,32 @@ namespace ITC81DB_0H
{
this.MotorID = 0;
this.CommBaudrate = 0;
this.CommParityBit = 0;
this.PWMDelay = 5;
this.FeedbackDeviation = 60;
this.MotorSpeed = 80;
this.PoleNum = 1;
this.AttenuatorRatio = 5;
this._6700_CommBaudrate = 0;
this._6701_CommParityBit = 0;
this._6702_PWMDelay = 5;
this._6703_FeedbackDeviation = 60;
this._6704_MotorSpeed = 80;
this._6705_PoleNum = 1;
this._6706_AttenuatorRatio = 5;
this.BootingStart = 0;
this.PortUse = 1;
this.Feedback = 0;
this.InitDirection = 0;
this.OperDirection = 0;
this.SelectOperMode = 0;
this._6760_BootingStart = 0;
this._6761_PortUse = 1;
this._6762_Feedback = 0;
this._6763_InitDirection = 0;
this._6764_OperDirection = 0;
this._6765_SelectOperMode = 0;
this.VersionMajor = "01";
this.VersionMinor = "00";
this.VersionBuild = "00";
this.Frequency = "0";
this.MotorRPM = "0";
this.MotorDirection = 1;
this.AttenuatorRPM = "0";
this._6730_VersionMajor = "01";
this._6731_VersionMinor = "00";
this._6732_VersionBuild = "00";
this._6733_Frequency = "0";
this._6734_MotorRPM = "0";
this._6735_MotorDirection = 1;
this._6736_AttenuatorRPM = "0";
this._6790_Alarm_FaultSignal = false;
this._6791_Alarm_HallSensorError = false;
this._6792_Alarm_MotorStop = false;
}
#endregion
}

View File

@ -130,6 +130,16 @@ namespace ITC81DB_0H.DialogForms
this.labelMessage1.Text = "소수점을 변경하면 랜덤모드 설정값이 초기화됩니다.";
this.labelMessage2.Text = "소수점을 변경하시겠습니까?";
break;
case 25:
this.labelErrorCode.Text = "Motor Default Set";
this.labelMessage1.Text = "모든 BLDC 모터 설정값을 Default로 설정하시겠습니까?";
this.labelMessage2.Text = "이전 값으로 되돌릴 수 없습니다.";
break;
case 26:
this.labelErrorCode.Text = "Motor Reboot";
this.labelMessage1.Text = "모든 BLDC 모터 보드를 리부팅 하시겠습니까?";
this.labelMessage2.Text = "";
break;
default:
break;
}
@ -240,6 +250,16 @@ namespace ITC81DB_0H.DialogForms
this.labelMessage1.Text = "Changing the decimal point resets the random mode";
this.labelMessage2.Text = "settings. Do you want to change the decimal point?";
break;
case 25:
this.labelErrorCode.Text = "Motor Default Set";
this.labelMessage1.Text = "Do you want to set all BLDC motor settings to Default?";
this.labelMessage2.Text = "It cannot be reverted to its previous value.";
break;
case 26:
this.labelErrorCode.Text = "Motor Reboot";
this.labelMessage1.Text = "Reboot all BLDC motor boards?";
this.labelMessage2.Text = "";
break;
default:
break;
}
@ -350,6 +370,16 @@ namespace ITC81DB_0H.DialogForms
this.labelMessage1.Text = "更改小数点将重置随机模式设置。";
this.labelMessage2.Text = "您要更改小数点吗?";
break;
case 25:
this.labelErrorCode.Text = "";
this.labelMessage1.Text = "是否要将所有 BLDC 电机设置设为默认值?";
this.labelMessage2.Text = "它不能恢复到以前的值。";
break;
case 26:
this.labelErrorCode.Text = "";
this.labelMessage1.Text = "重新启动所有 BLDC 电机板?";
this.labelMessage2.Text = "";
break;
default:
break;
}
@ -463,6 +493,16 @@ namespace ITC81DB_0H.DialogForms
this.labelMessage1.Text = "Изменение десятичной точки сбрасывает настройки случайного режима.";
this.labelMessage2.Text = "Изменить десятичную точку?";
break;
case 25:
this.labelErrorCode.Text = "";
this.labelMessage1.Text = "Вы хотите установить все настройки двигателя BLDC по умолчанию?";
this.labelMessage2.Text = "Его нельзя вернуть к предыдущему значению.";
break;
case 26:
this.labelErrorCode.Text = "";
this.labelMessage1.Text = "Перезагрузить все платы двигателей BLDC?";
this.labelMessage2.Text = "";
break;
default:
break;
}
@ -575,6 +615,16 @@ namespace ITC81DB_0H.DialogForms
this.labelMessage1.Text = "Wenn der Dezimalpunkt geändert wird, wird der";
this.labelMessage2.Text = "Zufallsmoduseinstellung initialisiert. Willst du es ändern?";
break;
case 25:
this.labelErrorCode.Text = "";
this.labelMessage1.Text = "Möchten Sie alle BLDC-Motoreinstellungen auf Standard setzen?";
this.labelMessage2.Text = "Nelze ji vrátit na předchozí hodnotu.";
break;
case 26:
this.labelErrorCode.Text = "";
this.labelMessage1.Text = "Alle BLDC-Motorplatinen neu starten?";
this.labelMessage2.Text = "";
break;
default:
break;
}

View File

@ -2134,6 +2134,24 @@ namespace ITC81DB_0H.Forms
break;
case "5302":
break;
case "6734": // BLDC - 구동중인 모터의 RPM
#region Value Assign
for (int i = 0; i < BLDCMotorNum; i++)
{
if (this.CurrentMotorID(lane) == this.CollectionBLDCParameter[i].MotorID)
{
index = i;
this.CollectionBLDCParameter[index]._6734_MotorRPM = receiveData.Substring(0, 4);
if (this.ChildFormMenu.CenterSystemBLDCMotorSetting != null)
this.ChildFormMenu.CenterSystemBLDCMotorSetting.DisplayRPM();
break;
}
}
#endregion
break;
case "6901":
break;
case "9031":
@ -2263,26 +2281,52 @@ namespace ITC81DB_0H.Forms
if (this.ChildFormMenu.CenterInforSystem3 != null)
this.ChildFormMenu.CenterInforSystem3.UpdateParameter2Display(this.SystemInfo3);
break;
case "9516":
case "9516": // BLDC 모터 파라미터 읽기
#region Value Assign
for (int i = 0; i < BLDCMotorNum; i++)
{
if (this.CurrentMotorID(lane) == this.CollectionBLDCParameter[i].MotorID)
{
index = i;
this.CollectionBLDCParameter[index]._6730_VersionMajor = receiveData.Substring(0, 4);
this.CollectionBLDCParameter[index]._6731_VersionMinor = receiveData.Substring(4, 4);
this.CollectionBLDCParameter[index]._6732_VersionBuild = receiveData.Substring(8, 4);
this.CollectionBLDCParameter[index]._6733_Frequency = receiveData.Substring(12, 4);
this.CollectionBLDCParameter[index]._6734_MotorRPM = receiveData.Substring(16, 4);
this.CollectionBLDCParameter[index]._6735_MotorDirection = int.Parse(receiveData.Substring(20, 4));
this.CollectionBLDCParameter[index]._6736_AttenuatorRPM = receiveData.Substring(24, 4);
this.CollectionBLDCParameter[index]._6765_SelectOperMode = int.Parse(receiveData.Substring(28, 4));
if (this.ChildFormMenu.CenterSystemBLDCMotorSetting != null)
this.ChildFormMenu.CenterSystemBLDCMotorSetting.UpdateParameter(index, this.CollectionBLDCParameter);
this.TransferDataStream(CommunicationCommand.Read, lane, CommunicationAddress.BLDCMotorAlarmRead, "");
break;
}
}
this.CollectionBLDCParameter[index].VersionMajor = receiveData.Substring(0, 4);
this.CollectionBLDCParameter[index].VersionMinor = receiveData.Substring(4, 4);
this.CollectionBLDCParameter[index].VersionBuild = receiveData.Substring(8, 4);
this.CollectionBLDCParameter[index].Frequency = receiveData.Substring(12, 4);
this.CollectionBLDCParameter[index].MotorRPM = receiveData.Substring(16, 4);
this.CollectionBLDCParameter[index].MotorDirection = int.Parse(receiveData.Substring(20, 4));
this.CollectionBLDCParameter[index].AttenuatorRPM = receiveData.Substring(24, 4);
this.CollectionBLDCParameter[index].SelectOperMode = int.Parse(receiveData.Substring(28, 4));
#endregion
break;
case "9517": // BLDC 모터 알람 읽기
#region Value Assign
for (int i = 0; i < BLDCMotorNum; i++)
{
if (this.CurrentMotorID(lane) == this.CollectionBLDCParameter[i].MotorID)
{
index = i;
if (this.ChildFormMenu.CenterSystemBLDCMotorSetting != null)
this.ChildFormMenu.CenterSystemBLDCMotorSetting.UpdateParameter(index, this.CollectionBLDCParameter);
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));
if (this.ChildFormMenu.CenterSystemBLDCMotorSetting != null)
this.ChildFormMenu.CenterSystemBLDCMotorSetting.UpdateAlarm(index, this.CollectionBLDCParameter);
break;
}
}
#endregion
break;
default:
break;
@ -7381,9 +7425,10 @@ namespace ITC81DB_0H.Forms
}
public string CurrentCommunicationID(int num)
{
int motorID = this.CollectionBLDCParameter[num].MotorID;
string ID = "A";
switch (num)
switch (motorID)
{
case 1:
ID = "A";
@ -7452,13 +7497,13 @@ namespace ITC81DB_0H.Forms
structItem.MotorID = this.CollectionBLDCParameter[i].MotorID;
structItem.CommBaudrate = this.CollectionBLDCParameter[i].CommBaudrate;
structItem.CommParityBit = this.CollectionBLDCParameter[i].CommParityBit;
structItem.PWMDelay = this.CollectionBLDCParameter[i].PWMDelay;
structItem.FeedbackDeviation = this.CollectionBLDCParameter[i].FeedbackDeviation;
structItem.MotorSpeed = this.CollectionBLDCParameter[i].MotorSpeed;
structItem.PoleNum = this.CollectionBLDCParameter[i].PoleNum;
structItem.AttenuatorRatio = this.CollectionBLDCParameter[i].AttenuatorRatio;
structItem.CommBaudrate = this.CollectionBLDCParameter[i]._6700_CommBaudrate;
structItem.CommParityBit = this.CollectionBLDCParameter[i]._6701_CommParityBit;
structItem.PWMDelay = this.CollectionBLDCParameter[i]._6702_PWMDelay;
structItem.FeedbackDeviation = this.CollectionBLDCParameter[i]._6703_FeedbackDeviation;
structItem.MotorSpeed = this.CollectionBLDCParameter[i]._6704_MotorSpeed;
structItem.PoleNum = this.CollectionBLDCParameter[i]._6705_PoleNum;
structItem.AttenuatorRatio = this.CollectionBLDCParameter[i]._6706_AttenuatorRatio;
structItem.DummyInt1 = 0;
structItem.DummyInt2 = 0;
@ -7487,11 +7532,11 @@ namespace ITC81DB_0H.Forms
structItem.DummyString9 = "0";
structItem.DummyString10 = "0";
structItem.BootingStart = this.CollectionBLDCParameter[i].BootingStart;
structItem.PortUse = this.CollectionBLDCParameter[i].PortUse;
structItem.Feedback = this.CollectionBLDCParameter[i].Feedback;
structItem.InitDirection = this.CollectionBLDCParameter[i].InitDirection;
structItem.OperDirection = this.CollectionBLDCParameter[i].OperDirection;
structItem.BootingStart = this.CollectionBLDCParameter[i]._6760_BootingStart;
structItem.PortUse = this.CollectionBLDCParameter[i]._6761_PortUse;
structItem.Feedback = this.CollectionBLDCParameter[i]._6762_Feedback;
structItem.InitDirection = this.CollectionBLDCParameter[i]._6763_InitDirection;
structItem.OperDirection = this.CollectionBLDCParameter[i]._6764_OperDirection;
structItem.DummyInt16 = 0;
structItem.DummyInt17 = 0;
@ -7546,13 +7591,13 @@ namespace ITC81DB_0H.Forms
structItem.MotorID = item.MotorID;
structItem.CommBaudrate = item.CommBaudrate;
structItem.CommParityBit = item.CommParityBit;
structItem.PWMDelay = item.PWMDelay;
structItem.FeedbackDeviation = item.FeedbackDeviation;
structItem.MotorSpeed = item.MotorSpeed;
structItem.PoleNum = item.PoleNum;
structItem.AttenuatorRatio = item.AttenuatorRatio;
structItem.CommBaudrate = item._6700_CommBaudrate;
structItem.CommParityBit = item._6701_CommParityBit;
structItem.PWMDelay = item._6702_PWMDelay;
structItem.FeedbackDeviation = item._6703_FeedbackDeviation;
structItem.MotorSpeed = item._6704_MotorSpeed;
structItem.PoleNum = item._6705_PoleNum;
structItem.AttenuatorRatio = item._6706_AttenuatorRatio;
structItem.DummyInt1 = 0;
structItem.DummyInt2 = 0;
@ -7581,11 +7626,11 @@ namespace ITC81DB_0H.Forms
structItem.DummyString9 = "0";
structItem.DummyString10 = "0";
structItem.BootingStart = item.BootingStart;
structItem.PortUse = item.PortUse;
structItem.Feedback = item.Feedback;
structItem.InitDirection = item.InitDirection;
structItem.OperDirection = item.OperDirection;
structItem.BootingStart = item._6760_BootingStart;
structItem.PortUse = item._6761_PortUse;
structItem.Feedback = item._6762_Feedback;
structItem.InitDirection = item._6763_InitDirection;
structItem.OperDirection = item._6764_OperDirection;
structItem.DummyInt16 = 0;
structItem.DummyInt17 = 0;
@ -7644,13 +7689,13 @@ namespace ITC81DB_0H.Forms
{
structItem.MotorID = items[i].MotorID;
structItem.CommBaudrate = items[i].CommBaudrate;
structItem.CommParityBit = items[i].CommParityBit;
structItem.PWMDelay = items[i].PWMDelay;
structItem.FeedbackDeviation = items[i].FeedbackDeviation;
structItem.MotorSpeed = items[i].MotorSpeed;
structItem.PoleNum = items[i].PoleNum;
structItem.AttenuatorRatio = items[i].AttenuatorRatio;
structItem.CommBaudrate = items[i]._6700_CommBaudrate;
structItem.CommParityBit = items[i]._6701_CommParityBit;
structItem.PWMDelay = items[i]._6702_PWMDelay;
structItem.FeedbackDeviation = items[i]._6703_FeedbackDeviation;
structItem.MotorSpeed = items[i]._6704_MotorSpeed;
structItem.PoleNum = items[i]._6705_PoleNum;
structItem.AttenuatorRatio = items[i]._6706_AttenuatorRatio;
structItem.DummyInt1 = 0;
structItem.DummyInt2 = 0;
@ -7679,11 +7724,11 @@ namespace ITC81DB_0H.Forms
structItem.DummyString9 = "0";
structItem.DummyString10 = "0";
structItem.BootingStart = items[i].BootingStart;
structItem.PortUse = items[i].PortUse;
structItem.Feedback = items[i].Feedback;
structItem.InitDirection = items[i].InitDirection;
structItem.OperDirection = items[i].OperDirection;
structItem.BootingStart = items[i]._6760_BootingStart;
structItem.PortUse = items[i]._6761_PortUse;
structItem.Feedback = items[i]._6762_Feedback;
structItem.InitDirection = items[i]._6763_InitDirection;
structItem.OperDirection = items[i]._6764_OperDirection;
structItem.DummyInt16 = 0;
structItem.DummyInt17 = 0;
@ -7749,19 +7794,19 @@ namespace ITC81DB_0H.Forms
items[i].MotorID = structItem.MotorID;
items[i].CommBaudrate = structItem.CommBaudrate;
items[i].CommParityBit = structItem.CommParityBit;
items[i].PWMDelay = structItem.PWMDelay;
items[i].FeedbackDeviation = structItem.FeedbackDeviation;
items[i].MotorSpeed = structItem.MotorSpeed;
items[i].PoleNum = structItem.PoleNum;
items[i].AttenuatorRatio = structItem.AttenuatorRatio;
items[i]._6700_CommBaudrate = structItem.CommBaudrate;
items[i]._6701_CommParityBit = structItem.CommParityBit;
items[i]._6702_PWMDelay = structItem.PWMDelay;
items[i]._6703_FeedbackDeviation = structItem.FeedbackDeviation;
items[i]._6704_MotorSpeed = structItem.MotorSpeed;
items[i]._6705_PoleNum = structItem.PoleNum;
items[i]._6706_AttenuatorRatio = structItem.AttenuatorRatio;
items[i].BootingStart = structItem.BootingStart;
items[i].PortUse = structItem.PortUse;
items[i].Feedback = structItem.Feedback;
items[i].InitDirection = structItem.InitDirection;
items[i].OperDirection = structItem.OperDirection;
items[i]._6760_BootingStart = structItem.BootingStart;
items[i]._6761_PortUse = structItem.PortUse;
items[i]._6762_Feedback = structItem.Feedback;
items[i]._6763_InitDirection = structItem.InitDirection;
items[i]._6764_OperDirection = structItem.OperDirection;
}
}
}
@ -8038,18 +8083,18 @@ namespace ITC81DB_0H.Forms
{
StringBuilder sb = new StringBuilder();
sb.Append(Helper.StringZeroFillDigits4(item.CommBaudrate)); // 메인보드와의 통신 Baudrate(4)
sb.Append(Helper.StringZeroFillDigits4(item.CommParityBit)); // 메인보드와의 통신 Parity bit(4)
sb.Append(Helper.StringZeroFillDigits4(item.PWMDelay)); // PWM 변화 속도(4)
sb.Append(Helper.StringZeroFillDigits4(item.FeedbackDeviation)); // Feedback 구동을 위한 변화 편차(4)
sb.Append(Helper.StringZeroFillDigits4(item.MotorSpeed)); // Motor 속도(4)
sb.Append(Helper.StringZeroFillDigits4(item.PoleNum)); // BLDC 모터 Pole 수(4)
sb.Append(Helper.StringZeroFillDigits4(item.AttenuatorRatio)); // 감속기 비율(4)
sb.Append(Helper.StringZeroFillDigits4(item.BootingStart)); // 부팅 시 자동 구동 여부(4)
sb.Append(Helper.StringZeroFillDigits4(item.PortUse)); // 타 Port 모터 사용 여부(4)
sb.Append(Helper.StringZeroFillDigits4(item.Feedback)); // 모터 구동 중 피드백 제어 여부(4)
sb.Append(Helper.StringZeroFillDigits4(item.InitDirection)); // 초기 모터 방향(4)
sb.Append(Helper.StringZeroFillDigits4(item.OperDirection)); // 구동 중 모터 방향(4)
sb.Append(Helper.StringZeroFillDigits4(item._6700_CommBaudrate)); // 메인보드와의 통신 Baudrate(4)
sb.Append(Helper.StringZeroFillDigits4(item._6701_CommParityBit)); // 메인보드와의 통신 Parity bit(4)
sb.Append(Helper.StringZeroFillDigits4(item._6702_PWMDelay)); // PWM 변화 속도(4)
sb.Append(Helper.StringZeroFillDigits4(item._6703_FeedbackDeviation)); // Feedback 구동을 위한 변화 편차(4)
sb.Append(Helper.StringZeroFillDigits4(item._6704_MotorSpeed)); // Motor 속도(4)
sb.Append(Helper.StringZeroFillDigits4(item._6705_PoleNum)); // BLDC 모터 Pole 수(4)
sb.Append(Helper.StringZeroFillDigits4(item._6706_AttenuatorRatio)); // 감속기 비율(4)
sb.Append(Helper.StringZeroFillDigits4(item._6760_BootingStart)); // 부팅 시 자동 구동 여부(4)
sb.Append(Helper.StringZeroFillDigits4(item._6761_PortUse)); // 타 Port 모터 사용 여부(4)
sb.Append(Helper.StringZeroFillDigits4(item._6762_Feedback)); // 모터 구동 중 피드백 제어 여부(4)
sb.Append(Helper.StringZeroFillDigits4(item._6763_InitDirection)); // 초기 모터 방향(4)
sb.Append(Helper.StringZeroFillDigits4(item._6764_OperDirection)); // 구동 중 모터 방향(4)
sb.Append("0000"); // Dummy1(4)
sb.Append("0000"); // Dummy2(4)
sb.Append("0000"); // Dummy3(4)