From aef5a5412d38a8404f037c2fef71a0a067b55d17 Mon Sep 17 00:00:00 2001 From: CJY Date: Thu, 18 Dec 2025 19:29:59 +0900 Subject: [PATCH] =?UTF-8?q?CurrentModbusData=20=ED=94=BC=EB=93=9C=EB=B0=B1?= =?UTF-8?q?=EB=B6=80=EB=B6=84=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- INT63DC_6CH/Forms/FormMain.cs | 8 ++++++++ INT63DC_6CH/Forms/FormOptionSetting.cs | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/INT63DC_6CH/Forms/FormMain.cs b/INT63DC_6CH/Forms/FormMain.cs index d025bfa..e76f641 100644 --- a/INT63DC_6CH/Forms/FormMain.cs +++ b/INT63DC_6CH/Forms/FormMain.cs @@ -4660,6 +4660,14 @@ namespace INT63DC_6CH.Forms this.Current30000ModbusData.PassValue = Helper.StringToWeight(this.CurrentProductItem.PassRange, this.SystemConfig.DecimalPlaces); this.Current30000ModbusData.OverValue = Helper.StringToWeight(this.CurrentProductItem.OverRange, this.SystemConfig.DecimalPlaces); this.Current30000ModbusData.TareValue = Helper.StringToWeight(this.CurrentProductItem.TareRange, this.SystemConfig.DecimalPlaces); + this.Current30000ModbusData.HighLimit = Helper.StringToWeight(this.CurrentFeedbackItem.HighLimit, this.SystemConfig.DecimalPlaces); + this.Current30000ModbusData.DeadZoneHighLimit = + Helper.StringToWeight((int.Parse(this.CurrentProductItem.PassRange) - int.Parse(this.CurrentFeedbackItem.DeadZone)).ToString(), this.SystemConfig.DecimalPlaces); + this.Current30000ModbusData.DeadZoneLowLimit = + Helper.StringToWeight(this.CurrentProductItem.PassRange + this.CurrentFeedbackItem.DeadZone, this.SystemConfig.DecimalPlaces); + this.Current30000ModbusData.LowLimit = Helper.StringToWeight(this.CurrentFeedbackItem.LowLimit, this.SystemConfig.DecimalPlaces); + this.Current30000ModbusData.SampleCount = (UInt32)this.SystemConfig.FeedbackSampleCount; + this.Current30000ModbusData.IgnoreCount = (UInt32)this.SystemConfig.FeedbackIgnorePackages; } public void Update30000ModbusData(int index) { diff --git a/INT63DC_6CH/Forms/FormOptionSetting.cs b/INT63DC_6CH/Forms/FormOptionSetting.cs index 06c1e41..0a5a524 100644 --- a/INT63DC_6CH/Forms/FormOptionSetting.cs +++ b/INT63DC_6CH/Forms/FormOptionSetting.cs @@ -183,7 +183,7 @@ namespace INT63DC_6CH.Forms } private void buttonSave_Click(object sender, EventArgs e) { - //// 피드백 보드 사용 유무 + // 피드백 보드 사용 유무 if (this.buttonFeedback.ButtonStatus == SmartButton.BUTSTATUS.DOWN) this.ParentForm.SystemConfig.IsFeedback = true; else