[RT.EquipmentLibrary]

修正HiWinAligner初始化时使用错误的系统配置节点导致读取配置参数失败而抛出异常,进而导致构造其实例失败的问题。
This commit is contained in:
DESKTOP-1N1NK8A\auvkk 2023-05-15 14:02:07 +08:00
parent e31e0426cc
commit 52a7f8755f
1 changed files with 2 additions and 2 deletions

View File

@ -308,10 +308,10 @@ namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Aligners.HiWinAligner
public bool Initialize() public bool Initialize()
{ {
// string portName = SC.GetStringValue($"{_scRoot}.{Module}.{Name}.Address"); // string portName = SC.GetStringValue($"{_scRoot}.{Module}.{Name}.Address");
var portName = SC.GetStringValue($"{ScBasePath}.{Name}.Address"); var portName = SC.GetStringValue($"{ScBasePath}.Address");
Address = portName; Address = portName;
var scEnableLog = $"{ScBasePath}.{Name}.EnableLogMessage"; var scEnableLog = $"{ScBasePath}.EnableLogMessage";
var enableLog = SC.GetValue<bool>(scEnableLog); var enableLog = SC.GetValue<bool>(scEnableLog);
SC.RegisterValueChangedCallback(scEnableLog, scValue => SC.RegisterValueChangedCallback(scEnableLog, scValue =>
{ {