j-interop

Java实现OPC通信

為{幸葍}努か 提交于 2020-08-18 04:19:40
有问题,请私信 录屏简单说了一下文章内容,视频地址: https://www.bilibili.com/video/BV13V411f7Ch/ 1.PLC和OPC 使用的PLC:西门子的S7-300,具体型号如下图 使用的OPC server软件: 项目使用KEPServer V6(450M,中文): 百度网盘 ,密码: ykj2 模拟仿真用的 MatrikonOPCSimulation(50M), 百度网盘 ,密码: mcur 2.连接测试 什么是OPC OPC是工业控制和生产自动化领域中使用的硬件和软件的 接口标准 ,以便有效地在应用和过程控制设备之间 读写数据 。O代表OLE(对象链接和嵌入),P (process过程),C (control控制)。 OPC服务器包括3类对象(Object):服务器对象(Server)、 项对象(Item) 和组对象(Group)。 OPC标准采用 C/S模式 ,OPC服务器负责向OPC客户端不断的提供数据。 来源: OPC-(二)-什么是OPC OPC server软件使用 MatrikonOPC: 使用Matrikon OPC Server Simulation KEPServer V6: 使用KEPServerEX 6 Server和Client 要实现的是Client(Java)和Client(PLC)之间的通信

how to run a powershell script as a windows service from inside a Java program?

不想你离开。 提交于 2020-01-14 03:50:29
问题 I have the following code that runs a windows service from inside Java.The code uses JInterop Java library, JInterop is a pure Java COM client for windows COM server. More details of JIntop are available here [http://fishi.devtail.io/weblog/2015/01/21/pure-java-dcom-bridge-j-interop/] String cmdFile = "service.bat"; results = wbemServices_dispatch.callMethodA( "Get", new Object[]{ new JIString("Win32_Process"), new Integer(0), JIVariant.OPTIONAL_PARAM()}); IJIDispatch wbemObjectSet_dispatch =

How to call a remote bat file using jinterop

孤者浪人 提交于 2019-12-08 14:11:27
GlassFish Application Server uses a script, asadmin.bat, that in turns starts a JVM. I'd like to call this script using jinterop and DCOM from Java on a remote machine. I can't find any help on this specific usage. Any help would be greatly appreciated. Björn I use the Windows Scripting Host Shell to execute some program or batch on a remote computer. The code looks like: // Create a session JISession session = JISession.createSession(<domain>, <user>, <password>); session.useSessionSecurity(true); // Execute command JIComServer comStub = new JIComServer(JIProgId.valueOf("WScript.Shell"),<IP>,

How to call a remote bat file using jinterop

蹲街弑〆低调 提交于 2019-12-08 04:40:44
问题 GlassFish Application Server uses a script, asadmin.bat, that in turns starts a JVM. I'd like to call this script using jinterop and DCOM from Java on a remote machine. I can't find any help on this specific usage. Any help would be greatly appreciated. 回答1: I use the Windows Scripting Host Shell to execute some program or batch on a remote computer. The code looks like: // Create a session JISession session = JISession.createSession(<domain>, <user>, <password>); session.useSessionSecurity