官网:https://plc4x.apache.org/users/gettingstarted.html

依赖:

<!-- plc4j方式实现opc、modbus、S7通信 begin -->

<dependency>
    <groupId>org.apache.plc4x</groupId>
    <artifactId>plc4j-api</artifactId>
    <version>0.9.1</version>
</dependency>
<!--OPC通信 begin-->
<dependency>
    <groupId>org.apache.plc4x</groupId>
    <artifactId>plc4j-driver-opcua</artifactId>
    <version>0.9.1</version>
</dependency>
<!--OPC通信 end-->
<!--modbus通信 begin-->
<dependency>
    <groupId>org.apache.plc4x</groupId>
    <artifactId>plc4j-driver-modbus</artifactId>
    <version>0.9.1</version>
</dependency>
<!--modbus通信 end-->
<!--S7通信 begin-->
<dependency>
    <groupId>org.apache.plc4x</groupId>
    <artifactId>plc4j-driver-s7</artifactId>
    <version>0.9.1</version>
</dependency>
<!--S7通信 end-->
<!-- plc4j方式实现opc、modbus、S7通信 end-->