yangys
2024-02-02 b82c71a3e3a97a78bd18ff598d27f3062600d22a
mdc-parent/mdc-collect/src/main/java/com/qianwen/mdc/service/lsv2/Lsv2Client.java
@@ -12,7 +12,9 @@
import com.qianwen.mdc.utils.Lsv2Util;
import com.qianwen.mdc.utils.MdcException;
/**
 * Lsv2协议的数据采集客户端,用于Heidenhain系统。LSV-2用于仍然使用16位总线的设备
 */
public class Lsv2Client {
  private Shell shell;
  
@@ -27,6 +29,8 @@
  private boolean connected;
  
  private final Logger logger;
  private final String activeXClsid = "{F9EE051D-C65D-4480-8E35-76F10FAB15C6}";
  
  public Lsv2Client(String ipAddr) {
    this.connected = false;
@@ -43,7 +47,7 @@
            this.shell = new Shell(display, 1264);
            this.shell.setLayout(null);
            this.oleFrame = new OleFrame((Composite)this.shell, 0);
            this.oleControlSite = new OleControlSite((Composite)this.oleFrame, 0, "{F9EE051D-C65D-4480-8E35-76F10FAB15C6}");
            this.oleControlSite = new OleControlSite((Composite)this.oleFrame, 0, activeXClsid);
            this.oleAutomation = new OleAutomation((OleClientSite)this.oleControlSite);
            this.oleControlSite.doVerb(-3);
          });