diff --git a/ITC81DB_2H/Forms/FormMain.cs b/ITC81DB_2H/Forms/FormMain.cs index 9686c7d..07fdd1a 100644 --- a/ITC81DB_2H/Forms/FormMain.cs +++ b/ITC81DB_2H/Forms/FormMain.cs @@ -25,8 +25,8 @@ namespace ITC81DB_2H.Forms public partial class FormMain : Form { #region Field - public static string DisplayVersion = "3.3.2"; - public static string ReleaseDate = "2024.03.06"; + public static string DisplayVersion = "3.3.3"; + public static string ReleaseDate = "2024.08.06"; private SmartSplash SmartSplashProgramLoad; public bool IsCommunicationLogOpen; @@ -7110,6 +7110,8 @@ namespace ITC81DB_2H.Forms if (this.IsOPCModbusUsing == false) return; + byte[] productName; + if (this.UpdateValue > 999999999) this.UpdateValue = 0; else @@ -7181,9 +7183,19 @@ namespace ITC81DB_2H.Forms this.Current30000ModbusData.Speed = this.CurrentWeightData.ProductionSpeed; this.Current30000ModbusData.MetalDetectionCount = (UInt32)this.CurrentWeightData.MetalDetectionCount; this.Current30000ModbusData.DoubleEntryCount = (UInt32)this.CurrentWeightData.DoubleEntryCount; - byte[] productName = new UTF8Encoding().GetBytes(this.CurrentProductItem.Name); - for (int i = 0; i < productName.Length; i++) - this.Current30000ModbusData.ProductName[i] = productName[i]; + + try + { + productName = new UTF8Encoding().GetBytes(this.CurrentProductItem.Name); + for (int i = 0; i < productName.Length; i++) + this.Current30000ModbusData.ProductName[i] = productName[i]; + } + catch + { + productName = new UTF8Encoding().GetBytes(this.SystemConfig1.ProductNumber.ToString() + "_Name"); + for (int i = 0; i < productName.Length; i++) + this.Current30000ModbusData.ProductName[i] = productName[i]; + } this.ChildFormMainDisplay.MainModbus.UpdateData(this.Current30000ModbusData); } diff --git a/ITC81DB_2H/Version.txt b/ITC81DB_2H/Version.txt index 8f27366..d393da3 100644 --- a/ITC81DB_2H/Version.txt +++ b/ITC81DB_2H/Version.txt @@ -13,6 +13,11 @@ ±âº»Çü ÄÁº£¾î °íÁ¤¹Ð¼¾¼­ °è·®±â */ +@ Ver 3.3.3 by CJY + - 2024.08.07 + - Ver 3.3.2 Modify + - Modbus µ¥ÀÌÅÍ º¯È¯ ½Ã Ç°¸ñ¸í¿¡ º¯È¯ ºÒ°¡´ÉÇÑ Æ¯¼ö¹®ÀÚ ÀÖÀ» °æ¿ì 'Ç°¹ø_Name'À¸·Î Àü¼ÛÇϵµ·Ï ¼öÁ¤ + @ Ver 3.3.2 by CJY - 2024.02.22 - Ver 3.3.1 Modify diff --git a/ITC81DB_2H/bin/Release/ITC81DB_2H.exe b/ITC81DB_2H/bin/Release/ITC81DB_2H.exe index ebd0393..df196b3 100644 Binary files a/ITC81DB_2H/bin/Release/ITC81DB_2H.exe and b/ITC81DB_2H/bin/Release/ITC81DB_2H.exe differ diff --git a/ITC81DB_2H/obj/Release/ITC81DB_2H.exe b/ITC81DB_2H/obj/Release/ITC81DB_2H.exe index ebd0393..df196b3 100644 Binary files a/ITC81DB_2H/obj/Release/ITC81DB_2H.exe and b/ITC81DB_2H/obj/Release/ITC81DB_2H.exe differ