Questions tagged [modbus]
Modbus is a simple protocol for serial communication between electronic devices.
67
questions
0
votes
1answer
46 views
Modbus TCP together with MQTT over same ethernet
I'm currently in a planning phase for a project.
I want to read some sensor data over Modbus TCP, do some simple calculations on the Arduino and publish the results over MQTT. Which means I have 2 RJ-...
0
votes
1answer
557 views
read data from controller via RS485 Modbus rtu Arduino
I have a device with an rs485 port from which I would like to read the ph value. Below is the connection with the RS485 adapter.
I tried to read the data with this code but doesn't work:
#include ...
2
votes
1answer
39 views
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 ...
2
votes
1answer
165 views
Connect 12v DC sensor to Arduino UNO using TTL RS485
I'm trying to connect Arduino Uno with BGT PM2510 sensor (which uses 7-12V DC) by using UART TTL to RS485 Two-way Converter.
The only thing I wonder is can the sensor damage the MCU ?
According to the ...
0
votes
2answers
2k views
Arduino Uno & ESP32 communication using RS485
I am trying to establish a communication between Arduino Uno ( Master) and ESP32 (Slave) using RS485 protocol (using MAX485 module).
I have successfully done this between two Arduino Unos. ...
1
vote
1answer
57 views
Simple ModBus Master function 15
I have a simple setup with arduino Nano as slave and a arduino Mega as master
Can anyone explain how the function 15
FORCE_MULTIPLE_COILS
Works
i have been running some test on this
and cant figure ...
1
vote
1answer
768 views
Connect Arduino to PLC (Data Exchange)
The Arduino should read data from a PLC. Has anyone experience with this? What would be possible interfaces?
I would prefer OPC-UA, but all the research I did, only OPC-DA was mentioned.
Thanks in ...
3
votes
0answers
295 views
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 ...
1
vote
1answer
143 views
Arduino Modbus Slave Library Needed
We are building a circuit based on ATMega328* that :
Reads 32 current transducers, multiplexed into one Analog Input,
Reads 12 voltage transducers, multiplexed into one Analog Input,
Reads 6 ...
1
vote
0answers
28 views
The Pfieffer Vacuum Protocol for RS485
i am working on a control Interface for serveral Components including turbo Pumps from the company Pfeiffer.
The communication will be done according to the The Pfieffer Vacuum Protocol for RS485.
...
1
vote
2answers
8k views
Modbus RTU slave library
I want to use an Arduino Genuino Zero as a Modbus slave. I tried to search on google, and found a library. When I try using the library, I get a timeout error.
Can anyone tell me how to solve that ...
1
vote
0answers
81 views
ESP32-POE/ISO unstable after 10 days of power up
i have one ESP32-POE and ESP32-POE and i'm using the Olimex RS485 module to read a power meter that is placed near the ESP32 (5 meters of CAT5 cable - 9600 8N1).
My device has this workflow (it's ...
0
votes
0answers
78 views
Modbus RTU MAX485 AFD Yaskawa V1000
I need some help with my proyect. I want send some data to an AFD Yaskawa V1000. I have the bytes test and I send it but I cant comunicate with it. The AFD just show an 'CALL' error, means dont have ...
0
votes
0answers
89 views
ModbusMaster - Read 64 Bit integer
i'm using ModbusMaster library (Repo) to read from a device some registers.
Many of them are float and i've no problem to read them using the following code:
//for float conversation
union
{
...
0
votes
0answers
41 views
Modbus programming
I have a Controllino Mega running a code that rotates a stepper one revolution CW, and one revoluction CCW.
I need the program to run, just when a signal is received from an HMI that I have connected ...
0
votes
1answer
82 views
Controllino Mega and Fatek HMI
I have a setup that controls the rotation of two stepper motor using Arduino UNO, HBS860H stepper drivers, 4X4 keypad and LCD screen. I have replaced the Arduino Uno by a Controllino Mega and it works ...
0
votes
1answer
796 views
Controlling VFD with ModBus RTU via RS485 and Arduino
I am attempting to control a Folinn VFD (Manual: Manual) with an Arduino Uno via a MAX485 module such as this.
Pins for MAX485:
DI > D8
DE & RE > D10
RO > D11
VFD settings:
F00.01 set to 2
...
1
vote
0answers
453 views
How can i read and write the data from a Delta plc-s series through Arduino UNO?
I am trying to communicate PLC with arduino through rs232 as well rs 485. But, I am not able to read and write data. I can observe the data in PLC through ladder logic but not in arduino. I am trying ...
0
votes
0answers
84 views
how to link arduino uno and wonderware via modbus?
I am trying to make my Arduino uno and gy-521 accelerometer a modbus tcp server to feed data to a client on my pc. Most likely the HMI I am going to be using is wonder ware.
#include <Wire.h>
...
1
vote
0answers
871 views
can ModbusRtu.h library send data from slave to master using modbus(RS485) module?
i am using ModbusRtu.h library for modbus protocol. it works for sending data from master to slave but it can not send data from slave to master.
master code:
#include <ModbusRtu.h>
#define ...
1
vote
1answer
404 views
Cannot read modbus data repetitively
I try to communicate with 2 RS485 sensors (pH and EC), but I have some troubles with my code. First, I tried to get data from just one:
The function in charge of request sending:
String GET_probe(...
-1
votes
1answer
451 views
How to Use Function Code 6 Modbus RTU library
I'm trying to communicate with a temperature controller using Modbus RTU.
I used this Arduino library.
I was able to read PV(current temperature value) using below code. It uses Function code 4.
I ...
1
vote
0answers
50 views
I am interfacing Amonia Sensor RS485 output with Arduino Mega . not getting any response
I am interfacing Amonia Sensor RS485 output with Arduino Mega but not getting any response. i need to transmit {0x06, 0x03, 0x00, 0x00, 0x00, 0x04, 0x45, 0xBE};
frame to sensor then senor will send ...
2
votes
2answers
22k views
Arduino ModBus RTU master communication with Power Meter problem
i have an arduino UNO with RS485 module.
I have made this connection:
And i have an problem with communication of this module with power meter
"InePro PRO-1Mod"
(datasheet) over ModBus protocol. I ...
0
votes
1answer
1k views
Arduino Modbus RTU VFD control
I need help with this code:
/**
* Modbus master example 1:
* The purpose of this example is to query an array of data
* from an external Modbus slave device.
* The link media can be USB or RS232....
0
votes
1answer
1k views
Using Modbus-RTU with Arduino and temperature controller
I'm trying to connect with a 4 channel temperature controller using Arduino Modbus Library.
This is a part of my temperature controller datasheet. It has register for read PV of each channel.
I have ...
1
vote
0answers
267 views
Reading a simple sensor with Modbus RTU on Arduino Uno
I'm integrating a wind direction- and speed sensor with an Arduino. It communicates over RS485 Modbus RTU, which I don't have any experience with.
The documentation is very short, and it just says:
...
1
vote
1answer
1k views
NodeMCU Modbus interfacing with Pressure Multi-Switch
I've been trying to interface between a NodeMCU and a Dotech DPX200 Pressure Multi-Switch over Modbus RS485 using a MAX485 Module for the past few weeks, going through nearly every Modbus post on this ...
0
votes
1answer
2k views
Using Modbus TCP server on Arduino
I have a scd30 sensor wired to an Arduino Uno. The scd30 works on the I2C protocol. I am able to read data live on the serial monitor on the Arduino IDE. I have an ethernet shield on my Arduino. I ...
0
votes
1answer
1k views
Stack smashing protect failure ESP32 with Modbus RTU
I'm doing a project using an ESP32 TTGO with LoRa, the Max485 and a WELLPRO ADAM 8082 for Modbus communication. I'm trying to use the ESP32 as a master to and the ADAM as a slave.
I'm also using Node-...
3
votes
1answer
20k views
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 ...
0
votes
1answer
914 views
Talking to Eurotherm 2416 temperature controller over modbus rs232
I am trying to implement the modbus library written by smarmengol to read process values and to set new setpoints (e.g. temperature) on a Eurotherm controller. The Arduino sketch looks like this:
/**
...
1
vote
0answers
305 views
Arduino Mega with SIM800L running Modbus TCP/IP
I'm trying to set up an Arduino Mega with a SIM800L module and trying to get Modbus TCP running on said Mega. I've set Modbus TCP over wifi and serial before but I used libraries for those. The ...
1
vote
0answers
521 views
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 ...
0
votes
0answers
49 views
PLC with Arduino UNO [duplicate]
In my current project I have to communicate with 10 different devices with PLC.
PLC is the master. When input comes from PLC to a device, the Arduino controller through RS485, I want to check the ...
1
vote
0answers
251 views
RS485 Arduino Communication Issue
Friends, I am trying to achieve half duplex communication between two Arduinos using RS485 Protocol. The hardware I am using is a MAX485 module and an Arduino Uno. I am using the SoftwareSerial ...
2
votes
1answer
10k views
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 ...
1
vote
1answer
371 views
Cannot obtain reading from meter (Modbus)
I have a system in which I am taking readings from a meter and processing it through an Arduino Nano. My code looks as follows:
#include <SoftwareSerial.h>
#define SerialControl 7
#define ...
0
votes
1answer
2k views
CRC16 calculation for MODBUS RTU [closed]
I am trying to communicate an industrial type counter using Modbus.
I have to calculate CRC16 value as two byte for send it.
I previously googled for few Arduino libraries and I get a same function as ...
1
vote
0answers
121 views
Arduino as Modbus RS485 slave using only 2 Digital pins
I want to use RX(0) and TX(1) Pins to make Arduino as an RS485 slave. To do this I am using MAX485 IC (Breakout board) https://datasheets.maximintegrated.com/en/ds/MAX1487-MAX491.pdf
The problem here ...
1
vote
0answers
1k views
Arduino Modbus - Rtu slave with Raspberry pi using MAX-485
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,...
2
votes
0answers
507 views
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,...
1
vote
2answers
566 views
Communication arduino MODBUS fails on high number of registers
When I try to run the following program it runs ok:
#include <modbus.h>
#include <modbusDevice.h>
#include <modbusRegBank.h>
#include <modbusSlave.h>
#include <...
0
votes
2answers
957 views
Problem with modbus communication between two arduinos when writing more than 27 registers
I have the following problem:
I want send 200 registers from a modbus master to a slave. Both are arduinos.
I can't send more than 27 registers. When I send more i get the Errorcode 255 which means ...
0
votes
2answers
3k views
Modbus IP with Simply Modbus TCP
include SPI.h
include Ethernet.h
include Modbus.h
include ModbusIP.h
//Modbus Registers Offsets (0-9999)
const int SENSOR_IREG = 100;
//Used Pins
const int sensorPin = A0;
//ModbusIP object
ModbusIP ...
2
votes
1answer
641 views
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 ...
0
votes
2answers
132 views
How to control two devices with Arduino? [closed]
I want to control two devices:
AC
Humidifier
I have a DHT11 sensor for temperature and humidity. I want the AC to turn on when the temperature is greater than 30°C, and off when it's less than 20°C....
-1
votes
1answer
936 views
Multiple #ifndef vs. single one #endif
My question is connected with the issue as linked:
Is there any good working MODBUS TCP master library available for Arduino?
An example of Modbus TCP master library as suggested in the post above. A ...
1
vote
1answer
7k views
How to make I2C work on RS485?
I'm trying to optimize the communication (minimize wires) on a project where I can control a motor and toggle some 230V devices by using RS485 and I2C.
On this project, I'm using an Arduino (Mega) ...
0
votes
1answer
3k views
Arduino Modbus Master code to read data using arduino uno from EB meter
I am using DC energy meter as slave.When I am testing DC energy meter using Modbus tester tool,its showing value from 1 to 24 register.I am using my own atmega328P with on board RS485 as a master ...