[RT.EquipmentLibrary]
修正HiWinAligner初始化时使用错误的系统配置节点导致读取配置参数失败而抛出异常,进而导致构造其实例失败的问题。
This commit is contained in:
parent
e31e0426cc
commit
52a7f8755f
|
@ -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 =>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue