Questions tagged [modbus]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
47 views

how can i connect raspberry pi with pico H via modbus RTU?

i want to run raspberry pi as master and i need 10 Pico H as slaves via modbus RTU/serial communication and i don't know the code to i just want to run openplc in master and want to use slaves GPIO ...
shub patel's user avatar
0 votes
0 answers
1k views

Attribute: 'ModbusIOException' object has no attribute 'registers'

I try to follow exactly this video https://www.youtube.com/watch?v=ZlHqEOmvW6M You can have a look what I do : https://drive.google.com/file/d/1LenDiJVxT8wQUOlMbdDZ_VkIzqLvHmLJ/view?usp=sharing I will ...
Bảo Duy's user avatar
0 votes
1 answer
733 views

raspberry pi zero 2 w: use PL011 UART and log on to linux over wifi simultaneously

Here is what I am trying to do: log on to linux running on a raspberry pi zero 2 W. But I also want to use the "real" UART PL011 (NOT the mini uart) for RS485 (modbus) at the same time. On ...
William Garber's user avatar
0 votes
1 answer
142 views

Third party solar monitoring system

Dear Raspberry Pi community, I’m a total newbie when it comes to Raspberry Pi and such devices. I have a task at my university to perform an analysis of the use of artificial intelligence to manage ...
Fidel's user avatar
  • 1
0 votes
1 answer
150 views

Using Pymodbus, I want to tie coil states to GPIO pins within my server not from a client

I am writing a PyModbus asynchronous updating server based on the example on the Pymodbus Asynchronous Server Example and I want to link the states of the coils to GPIO pin states, such as when coil 1 ...
Michael H.'s user avatar
2 votes
1 answer
4k views

Raspberry pi pico modbusRTU communication as master with slave computer using micropython

I am working on a slave computer and want to save the data transmitted from the master raspberry pi pico. In micropython there is modbus library github link. I want to use this library but there is a ...
noobinmath's user avatar
0 votes
0 answers
762 views

Raspberry Pi Pico socket module error when trying to use Modbus in micropython

I want to use Modbus library in Pico. First of all, I just try ModbusTCP then ModbusSerial. I am trying to use this https://github.com/techbase123/micropython-modbus GitHub source. When I run the ...
noobinmath's user avatar
0 votes
2 answers
355 views

Modbus to USB stops working after a few days

I monitor 10 Modbus devices with a Raspberry Pi 3B. Each modbus device sits about 20-30cm from the Pi and sends signal to the Pi through a Modbus RS485 to USB converter, which is shown here: https://...
Hayden Eastwood's user avatar
0 votes
2 answers
1k views

pyModbusTCP: which IP address should be specified on a server?

I'm trying to make my Raspberry Pi 3B+ as ModbusTCP server and for testing purposes my PC as a client. I'm using pyModbusTCP module for this. My server script (RPi) is: from pyModbusTCP.server import ...
Roman Matveev's user avatar
2 votes
1 answer
413 views

Modbus rtu on pi

Would anyone have any recommendations for a modbus newbie on getting a pi to talk to a communicating sensor? 2 options Option 1, $10: https://www.amazon.com/Serial-Converter-Adapter-interface-...
bbartling's user avatar
  • 237
1 vote
0 answers
462 views

Pi4 RTS pin big delay

I am trying to use modbus with RS485 on my Pi4. I'm using modbus_tk with pySerial library, and I managed to get controllig RTS pin while transmitting data, but I cant get it running faster - when TX ...
SURViR's user avatar
  • 11
0 votes
0 answers
91 views

mbus to modbus protocol

Im trying to convert mbus protocol to modbus IP protocol with a raspberry. Im new on this, just doing bcs my boss asked. I´ve been searching on all google, but I found nothing. Any help would be ...
javiertxu18's user avatar
1 vote
0 answers
1k views

Trying to use pymodbus as a slave but getting error

I have been successful using modbus-tk with an off the shelf modbus master simulator. However, when the real master is wired in (an Automation Direct PLC), the master does not get any response from ...
mspath's user avatar
  • 11
1 vote
1 answer
796 views

Modbus communication

I try to read data from a device by raspberry 3 B+. those two devices are connected via CH340G usb module (USB to Serial (TTL) adapter). Concerning the python code; here's: from pymodbus.client....
Brahim's user avatar
  • 9
1 vote
1 answer
3k views

Multithreading Python Raspberry Pi 3 B+

My Raspberry Pi 3 b+ is reading by Modbus the values of an irradiation sensor, processing all the data, showing it in a plot and showing some warnings (if the irradiation ramp is higher than 5%). I ...
Dani's user avatar
  • 21
0 votes
1 answer
978 views

pymodbus on Raspberry Pi 3B and Energy Meter

Followed this thread on enabling the serial console on the Raspberry Pi 3B. Checked the functionality using this code: dmesg | grep tty Which produced these results: ... console [tty1] enabled ......
cknz's user avatar
  • 21
0 votes
0 answers
439 views

Raspberry PI HMI

Is it possible to make a Raspberry Pi 3 into a functional HMI for an instrument or set of PLC devices(I usually control remote devices through TCP unless I build the HMI into the unit's case)? I would ...
Michael H.'s user avatar
1 vote
0 answers
845 views

Connect multiple sensors on a single USB to RS485 adapter

On tindie I bought a RS485 soil moisture sensor with a USB to RS485 dongle. I want to add more sensors for monotorring multiple plants. Since RS485 is a bus system, it seems basically possible to ...
Lion's user avatar
  • 167
0 votes
1 answer
307 views

Raspberry Pi 24/7 Modbus Rtu proyect

the conpany i work for is making a proyect, we made Modbus RTU connection using raspberry pi 3 as a gateway, and saving the data to Mysql. this proyect have to be 24/7 and running forever, im ...
Freddy Alex Saavedra's user avatar
3 votes
1 answer
1k views

Serial USB-RS485 failing to read on Pi but not on Ubuntu laptop?

I am reading values from a Battery Management System using two, serial USB-RS485 adaptors (ftdi). I am doing this over MODBUS using the minimal modbus library and python: # Bank A # port name, slave ...
Peter Turner's user avatar
-1 votes
2 answers
701 views

Raspberry Pi instead of PLC

Good morning, I am PLC engineer I have worked with PLC many years but I have plan to use raspberry pi instead of PLC because its less expensive than PLC. I plan to use it in Building Management ...
Saif Wissam's user avatar
0 votes
1 answer
553 views

minimal modbus scaling

Running a simple modbus program; import time import minimalmodbus minimalmodbus.BAUDRATE = 9600 #changed to suit snapper+ default slave = minimalmodbus.Instrument('/dev/...
Kris Mclean's user avatar
-1 votes
1 answer
7k views

Reading registers through pymodbus

I have been trying to use pymodbus to read registers from a power meter and searching around here I found a useful code from the question I attach in the end of this post. So I wrote/copied the next ...
CB Jose's user avatar
0 votes
0 answers
158 views

Enable Rs485 using timer555

I'm looking for some help with a PCB design i'm doing, i want to connect a power analyzer thar requites Modbus protochol, using 485 halfduplex For that to work i need to enable a disable the rs485 ...
Carlos Hxc's user avatar
1 vote
1 answer
4k views

How do I program a Raspberry Pi obtain information from PLC's registers using Modbus TCP/ICP?

I am trying to extract data from programmable logic controller's registers using Raspberry PI module and then display it on screen. I have installed pymodbus package on my Rpi. I am quite unsure how ...
Sahan's user avatar
  • 13
1 vote
0 answers
595 views

ModBus RS485 adapter for GPIO

I have just purchased my first Raspberry Pi 2B. We plan on using it to develop a standalone application with a very high reliability requirement (isolated locations). Is it possible to connect it to ...
klonq's user avatar
  • 111
3 votes
0 answers
611 views

Modbus on Raspberry Pi

I am quite new to Raspberry Pi and Modbus. I am going to implement a Modbus RTU on Raspberry Pi using libmodbus. I followed this totorial as a simple Modbus test, but when I compile the bandwidth-...
dorsa's user avatar
  • 31
1 vote
2 answers
2k views

Error in reading data with pymodbus

I have been trying to read data from a modbus slave device using pymodbus. After much research I found this code on internet. It is a straight forward code. I am able to read the data on windows but ...
Shounak Katyayan's user avatar
1 vote
0 answers
4k views

Is there a modbus rtu tester for Raspberry PI?

I need a tester much like modpoll but one that runs on Raspbian OS. I need to check if my Raspberry Pi is able to communicate with my modbus slaves.
Shounak Katyayan's user avatar
2 votes
1 answer
6k views

For communicating with a modbus rtu slave using rs485 to usb converter, does Raspberry Pi require any configuration?

I have a modbus slave device and a rs485 to usb converter. I used the converter and successfully read data from the slave device with my laptop but when I try to use it with the Raspberry Pi I am ...
Shounak Katyayan's user avatar
7 votes
5 answers
60k views

pymodbus rtu RS-485 communication

I have this little device for communication, and I can see the dongle after lsusb, and it is attached to ttyUSB0 (output from dmesg). Since the module has its driver that is installed to Raspberry Pi, ...
Cugomastik's user avatar
3 votes
2 answers
22k views

RS-485 and Raspberry Pi

How does RS-485 communication between Raspberry Pi and various sensors work? Note: I would like to use it with Pyhton 2.7. Can I connect ADM485 to the UART (Tx, Rx) of Raspberry Pi? I want to use ...
Ruthvik Vaila's user avatar