Code Monkey home page Code Monkey logo

Comments (1)

kiranpradeep avatar kiranpradeep commented on June 1, 2024

My bad. Needed to add slave with appropriate IP name as in

Regular MODBUS TCP addressing
When a single MODBUS TCP device has its own IP address on the network, then the IP address is self sufficient to identify that slave.
New MODBUS TCP slaves can be created by using one of the following patterns:
127.0.0.1
Create just one slave that will reply to requests received from any network interface.
192.168.10.100
Create just one slave that will only reply to requests received on the network interface whose IP address is 192.168.10.100.
10.23.6.2, 10.23.6.8 (not implemented)
Create 2 slaves that will reply to requests received on network interfaces whose IP addresses are 10.23.6.2, and 10.23.6.8.
10.23.6.2-10.23.6.8 (not implemented)
Create 9 slaves that will reply to requests received on network interfaces whose IP addresses are 10.23.6.2, 10.23.6.3, ..., 10.23.6.7 and 10.23.6.8.
Note: the comma can be replaced by a new line. White spaces following the comma are ignored.
Multiple slaves sharing the same IP address
When more than one MODBUS TCP device share the same IP address on the network, then the IP address alone is not sufficient to identify each slave. This is the case when, for example, the IP address is owned by a TCP/SERIAL gateway and the actual MODBUS slaves are using MODBUS RTU protocol.
Such MODBUS slaves must be identified by both an IP address and a slave number, and can be created by using one of the following patterns:
127.0.0.1(17) (not implemented)
Create juste one slave at IP address 127.0.0.1 (listen on all network interfaces) and slave number 17.
192.168.10.100(10-15) (not implemented)
Create 6 slaves sharing the same IP address (local network interface 192.168.10.100). Each slave is assigned a slave number ranging from 10 to 15 included.

from modbuspal.

Related Issues (1)

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.