#Modbus 1. STM32 as Master || Read Holding and Input Registers

#Modbus 1. STM32 as Master || Read Holding and Input Registers

ControllersTech

1 год назад

37,281 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Shraddha Patil
Shraddha Patil - 27.09.2023 09:55

How I
can add Modbus_CRC.C and Modbus_CRC.C file? where is taken?

Ответить
Nachiketa Thakur
Nachiketa Thakur - 02.09.2023 07:49

Hi, Amazing tutorial. I cannot thank enough. During coding this, I have found some key information regarding the hardware, which will be useful for everyone.
1. The USB to RS485 convertor used in the tutorial is NOT reliable. You can use it, but make sure that the GND and VCC of the TTL to RS485 convertor is connected with 5V and GND of STM32 development board.
2. On the USB to RS485, the A and B points may not be labelled properly. I have found that in my device, the A was actually B and B was actually A.
3. You may need to update the driver of CH430 chip (used by TTL to RS485 convertor). As while working with the Modbus Slave Device, I found that I could not select the port (the software showed "no" and port area was in red color).

Ответить
Shaik Jaavid
Shaik Jaavid - 13.08.2023 09:01

Quectel mc60 module with amazon aws via mqtt is exactly what i need . i am always getting error near subscribing a topic and publishing a topic. there is no much help from Quectel guys

Ответить
Shaik Jaavid
Shaik Jaavid - 13.08.2023 08:58

small request from me . please post videos on Quectel mc60 modules . because there are not much videos on them . if you have time please give a try.

Ответить
JohnKndy
JohnKndy - 03.08.2023 09:25

Hi, great videos, as always. Only one question for you: why not use DMA (as per a previous video) for implementing Modbus?

Ответить
Mtr
Mtr - 25.07.2023 08:46

How can yo tell if "Simply Modbus" is safe to install?

Ответить
Annakkili Arumugam
Annakkili Arumugam - 14.07.2023 08:48

I am facing the COM port issue in the Modbus master Master & Slave. I can see the port detail in Device Manager. But while I am trying to connect with the master/ slave using the same COM port I have seen in the device manager, it always shows in red [that means it is telling as an Invalid COM port but I had given the correct one]. And the same COM port is not used in some other applications. I have checked it. Why it is showing as an invalid COM port even though I had given the correct one?

Ответить
Aliasgar Shaikh
Aliasgar Shaikh - 05.07.2023 09:13

unable to change data types other than Static in modbusSlave.h file what is wrong with it ,
actually i want to declare "Holding_Registers_Database[50]" array without static keyword.

Ответить
cute cuts
cute cuts - 27.06.2023 13:08

Hi sir kindly explain the library file or else share the file..

Ответить
james nation
james nation - 06.06.2023 22:35

Hello,

I have tried to implement this in a loop, as running it once is not very helpful. However, the interrupt is only triggering once for some reason. I placed a breakpoint in:
void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size)

However, I can only get it to trigger once, do you have any tips?

Thanks.

Ответить
It's me
It's me - 27.05.2023 10:52

I find it very easy to understand. Can you show what is inside the "modbus_crc.h" file?

Ответить
Nguyễn Lâm
Nguyễn Lâm - 26.05.2023 18:19

Hello channel owner, can you tell me whether that USB to RS485 to TTL converter is supported on win10, thanks

Ответить
Vazzible Gaming
Vazzible Gaming - 03.05.2023 22:02

Dammit I feel like I’m listening to an aperture science robot.

Ответить
Thanh Bình Nguyễn
Thanh Bình Nguyễn - 14.02.2023 10:52

Thank you very much, but I don't read continuously. Can you help me?

Ответить
Brian Streufert
Brian Streufert - 08.02.2023 08:18

Best video on this topic I have ever seen!!! Could you also do a simple Master RTU with an ATTINY85 to simply query a Slave device for a single read register and then allow another device to call the ATTINY85 and have it host that memory location so that another device can pull it? So, the ATTINY85 acts as a MODBUS Master to the Slave device and host the pulled data to another device via something like SPI or I2C?

Ответить
Vipin Krishna
Vipin Krishna - 06.02.2023 08:17

Thankyou for the Work. but Can you explain how to create the modbus.h file

Ответить
KAMAL ZINZUVADIYA
KAMAL ZINZUVADIYA - 05.02.2023 14:48

i run this code for stm32f407 discovery but i got corrupted data in modbus slave software

Ответить
mohamad ghobadi
mohamad ghobadi - 24.01.2023 19:10

thank you very much ControllersTech

Ответить
Đăng Khổng Minh
Đăng Khổng Minh - 23.12.2022 12:18

Can you make a example about modbus rtu with rtos. Thank you

Ответить
Shaik Jaavid
Shaik Jaavid - 13.12.2022 14:20

why are you doing left shift. i dont understand why ?
you just write data[0] = rxdata[4];
data[1] = rxdata[6];
data[2] = rxdata[8];
and so on

Ответить
Jason
Jason - 15.11.2022 15:25

Thanks!

Ответить
Ivica Pojatina
Ivica Pojatina - 03.10.2022 14:26

thanks

Ответить
Dillibabu Gopalakrishnan
Dillibabu Gopalakrishnan - 02.10.2022 18:15

Awesome video....

Ответить
Murat Polat
Murat Polat - 01.10.2022 23:29

Waiting next video modbus rtu

Ответить
Bogdan
Bogdan - 01.10.2022 19:55

Similar but with an STM 32 as a slave would be great to see! Thanks!

Ответить
jatin shakya
jatin shakya - 01.10.2022 17:28

Thanks for doing such a amazing work ....

Ответить