Questions tagged [modbus]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
15 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
23 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
1answer
48 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 ...
0
votes
0answers
24 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
35 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
0answers
114 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
69 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> ...
0
votes
1answer
203 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 ...
0
votes
0answers
213 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 ...
0
votes
0answers
36 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 ...
-1
votes
1answer
229 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 ...
0
votes
0answers
197 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
775 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
724 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-...
0
votes
0answers
258 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 ...
0
votes
0answers
433 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
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. ...
0
votes
0answers
46 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 ...
0
votes
0answers
196 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 ...
1
vote
1answer
335 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(...
0
votes
1answer
1k 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 ...
0
votes
0answers
112 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
310 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,...
0
votes
0answers
911 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,...
0
votes
2answers
785 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 ...
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 ...
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
2answers
107 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
682 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 ...
0
votes
1answer
891 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....
1
vote
1answer
5k 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
2k 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 ...
3
votes
1answer
17k 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 ...
2
votes
2answers
19k 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 ...
1
vote
1answer
367 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
2answers
721 views

float not a float

I am trying to read a SDM220 meter on my solar setup. I've been reading it using Modbus SCADA, so know it all works ok. But I want to read it with my Arduino Mega 256. My problem is that when I run ...
0
votes
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 ...
2
votes
1answer
718 views

Need Help to implement MODBUS TCP Master over Atmega32 MCU

I am doing a project where I have to interface with Fronius Solar Inverter with Atmega32 MCU over MODBUS TCP. I want to set the MCU as client and The inverter as Server and I have to implement two ...
2
votes
1answer
9k 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 ...
0
votes
1answer
747 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 ...
0
votes
1answer
2k views

Can I connect to a DALI network as a master node using an Arduino?

I have googled a lot, and mostly every website you can link me I have already explored, some are outdated and don't work, others aren't clear in their documentation, and use equipment too expensive to ...
0
votes
1answer
762 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: /** ...
0
votes
1answer
4k views

Modbus RTU over TCPip

I have developed my arduino code using below library. I tested code working fine over modbus RTU slave. Now i am planning to use RS485 to wifi instead of wire connection. In order to get data over web ...
1
vote
0answers
977 views

Modbus Protocol RTU

I have simple code working on Serial Communication asn below. With Same data i would impliment Modbus protocol> I have Used Modbus library for arduino earlier which works fine with 9600 baudrate and ...
0
votes
1answer
1k views

Why ModBus RTU Master-Slave Dont Work

I have two mega arduino and want to them communicate with modbus rtu together, i use below link circuit for this : http://www.microcontroller-project.com/rs485-communication-between-arduino-mega-and-...
3
votes
1answer
1k views

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 ...
1
vote
1answer
598 views

Modbus master arduino code is throwing weird errors on upload

I am using the following https://code.google.com/p/simple-modbus/ arduino master library code. In order to communicate with my industrial drive. All seems right but I am getting some weird errors. I ...
5
votes
1answer
2k views

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 ...
8
votes
4answers
6k views

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 ...