Giter VIP home page Giter VIP logo

plc4jpi's Introduction

Plc4jPi

Using the plc4j integrated edgent interface to read PLC register information through modbus tcp/ip protocol on Raspberry Pi,then write the data to iotdb.

Preparations: 1.Iotdb server is running; 2.PLC ip address; 3.Iotdb ip address, port and user imformation; 4.Set ip address of Pi and PLC in the same network segment. (eth0) 5.Set ip address of Pi and iotdb in the same network segment. (wlan0) PS:You can get your ip information by inputing ifconfig in terminal.

Use: 1.Open terminal under this folder, input sh start.sh 2.Input PLC connection url,the fromat is {prorocol}://{PLC ip}:{port} For example: modbus:tcp://192.168.3.250:502 3.Input modbus registers address,the format is : {registers}:{start address}[{offset}] For example: readholdingregisters:0[1] There are four registers supported.You can input: readcoil/readdiscreteinputs to read bool registers; readholdingregisters/readinputregisters to read digital registers. 4.Input iotdb-client login information,the format is: {iotdb ip address}:{port} username password For example: 192.168.130.177:6667 root root

You will see the data flow printed when successful. Attention 1.Only support modbus:tcp protocol. 2.The data will write to root.plc4jDemo.sensor.sensor0 in iotdb default.

plc4jpi's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.