Is modbus TCP possible in next time?
- cicciocb
- Site Admin
- Posts: 2060
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 439 times
- Been thanked: 1358 times
- Contact:
Re: Is modbus TCP possible in next time?
sure, I think that modbus treat them just as addresses so should work
-
- Posts: 99
- Joined: Fri Dec 09, 2022 10:03 am
- Has thanked: 42 times
- Been thanked: 9 times
- cicciocb
- Site Admin
- Posts: 2060
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 439 times
- Been thanked: 1358 times
- Contact:
Re: Is modbus TCP possible in next time?
I'm happy for you but you can avoid the flicker simply refreshing the variable (and not clearing and rewriting the textbox). Annex has been built on that, the capacity to exchange the variables between HTML and the basic
Re: Is modbus TCP possible in next time?
Hello Francesco,
Do you have a serial RTU interface for the Modbus?
Since you already have the overall Modbus firmware implemented.
Would you be able to add Serial RTU interface as another option to existing TCP?
RS485 is only a hardware interface that can be provided by a chip like MAX485, see example below. Normal Serial Uart plus TX/RX control pin (RE/DE) would be needed from ESP32.
However, from my other personal experience. Timing of switching RE/DE pin is important after transmission.
Must make sure that ESP32 Uart Tx buffer is completely empty, that all Tx bytes have been transmitted before changing control pin from Transmission to receive. I don't know, if ESP32 IDF has low level Uart interrupts to indicate Uart Tx complete?
I think that RTU option would enhance/complete the Modbus option on Annex32 and would be welcome by other interested Annex32 users.
Do you have a serial RTU interface for the Modbus?
Since you already have the overall Modbus firmware implemented.
Would you be able to add Serial RTU interface as another option to existing TCP?
RS485 is only a hardware interface that can be provided by a chip like MAX485, see example below. Normal Serial Uart plus TX/RX control pin (RE/DE) would be needed from ESP32.
However, from my other personal experience. Timing of switching RE/DE pin is important after transmission.
Must make sure that ESP32 Uart Tx buffer is completely empty, that all Tx bytes have been transmitted before changing control pin from Transmission to receive. I don't know, if ESP32 IDF has low level Uart interrupts to indicate Uart Tx complete?
I think that RTU option would enhance/complete the Modbus option on Annex32 and would be welcome by other interested Annex32 users.
You do not have the required permissions to view the files attached to this post.
- cicciocb
- Site Admin
- Posts: 2060
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 439 times
- Been thanked: 1358 times
- Contact:
Re: Is modbus TCP possible in next time?
Yes, the code is already in the last version ( look at the change log). I experimented a little bit and is working but It is not yet ready to be published. I bought recently several modules RTU and some more are coming in next days so, yes, the RTU will be supported "off the shelf" with annex.
Re: Is modbus TCP possible in next time?
Thank you Francesco.
Is it possible to experiment with RTU implementation in version 1.52.9, before it is officially published?
Call it Beta assist testing.
If yes, what is the RTU CONNECT command and serial port initializing?
I have some modbus RTU slave devices that I can test.
Best Regards
Is it possible to experiment with RTU implementation in version 1.52.9, before it is officially published?
Call it Beta assist testing.
If yes, what is the RTU CONNECT command and serial port initializing?
I have some modbus RTU slave devices that I can test.
Best Regards
- cicciocb
- Site Admin
- Posts: 2060
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 439 times
- Been thanked: 1358 times
- Contact:
Re: Is modbus TCP possible in next time?
Thank you for your proposal, but I've already found a working solution and have reached the limits of what I wanted to test. The commands are not fully available as they are partially embedded and not modifiable (just debug code). What I need now is to experiment with the connection of several elements on the same RS485 line. As I mentioned, I've purchased several modules for these experiments, and they should arrive in the next few weeks.[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Sun May 05, 2024 11:01 am Thank you Francesco.
Is it possible to experiment with RTU implementation in version 1.52.9, before it is officially published?
Call it Beta assist testing.
If yes, what is the RTU CONNECT command and serial port initializing?
I have some modbus RTU slave devices that I can test.
Best Regards
- cicciocb
- Site Admin
- Posts: 2060
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 439 times
- Been thanked: 1358 times
- Contact:
Re: Is modbus TCP possible in next time?
Well, a little update.
The Modbus RTU seems to work well.
Just tested with 6 devices at the same time on the same line (the 6th is my PC with a modbus adapter) plus a modbus TCP connection with a modbus slave simulator (yes, the RTU and the TCP can work at the same time)
The Modbus RTU seems to work well.
Just tested with 6 devices at the same time on the same line (the 6th is my PC with a modbus adapter) plus a modbus TCP connection with a modbus slave simulator (yes, the RTU and the TCP can work at the same time)
You do not have the required permissions to view the files attached to this post.
-
- Posts: 99
- Joined: Fri Dec 09, 2022 10:03 am
- Has thanked: 42 times
- Been thanked: 9 times
Re: Is modbus TCP possible in next time?
Oh, I'm very interested in this new technology, I can really use it.
You're a genius.
My JLB boards should arrive next week, if anyone wants one, send me a PM.
I mean this one: Platine for ESP32-S3 with VGA.
Does anyone know of an inexpensive Modbus board that can be used to measure voltages up to 50-60 volts?
You're a genius.
My JLB boards should arrive next week, if anyone wants one, send me a PM.
I mean this one: Platine for ESP32-S3 with VGA.
Does anyone know of an inexpensive Modbus board that can be used to measure voltages up to 50-60 volts?
- cicciocb
- Site Admin
- Posts: 2060
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 439 times
- Been thanked: 1358 times
- Contact:
Re: Is modbus TCP possible in next time?
I bought one of these:[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Sun May 12, 2024 4:30 pm Oh, I'm very interested in this new technology, I can really use it.
You're a genius.
My JLB boards should arrive next week, if anyone wants one, send me a PM.
I mean this one: Platine for ESP32-S3 with VGA.
Does anyone know of an inexpensive Modbus board that can be used to measure voltages up to 50-60 volts?
https://fr.aliexpress.com/item/10050067 ... pt=glo2fra
It has a range of 10V but you can easily put a voltage divider and adapt your scale