Registry / networking / plc4j-api

plc4j-api

JSON →
library0.13.1javamavenunverified

Central API module for Apache PLC4X, providing a unified interface for PLC communication.

<dependency> <groupId>org.apache.plc4x</groupId> <artifactId>plc4j-api</artifactId> <version>0.13.1</version> </dependency>
INSTALL
IMPORT
SIG · PLC4J-API
P
plc4j-api
networkingjavav0.13.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PlcConnection
org.apache.plc4x.java.api.PlcConnection

Connects to a Siemens S7 PLC using the PLC4J API.

import org.apache.plc4x.java.api.PlcConnection; import org.apache.plc4x.java.api.PlcDriverManager; public class Example { public static void main(String[] args) throws Exception { try (PlcConnection connection = PlcDriverManager.getDefault().getConnection("s7://192.168.0.1/1/1")) { connection.connect(); System.out.println("Connected to PLC"); } } }
Debug
Known issues
breakingPLC4X 0.13.x has breaking changes in the API compared to 0.12.x.
fix
Refer to the migration guide when upgrading from older versions.
affects: >=0.13.0
Upgrade
Version history
0.13.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
plc4j-api — mvn dependency:get plc4j-api · libregistry