S7 PLC Connector for java
S7 PLC Connector for Java
Connect to Siemens S7 PLCs using TCP Connection
Reading and Writing data from/to S7 PLCs
Use directly from Maven Central
//Create connection S7Connector connector = S7ConnectorFactory .buildTCPConnector() .withHost("10.0.0.220") .withType(1) //optional .withRack(0) //optional .withSlot(2) //optional .build();
//Read from DB100 10 bytes byte bs = connector.read(DaveArea.DB, 100, 10, 0); //Set some bytes bs = 0x00; //Write to DB100 10 bytes connector.write(DaveArea.DB, 101, 0, bs); //Close connection connector.close();
More in the Documentation
com.github.s7connector s7connector 2.1
Feel free to submit an issue. And, of course, feel free to submit pull requests with bug fixes or changes.
Pull requests are always welcome. See CONTRIBUTING.md for details.
See LICENSE.txt file.
This project is based on libnodave