Commit ccb5e455 LN

1

1 个父辈 59875bb0
......@@ -11,11 +11,13 @@ namespace OnlineStore.DeviceLibrary
{
public class ClampJawBean
{
public string Name = "";
public ConfigClampJaw config = null;
public Rmaxis rmaxis = null;
public ClampJawBean (ConfigClampJaw config)
{
this.config = config;
Name = config.DisplayStr + "(" + config.PortName + "_" + config.AxisNo + ")";
OpenPort();
}
public bool OpenPort()
......@@ -33,7 +35,7 @@ namespace OnlineStore.DeviceLibrary
bool result = rmaxis.OpenPort(config.PortName, config.AxisNo);
if (!result)
{
LogUtil.error(config.DisplayStr + " OpenPort 失败:" );
LogUtil.error(Name + " OpenPort 失败:" );
}
}
return rmaxis.IsPortOpen;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!