#Modbus

Поділитися
Вставка
  • Опубліковано 27 лис 2024

КОМЕНТАРІ • 54

  • @nachiketathakur697
    @nachiketathakur697 Рік тому +1

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

  • @Zurenio
    @Zurenio Рік тому

    ControllersTech.... The best...!!

  • @bogdan1543
    @bogdan1543 2 роки тому +2

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

  • @asdasdasd93679
    @asdasdasd93679 Рік тому +2

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

  • @huijaeyoon1185
    @huijaeyoon1185 6 місяців тому

    ControllersTech,... you're a light...!!!
    but i hope you post Wiring diagrams with these kind of videos for viewers

  • @Itsme-le8hs
    @Itsme-le8hs Рік тому +2

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

    • @ControllersTech
      @ControllersTech  Рік тому +1

      You can see yourself. Its inside the inc folder.

  • @mohamadghobadi3015
    @mohamadghobadi3015 Рік тому

    thank you very much ControllersTech

  • @Jason-ky8ho
    @Jason-ky8ho 2 роки тому +4

    Thanks!

  • @jatinshakya6735
    @jatinshakya6735 2 роки тому

    Thanks for doing such a amazing work ....

  • @annakkiliarumugam7594
    @annakkiliarumugam7594 Рік тому

    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?

  • @ShaikJaavid
    @ShaikJaavid Рік тому

    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.

  • @this_is_kd_singh
    @this_is_kd_singh Рік тому

    Can you give links for only components used in this video

  • @Vazzible_gaming
    @Vazzible_gaming Рік тому

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

  • @smecmanca
    @smecmanca 7 місяців тому

    Hi, wonderful video, can you make others for modbus TCP?

  • @angkhongminh911
    @angkhongminh911 Рік тому

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

  • @woldecosgrove
    @woldecosgrove 4 місяці тому

    Hello... i m just wondering y there's no #2 Modbus video?

  • @MegaHatef
    @MegaHatef 20 годин тому

    I saw the Darth Vader (a star war character) at 16:27 :)))) what was that???

  • @NguyenLam-cv5nt
    @NguyenLam-cv5nt Рік тому

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

  • @bobshiskabob
    @bobshiskabob Рік тому

    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.

    • @ControllersTech
      @ControllersTech  Рік тому

      You need to call the same function (receivetoidle_it) at the end of the callback function. Check my code I have called it.

    • @bobshiskabob
      @bobshiskabob Рік тому

      @@ControllersTech maybe its later on in the video series (EDIT: It is haha, I just saw it in a future video) . Right now your receivetoidle_it is only called once during initialization, and is not in the RxEventCallBack
      void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size)
      {
      Data[0] = RxData[3]

  • @dillibabugopalakrishnan3720
    @dillibabugopalakrishnan3720 2 роки тому

    Awesome video....

  • @EducationLeaning
    @EducationLeaning Місяць тому

    I applied code but it showing 00 crc

  • @aliasgarshaikh7884
    @aliasgarshaikh7884 Рік тому

    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.

    • @ControllersTech
      @ControllersTech  Рік тому

      Define it in the modbusslave.c file. Then define in the header file as an external variable

  • @krithikaphyavula
    @krithikaphyavula Рік тому

    hi,in your playlist as you were using modbus applications for testing the client and server. Can you provide me the information regarding the one to one controller testing i.e., one controller as modbus master and other as slave .Have you tested it or are there any sources to test this

    • @ControllersTech
      @ControllersTech  Рік тому

      it works the same way... You literally have the code for master and slave. just use them.

    • @krithikaphyavula
      @krithikaphyavula Рік тому

      @@ControllersTech I got it, thank you for your playlist.

  • @Binhnx1hn
    @Binhnx1hn Рік тому

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

  • @muratpolat3956
    @muratpolat3956 2 роки тому

    Waiting next video modbus rtu

  • @VipinKrishna-bs3dw
    @VipinKrishna-bs3dw Рік тому

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

    • @ControllersTech
      @ControllersTech  Рік тому

      Under the project explorer, right click on the folder where you want to create the file.
      The click new -> header file.
      The give name modbus.h and click save.

  • @kibet
    @kibet 2 роки тому

    thanks

  • @StreuB1
    @StreuB1 Рік тому

    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?

  • @ShaikJaavid
    @ShaikJaavid Рік тому

    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

  • @ShraddhaPatil-p3g
    @ShraddhaPatil-p3g Рік тому

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

    • @ControllersTech
      @ControllersTech  Рік тому

      Download the project from the link in the description. They are inside src and inc folders.

    • @ShraddhaPatil-p3g
      @ShraddhaPatil-p3g Рік тому

      could you please share link with me?

    • @ControllersTech
      @ControllersTech  Рік тому

      Read the description of the video

  • @ShaikJaavid
    @ShaikJaavid Рік тому

    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

    • @ControllersTech
      @ControllersTech  Рік тому

      Registers are 16 bit wide. The data for each Register is transferred in 2 bytes. That's why..

  • @joserosario7208
    @joserosario7208 9 місяців тому

    I'll try this but in PIC18F45K50

  • @Mtr-q3h
    @Mtr-q3h Рік тому

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

    • @ControllersTech
      @ControllersTech  Рік тому

      I can't... Install whatever you want as long as it can be a modulus master and slave.

  • @KAMALZINZUVADIYA
    @KAMALZINZUVADIYA Рік тому

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

  • @sopandhaye2327
    @sopandhaye2327 10 місяців тому

    Crc lib link ?

  • @cutecuts2995
    @cutecuts2995 Рік тому

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