Questions tagged [modbus]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
17 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 ...
0
votes
1answer
64 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 ...
0
votes
0answers
557 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 ...
1
vote
0answers
54 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 ...
0
votes
2answers
85 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://...
0
votes
0answers
72 views

A small project using Umodbus read and write

I am having a modbus client with ip address. '192.168.1.1', 502 (This is the port) import socket import struct from umodbus import conf from umodbus.client import tcp "#Enable values to be signed ...
0
votes
0answers
22 views

Raspberry RS485 communication line (RESET --> set to active)

I'm using RS485 communication. I'm working on enclosed system. Sometimes I came to error, might be this an hardware issue, etc. After that is communication line "dead". If I want to RESET ...
0
votes
0answers
110 views

Pymodbus rtu (RS-485) reading issue in raspberry pi with baudrate 19200

I am using pymodbus on raspberry Pi 3B. Slaves are connected via RS-485 on ttyUSB* ports. I am able to connect and read modbus registers perfectly from the slave which has 9600 baudrate. When I ...
0
votes
1answer
402 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 ...
1
vote
1answer
134 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-...
1
vote
0answers
181 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 ...
0
votes
0answers
57 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 ...
1
vote
0answers
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 ...
1
vote
1answer
463 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....
1
vote
1answer
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 ...
0
votes
1answer
734 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 ......
0
votes
0answers
417 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 ...
1
vote
0answers
675 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 ...
0
votes
1answer
185 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 ...
3
votes
1answer
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 ...
-1
votes
2answers
652 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 ...
0
votes
1answer
515 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/...
0
votes
1answer
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 ...
0
votes
0answers
148 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 ...
1
vote
1answer
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 ...
1
vote
0answers
544 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 ...
3
votes
0answers
560 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-...
1
vote
2answers
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 ...
1
vote
0answers
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.
2
votes
1answer
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 ...
6
votes
5answers
52k 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, ...
3
votes
2answers
19k 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 ...