2022 Developer Survey is open! Take survey.

Questions tagged [modbus]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
73 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 ...
user avatar
  • 1
0 votes
1 answer
96 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
1 vote
0 answers
147 views

Raspberry pi pico socket module error when trying to use modbus in micropython

I wan't 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 ...
user avatar
0 votes
2 answers
129 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://...
user avatar
0 votes
1 answer
640 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 ...
user avatar
1 vote
1 answer
187 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-...
user avatar
  • 205
1 vote
0 answers
255 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 ...
user avatar
  • 11
0 votes
0 answers
65 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 ...
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 ...
user avatar
  • 11
1 vote
1 answer
585 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....
user avatar
  • 9
1 vote
1 answer
2k 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 ...
user avatar
  • 21
0 votes
1 answer
775 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 ......
user avatar
  • 21
0 votes
0 answers
425 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 ...
user avatar
1 vote
0 answers
715 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 ...
user avatar
  • 157
0 votes
1 answer
214 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 ...
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 ...
user avatar
-1 votes
2 answers
675 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 ...
user avatar
0 votes
1 answer
529 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/...
user avatar
-1 votes
1 answer
6k 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 ...
user avatar
0 votes
0 answers
154 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 ...
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 ...
user avatar
  • 13
1 vote
0 answers
557 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 ...
user avatar
  • 111
3 votes
0 answers
567 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-...
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 ...
user avatar
1 vote
0 answers
3k 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.
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 ...
user avatar
7 votes
5 answers
54k 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, ...
user avatar
3 votes
2 answers
20k 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 ...
user avatar