diff --git a/Dependencies/KXGEM.dll b/Dependencies/KXGEM.dll index d1d9b48..28f5d39 100644 Binary files a/Dependencies/KXGEM.dll and b/Dependencies/KXGEM.dll differ diff --git a/MECF.Framework.Common/MECF/Framework/Common/Gem/GemManager.cs b/MECF.Framework.Common/MECF/Framework/Common/Gem/GemManager.cs index 9be4c04..4ee4289 100644 --- a/MECF.Framework.Common/MECF/Framework/Common/Gem/GemManager.cs +++ b/MECF.Framework.Common/MECF/Framework/Common/Gem/GemManager.cs @@ -115,7 +115,8 @@ namespace MECF.Framework.Common.Gem public void Initialize() { - string equipmentName = SC.GetStringValue("EquipmentName"); + string equipmentName = SC.GetStringValue("System.EquipmentName"); + int equipmentNo = SC.GetValue("System.EquipmentNo"); _equipment = new Kxware.ToolAutomation.Equipment(equipmentName); _equipment.RegisteringVariables += new RegisterVariableDelegate(RegisteringVariables); @@ -134,6 +135,11 @@ namespace MECF.Framework.Common.Gem _equipment.DataMessageReceived += DataMessageReceived; _equipment.DataMessageSent += DataMessageSent; + //设置内置名称,软件版本等SV + _equipment.SetValue("MDLN", "Sic"); + _equipment.SetValue("Manufacturer", equipmentName); + _equipment.SetValue("EqpSerialNum", equipmentNo.ToString()); + //设置Recipes路径 _equipment.SetValue("PPDirectory", "./Recipes"); _equipment.SetValue("PPFileExtension", "seq,rcp"); @@ -175,6 +181,7 @@ namespace MECF.Framework.Common.Gem DATA.Subscribe("GEM.PPID", () => PPID); DATA.Subscribe("GEM.LotID", () => LotID); + OP.Subscribe($"GEM_SetSoftwareVersion", (string cmd, object[] args) => SetSoftwareVersion((string)args[0])); OP.Subscribe($"GEM_SetEnable", (string cmd, object[] args) => SetEnable((bool)args[0])); OP.Subscribe($"GEM_SetControlMode", (string cmd, object[] args) => SetControlMode(args[0].ToString())); OP.Subscribe($"GEM_SelectRecipeChanged", (string cmd, object[] args) => SelectRecipeChanged(args[0].ToString())); @@ -675,6 +682,13 @@ namespace MECF.Framework.Common.Gem return result; } + private bool SetSoftwareVersion(string softwareVersion) + { + _equipment.SetValue("SOFTREV", softwareVersion); + + return true; + } + private bool SetEnable(bool enable) { if (enable)