1 Star 0 Fork 2

skyfly / s7connector

forked from 极度懒惰 / s7connector 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

S7 PLC Connector for Java
Build Status

S7 PLC Connector for Java

Screenshot of Example Documentation created with Slate

Features

  • Connect to Siemens S7 PLCs using TCP Connection

  • Reading and Writing data from/to S7 PLCs

  • OSGi Support

  • PROFINET Support

  • Use directly from Maven Central

  • Apache License

Getting Started

Simple read/write example

	//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[0] = 0x00;
		
	//Write to DB100 10 bytes
	connector.write(DaveArea.DB, 101, 0, bs);

	//Close connection
	connector.close();

More in the Documentation

Maven directions

<dependency>
    <groupId>com.github.s7connector</groupId>
    <artifactId>s7connector</artifactId>
    <version>2.1</version>
</dependency>

Need Help? Found a bug?

Feel free to submit an issue. And, of course, feel free to submit pull requests with bug fixes or changes.

Contributors

Pull requests are always welcome. See CONTRIBUTING.md for details.

License

See LICENSE.txt file.

Special Thanks

This project is based on libnodave

空文件

简介

同步来自github的仓库 https://github.com/s7connector/s7connector.git 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/skyflycode/s7connector.git
git@gitee.com:skyflycode/s7connector.git
skyflycode
s7connector
s7connector
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891