- BLDC 모터 개수 1023 -> 1024

- BLDC 모터 설정값 쓰기 9040 -> 9041
master
DESKTOP-999R8N3\CJY 2022-07-20 09:50:26 +09:00
parent fc78d5b82d
commit 23ac03c162
8 changed files with 22 additions and 10 deletions

View File

@ -216,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(369, 20);
this.buttonDefaultSet.Location = new System.Drawing.Point(355, 20);
this.buttonDefaultSet.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.buttonDefaultSet.Name = "buttonDefaultSet";
this.buttonDefaultSet.NestedClickEventPrevent = false;
@ -247,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(425, 20);
this.buttonReboot.Location = new System.Drawing.Point(411, 20);
this.buttonReboot.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.buttonReboot.Name = "buttonReboot";
this.buttonReboot.NestedClickEventPrevent = false;

View File

@ -404,7 +404,7 @@ namespace ITC81DB_0H.Controls
private void buttonCopy_Click(object sender, EventArgs e)
{
this.buttonCopy.Text = this.CommID;
this.buttonCopy.Text = (this.MotorIndex + 1).ToString();
BLDCMotorParameter BLDCParam = this.ParentForm.ParentForm.CollectionBLDCParameter[this.MotorIndex];

View File

@ -301,7 +301,7 @@ namespace ITC81DB_0H.Controls
this.labelSensingTime.Text = time1.ToString();
}
private void UpdateSystemParameterDisplay(JudgmentSetItem item)
private void UpdateSystemParameterDisplay(JudgmentSetItem item, Collection<BLDCMotorParameter> item2)
{
string value = "";
@ -325,7 +325,12 @@ namespace ITC81DB_0H.Controls
if (this.labelJudgmentCount.Text != value)
this.labelJudgmentCount.Text = value;
value = item.FeedSpeed1.ToString();
if (this.ParentForm.ParentForm.SystemConfig2.BLDCTotalMotorNum > 2)
value = item2[1]._6704_MotorSpeed.ToString();
else if (this.ParentForm.ParentForm.SystemConfig2.BLDCTotalMotorNum == 1)
value = item2[0]._6704_MotorSpeed.ToString();
else
value = "60";
if (this.labelFeedSpeed.Text != value)
this.labelFeedSpeed.Text = value;
@ -369,7 +374,8 @@ namespace ITC81DB_0H.Controls
if (this.buttonProductNo.Text != value)
this.buttonProductNo.Text = value;
this.UpdateSystemParameterDisplay(this.ParentForm.ParentForm.CurrentJudgmentSetItem);
this.UpdateSystemParameterDisplay(this.ParentForm.ParentForm.CurrentJudgmentSetItem,
this.ParentForm.ParentForm.CollectionBLDCParameter);
}
public void UpdateStopWeightDisplay(DataStore.EquipmentStatus status, WeightData data)
{
@ -391,7 +397,8 @@ namespace ITC81DB_0H.Controls
this.ControlInitialize();
if (this.ParentForm != null)
this.ParentForm.UpdateEquipmentStatusDisplay(this.ParentForm.ParentForm.CurrentSystemStatus.Equipment);
this.UpdateSystemParameterDisplay(this.ParentForm.ParentForm.CurrentJudgmentSetItem);
this.UpdateSystemParameterDisplay(this.ParentForm.ParentForm.CurrentJudgmentSetItem,
this.ParentForm.ParentForm.CollectionBLDCParameter);
if (int.Parse(this.ParentForm.ParentForm.CurrentSystemParameter1.EquipmentType) != 0)
this.buttonUsingAutoMode.Enabled = false;

View File

@ -551,7 +551,7 @@ namespace ITC81DB_0H
// 장비타입
public static readonly string EquipmentType = "1002";
// BLDC 모터 개수
public static readonly string BLDCTotalMotorNum = "1023";
public static readonly string BLDCTotalMotorNum = "1024";
// 임펠러 모터 - 회전각도
public static readonly string ImpellerMotorAngle = "1101";
@ -885,7 +885,7 @@ namespace ITC81DB_0H
// 전체파라미터 쓰기
public static readonly string SystemParameterWriteAll = "9033";
// BLDC 모터 설정값 쓰기
public static readonly string BLDCMotorSetting = "9040";
public static readonly string BLDCMotorSetting = "9041";
// 전체 카운트 읽기/쓰기
public static readonly string ParameterCount = "9031";
//// 시스템파라미터 읽기1

View File

@ -2456,7 +2456,7 @@ namespace ITC81DB_0H.Forms
break;
case "9031":
break;
case "9040":
case "9041":
if (response == DataStore.ResponseData.ACK)
{
if (this.BLDCMotorIndex < this.SystemConfig2.BLDCTotalMotorNum)

View File

@ -16,6 +16,11 @@
- 2022.03.18
- Ver 1.3.0 Modify
- 판정설정 이송속도 - 설정 시 모든 BLDC 모터에 적용(lane = 0)
- BLDC 설정 '복사', '붙여넣기' 기능 추가
- 알람 뜨지 않는 버그 수정
- 6765 MCU<->Manual 표기 반대로 수정
- BLDC 모터 개수 1023 -> 1024
- BLDC 모터 설정값 쓰기 9040 -> 9041
@ Ver 1.3.0 by CJY
- 2022.02.16