Questions tagged [modbus-tcp]

A messaging structure developed by Modicon. It is used to establish master-slave/client-server communication between intelligent devices.

A messaging structure developed by Modicon in 1979. It is used to establish master-slave/client-server communication between intelligent devices. (from http://www.modbus.org/faq.php)

302 questions
2
votes
2 answers

Can I write in an Input Register? Modbus

I've been working for 2 months in a MODBUS project and now I found a problem. My client is asking me to write in an input register (Address 30001 to 40000). I thought that was not a thing for me because every modbus documentation says that 30001 to …
Rauññ
  • 378
  • 3
  • 17
2
votes
1 answer

J2Mod - I/O exception - failed to read

I am using for J2Mod java jar for my project. I am connected with the device through comport but, neither able to read nor write data into the device. Both time when I am trying to read or write data into the device getting the same exception.…
2
votes
1 answer

Reading PLC register using ModBusTCPCom in .Net results in address not found

I have to update an old WinForms application. The application uses the AdvancedHMI .NET software. I am connecting to the PLC (AutomationDirect DirectLogic 06 Series) with no issues, and various other registers are being read accurately. I am…
Joe K
  • 231
  • 7
  • 16
2
votes
0 answers

How to read inputs status of the controller by jamod?

I am working on a project using a controller, and I want to read the inputs status through Java, so I added a jamod library that supports modbusTCP/IP protocol. But when you run the program it appears this Exception. What does this exception mean…
Vatoch Mr
  • 21
  • 4
2
votes
2 answers

How to work out 'read/write' function using the libmodbus?(c code)

I'm gonna to read/write under the modbus-tcp specification. So, I'm trying to code the client and server in the linux environment. (I would communicate with the windows program(as a client) using the modbus-tcp.) but it doesn't work as I want, so I…
Jasone J
  • 31
  • 1
  • 4
2
votes
0 answers

Cannot import BinaryPayloadBuilder from pymodbus

I tried to write this code below: from pymodbus.payload import BinaryPayloadBuilder But raises an error: ImportError: cannot import name 'BinaryPayloadBuilder' from 'pymodbus.payload' Need your help please.
2
votes
2 answers

How to read/write a device's register connected to a gateway with pymodbus via TCP

I have to read and write a sensor using pymodbus. I'm not directly connected to the sensor, but I'm connected via TCP to a gateway and the gateway is connected via serial to the sensor. I established a connection with the gateway in this way: client…
antoninus96
  • 77
  • 12
2
votes
1 answer

PLC modbus [WinError 10054]: existing connection was forcibly closed by the remote host

I tried the same code earlier, it was perfect running. Later I programmed my "Siemens LOGO 12/24 rce" using "LOGO!Soft Comfort 8.2" and even then it perfectly worked. But when I'm re-programming using Python then it shows: Exception has occurred:…
Magic Oak
  • 31
  • 3
2
votes
0 answers

Modbus Server with umodbus

I am creating a Modbus Server using umodbus python module. Two clients are connecting to the server. One is reading the registers and other one is writing the same registers after every 5 seconds. Now problem is that both the clients are not able to…
Hsn
  • 1,168
  • 2
  • 16
  • 39
2
votes
3 answers

How do I fix a PyModbus Unable to decode Response-Error with IF96015 Interface by IME

I have a PyModbus running on a Raspberry PI 3b. I have the IF96015 Ethernet Interface for the Nemo 96HD Digital Multimeter. When I try to connect to it over ModbusTCP with the PyModbus console I can ask if it is connected and it says "true" but I…
DJCheeky
  • 23
  • 1
  • 8
2
votes
1 answer

Is it possible to use pyModbusTCP as modbus slave?

I'm perusing the pyModbusTCP with the intent of writing a Modbus slave running on Linux. [begin rant]: pyModbusTCP uses the terms "client" and "server" instead of "slave/master", so the docs are a bit confusing. [end rant] It seems all they do in…
Ryan Griggs
  • 2,457
  • 2
  • 35
  • 58
2
votes
0 answers

Python ModBus Server using umodbus module

I want to create a modbus server (with local host : ip address : 152.168.96.11 - same as the system) and the modbus client has (ip address : 152.168.96.32). My client application is running and i am creating the modbus server application with the…
Chandra Sekhar K
  • 317
  • 7
  • 18
2
votes
0 answers

Weird behaviour of Modpoll while reading Holding registers

I use the Modpoll Modbus client utility for testing. The command (I) .\modpoll -1 -t 4:hex -r 40072 -c 2 IP address gives the following result (hex value for 2 consecutive holding registers): [40072]: 0x404F [40073]: 0x5C28 According to…
Domyno
  • 21
  • 2
2
votes
0 answers

How to use Javascript DataView and ArrayBuffer to set byte-sized MODBUS data correctly for multi-byte data types

I am using jsmodbus npm library to retrieve 16 bit registers using readHoldingRegisters() function. // array of values returned by jsmodbus readHoldingRegisters for two 16 bit registers data = [ 17008, 28672 ] I am using an ArrayBuffer and…
Tremendus Apps
  • 1,497
  • 12
  • 20
2
votes
1 answer

MODBUS: creating a fake response to write request

I am trying to fool my HMI (client) with some kind of MITM attack. But it looks like I do not understand some basic things. So this is the code and a Wireshark screenshot on HMI side. The problem is: I am dropping original WRITE request packet from…
Sergey
  • 21
  • 2
1 2
3
19 20