Questions tagged [modbus]

Modbus is a simple protocol for serial communication between electronic devices.

65 questions
10
votes
4 answers

How to interconnect multiple Arduinos with a Rpi to control home-lights/switches

While planning the lightning infrastructure (wall-switches and lights) of my new home (it's still under-construction) I choosed to go through the "automated route" way and due to my background (I'm an "old" system/network administrator with…
Damiano Verzulli
  • 444
  • 6
  • 18
5
votes
1 answer

Modbus Communication protocol for Arduino as Slave

I have an Arduino Uno board, with these components: rs-485 Modbus module shield Multiprotocol radio shield board for Arduino In addition I have a level sensor which reads either 1 when it is above water, and 0 when it is below. I need to be able…
lshas
  • 151
  • 5
4
votes
1 answer

When it comes to UART to RS485 communication, what is the difference between the 'MAX485' and the 'HW-0519' module?

I recently found this model with the ID 'HW-0519' on it. It can be found online (HW-0519 in Aliexpress) and is sold for the purpose of converting UART to RS485 communication using Arduino devices. The MAX485 module (MAX485 in Banggood) is the more…
C Vith
  • 93
  • 7
4
votes
1 answer

Modbus RTU controller monitoring with arduino and RS485 module

I'm a medium user in Arduino. I baught a pHmeter controller with RS485 output (MODBUS RTU protocol). I want to get pH value read by the controller over RS485 module and Arduino. According the controller's manufacturer, we should operate as…
Teddol
  • 85
  • 1
  • 2
  • 7
3
votes
0 answers

Modbus TCP/IP using Arduino uno and ENC28J60 module

I have this project where I need a modbus tcp server that will host a series of sensor data for other modbus client devices to read. I use this Library by Andresoarmento This is the code i am using from the library example: #include…
Deadpool
  • 31
  • 2
3
votes
1 answer

Is there any good working MODBUS TCP master library available for Arduino?

I would like to connect with Fronius solar inverter through MODBUS TCP with Arduino to READ and WRITE register values only. I want to set the Arduino as master and the Inverter as slave. I want to use only two functions "Read Holding Registers" and…
Prayuktibid
  • 362
  • 1
  • 5
  • 17
3
votes
1 answer

Arduino throwing error while using modbus RS485 code

I have been trying to make a communication with my industrial drive. All I want to do is read a few values of drive, like current, voltage etc. For that I am using a library: I don't understand why it's happening. When the same code I have used…
user16682
  • 31
  • 2
3
votes
0 answers

Negative value conversion for modbus slave

I have an analog sensor which reads values 0-5v, -75 degrees to 75 degrees. Now I have converted to +75 degrees and -75 degrees format depend on the voltage. From 2.5v to 5v data is read properly (i.e 0-75 degree), but from 0-2.5v they are negative…
AMPS
  • 447
  • 10
  • 20
3
votes
1 answer

Response of Modbus Protocol

I have the below code. This code is successfully compiling and uploading, but I am not getting any response from Slave. What do I need to do? Some time data being received from Slave (I get this error): My main code: #define ID 1 /*static float…
AMPS
  • 447
  • 10
  • 20
2
votes
1 answer

ModbusMaster.h - changing node

I'm using the ModbusMaster.h library on a project, with arduino-uno and a TTL/RS-485 converter, and the function has to identify the slave that it is communicating. The slaves goes from 1 to 16. After I've begun the connection, ModbusMaster…
Claudiaum
  • 51
  • 3
2
votes
1 answer

Modbus rtu data decimal to float conversion

Hi,am trying to communicate with power-factor controller [Selec APFC 148-312] using modbus RTU,am following example sketch from modbusmaster library. am able to get the raw data from the instrument but data structure seems to be in decimal…
Ragaven N
  • 21
  • 3
2
votes
1 answer

Which sensor bus best to use?

I am working on a project which requires a dozen VL53l0X I2C-TOF sensors to be polled by one master MCU over a few meters of cable. Thus, I decided to accompany each TOF by an Atmega8 acting as a gateway between the TOF and a Modbus (using a…
Daniel D.
  • 41
  • 1
2
votes
1 answer

Connect 12 V DC sensor to Arduino Uno using TTL RS485

I'm trying to connect an Arduino Uno with a BGT PM2510 sensor (which uses 7-12 V DC) by using a UART TTL to RS485 Two-way Converter. The only thing I wonder about is: can the sensor damage the MCU? According to the information on the 12 V sensor, it…
Redplane
  • 121
  • 1
2
votes
0 answers

Unable to read data more than once via Modbus RTU

I'm a newbie to this forum so kindly excuse me for any errors. I'm using an Arduino Uno and Max485 (RS-485 to TTL) to communicate with a Power meter, but I'm able to receive the data from the Power Meter only once and then it prints "Error"…
Sanj_Ard
  • 21
  • 2
2
votes
0 answers

Arduino Modbus slave error

I am trying to use Arduino as Modbus- RTU slave and Raspberry Pi as a Modbus master I have interfaced Max485 (RS485 to TTL converter) with Arduino and Rs485 to USB converter in Raspberry Pi, Initially, I was able to send data from Arduino to…
1
2 3 4 5