| | |
| | |
|
| | | import com.qianwen.mdc.utils.Lsv2Util;
|
| | | import com.qianwen.mdc.utils.MdcException;
|
| | |
|
| | | /**
|
| | | * Lsv2协议的数据采集客户端,用于Heidenhain系统。LSV-2用于仍然使用16位总线的设备
|
| | | */
|
| | | public class Lsv2Client {
|
| | | private Shell shell;
|
| | |
|
| | |
| | | private boolean connected;
|
| | |
|
| | | private final Logger logger;
|
| | | |
| | | private final String activeXClsid = "{F9EE051D-C65D-4480-8E35-76F10FAB15C6}";
|
| | |
|
| | | public Lsv2Client(String ipAddr) {
|
| | | this.connected = false;
|
| | |
| | | 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);
|
| | | });
|