Basic Arduino + HMI Connection via Modbus Protocol - Weintek USA coding

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ค. 2024
  • Weintek USA website: www.weintekusa.com/globalw/
    Download Links
    Projects & Schematics:
    github.com/AReds4/Arduino2HMI
    Arduino Library:
    github.com/jossef/arduino-mod...
    0:00 Introduction
    1:22 Arduino Library/Code
    2:52 Wiring Arduino Board & RS485 connection
    5:21 Configuring the EasyBuilder Pro Project
    7:26 Testing Modbus Connection
    8:05 EasyBuilder Pro Library
    8:49 Stack Lamp Test
    9:05 Outro
    #Arduino #Robotics #STEM

ความคิดเห็น • 46

  • @therzook
    @therzook 2 ปีที่แล้ว +1

    Just realized that I have some weintek hmi sitting in my attic for 4yrs now... and that would be huge to make it work with arduino mega. Thanks for this video. It is funny how many things it is possible to do with those tiny cheap arduinos!

    • @samuelarmengol5015
      @samuelarmengol5015 ปีที่แล้ว

      hola a conseguido hacerlo funcionar con arduino mega?? a, un coHol

    • @wadebrewer7212
      @wadebrewer7212 2 หลายเดือนก่อน

      I csnt find any resources on making Arduino communicate tcp/ip.

  • @MakerFabio
    @MakerFabio 2 ปีที่แล้ว

    Hi,thanks for this useful video. Can you provide link to the video reading integer from HMI with arduino, you mentioned it in the last part of this video. PS I think i found it, is the robot arm video

  • @SumeClue
    @SumeClue 2 ปีที่แล้ว

    Can i read data in a Elevator system's MODbus or Canbus so that i can find out the floor number shown in the display using arduino? Please help

  • @francescogaudio1222
    @francescogaudio1222 ปีที่แล้ว

    Hi thanks for the tutorial , please tell me how do I change the serial on the modbus library . I bought a plc arduino mega that has rs 485 on pin DI 14, RO 15, RE 11, DE 46 can you help me? Thanks in advance

  • @user-pb6pk7mv2k
    @user-pb6pk7mv2k 2 ปีที่แล้ว

    I use RS485 connector (in video 00:40) to connect it to arduino there are 4 pins: di(tx) ,de ,re ,ro(rx) and vcc ,gnd . Where to connect de,re ? Doesn't work without them

  • @jahaniausman5406
    @jahaniausman5406 2 ปีที่แล้ว +2

    Hi, I am using Easybuilder 8000 for MT6070ip, and connecting with arduino uno. I am following the same process as in this video but it's not'working out. Moreover, there is no option for "MODbus RTU, RTU over TCP" in easybuilder 8000, that's why I am selecting "MODbus RTU". Need your help.

  • @rickdalton7907
    @rickdalton7907 11 หลายเดือนก่อน +1

    The MAX485 module that you connected at 3:17 is not the same as you have in the picture at 0:48, which has DE and RE pins. The only modules I can find are the type you show at 0:48. Can you share where you bought the module that you used in the project? ... The one we see at 3:17.

  • @vishnuhu9086
    @vishnuhu9086 6 หลายเดือนก่อน

    Is there any way to choose serial3 output for those with a mega/controllino board?

  • @nguyen7979
    @nguyen7979 ปีที่แล้ว

    If I want to change serial port to Tx1, Rx1 or pin 19 and 18 on Arduino Mega other than default port then how can it be done?

  • @ibrahimaliabbasi5188
    @ibrahimaliabbasi5188 2 ปีที่แล้ว

    thanks for clear explanation. Just one thing. What's the purpose of that white cable attached to your HMI besides RS-485 adapter at 8:50???

    • @WeintekUSATeam.0
      @WeintekUSATeam.0 2 ปีที่แล้ว

      Hi Ibrahim,
      The white cable at 8:50 is an Ethernet cable that was connected to our PC. It allowed us to monitor and control the HMI remotely.

    • @ibrahimaliabbasi5188
      @ibrahimaliabbasi5188 2 ปีที่แล้ว

      @@WeintekUSATeam.0 oooo right right thanks

  • @nguyenao783
    @nguyenao783 3 ปีที่แล้ว

    Hi can you write simple connection code between arduino rs485 to plc fx3u ?? Thank you

  • @user-zj2wm1hy4q
    @user-zj2wm1hy4q 3 หลายเดือนก่อน

    Can we do it using an ethernet shield using an ethernet cable to any iP weintek series.

  • @revanthkumar3246
    @revanthkumar3246 หลายเดือนก่อน

    I tried code as like you but I'm getting error at slave.SetBaud stage as it is asking me to fill 2 unsigned char , word and hardware serial and I don't know what to type in the bracket. Could you please help me in this part as I'm using same RS485 to TTL converter what you have used so that it will be helpful in my project?

  • @maikoncesar7093
    @maikoncesar7093 7 หลายเดือนก่อน

    The libraries are not complete and compiled, can you send a new link please

  • @ugetri1653
    @ugetri1653 2 ปีที่แล้ว

    Thanks for your video..can we use rs232 communication..from hmi to arduino.?without conversion board rs485

    • @WeintekUSATeam.0
      @WeintekUSATeam.0 2 ปีที่แล้ว

      Hi Uge,
      For your application you will likely need an RS232 to TTL adapter or shield in order to communicate over an RS232 interface.

  • @rovivo
    @rovivo 3 ปีที่แล้ว

    Thanks for the great video. Can you please add the links for the example projects?

    • @WeintekUSATeam.0
      @WeintekUSATeam.0 3 ปีที่แล้ว

      Hi there,
      We've placed links for both the example project and the libraries within the description.

  • @umargul5644
    @umargul5644 2 ปีที่แล้ว +1

    Great

  • @engrmunir7861
    @engrmunir7861 6 หลายเดือนก่อน

    Help me to compile this code.my arduino ide is 2.2

  • @arbazansari7647
    @arbazansari7647 2 ปีที่แล้ว

    Did you use tags or registers for communication. Because you didn't show it in video.

    • @WeintekUSATeam.0
      @WeintekUSATeam.0 2 ปีที่แล้ว

      Hi Arbaz,
      Within this project, we reference Modbus registers within the Arduino while building the HMI project.

  • @engjaka9668
    @engjaka9668 2 ปีที่แล้ว

    how to acces (write and read) data value ? is there example code?

    • @WeintekUSATeam.0
      @WeintekUSATeam.0 2 ปีที่แล้ว

      Hi Eng,
      We have placed a download link for this application within the description.

  • @pawelwojcik7550
    @pawelwojcik7550 7 หลายเดือนก่อน

    not working, this example you show on you movie doesn't exist in arduino modbus library

  • @edwinhdz5014
    @edwinhdz5014 10 หลายเดือนก่อน +1

    Cannot upload your code to my device, i have this error message in Arduino IDE " exit status 1
    no matching function for call to 'modbusSlave::setBaud(int) "

    • @WeintekUSATeam.0
      @WeintekUSATeam.0 8 หลายเดือนก่อน

      Hello,
      Did you retrieve this code from the Github link in the description? If so, were you able to resolve this issue?

  • @mdmostafashahid948
    @mdmostafashahid948 2 ปีที่แล้ว

    can i connect this system modbus with MT8050i HMI..???

    • @WeintekUSATeam.0
      @WeintekUSATeam.0 ปีที่แล้ว

      Hi Mostafa,
      The mT8050iE supports the "Modbus RTU, RTU over TCP" driver as well. You can certainly use this HMI within a similar application.

  • @YAgni-ug5jf
    @YAgni-ug5jf ปีที่แล้ว

    Cannot download the Arduino library

  • @pdelettronica
    @pdelettronica 3 ปีที่แล้ว

    I forgot to mention that no icons appear on the HMI

  • @robinsondchiluisa7181
    @robinsondchiluisa7181 2 ปีที่แล้ว

    is it worth reading a 32 bit register?

    • @WeintekUSATeam.0
      @WeintekUSATeam.0 2 ปีที่แล้ว

      Hello Robin,
      If the data that you are trying to read is held within a 32-Bit register (Example: The number 1,000,000) then it will be necessary to read a 32-Bit register.

    • @robinsondchiluisa7181
      @robinsondchiluisa7181 2 ปีที่แล้ว

      @@WeintekUSATeam.0 hello
      How can I read a 32-bit register?

  • @pdelettronica
    @pdelettronica 3 ปีที่แล้ว +3

    Good morning
    I repeated the example to the letter.
    I use an MP8071iP.
    I get the error message: "Device No Response".
    Why this mistake?

    • @WeintekUSATeam.0
      @WeintekUSATeam.0 3 ปีที่แล้ว

      Hi Davide,
      In order to assist you, we will need more information about how you've designed your project. Please send an email to support@weintekusa.com with a brief description of this issue and your HMI's serial number.

    • @rovivo
      @rovivo 3 ปีที่แล้ว +8

      There is a mistake in the video by the Display connection settings. The Arduino library in the description is hard set to 8N1. (Line 22 in modbusSlave.cpp "// defaults to 8-bit, no parity, 1 stop bit") So set the Display connection settings to 8N1 and check the station nr. of the display, it must match the number in the arduino code line 15.

    • @vannhantruong6622
      @vannhantruong6622 2 ปีที่แล้ว

      @@rovivo that right! thank for your comment!

    • @firzalarland8851
      @firzalarland8851 2 ปีที่แล้ว

      @@rovivo I've changed the display connection setting to 8N1 but still get error message: "device no response", and i dont understand about station nr.. can u help me please ?

  • @YAgni-ug5jf
    @YAgni-ug5jf 10 หลายเดือนก่อน

    Yellow light did not light up, red and green light does.

  • @engrmunir7861
    @engrmunir7861 6 หลายเดือนก่อน

    Sir i used your libraray and code but in compiling too many errors. Like wprogram.h not found. I rectify this error with replacing wprogram.h with arduino.h and now i am receving eeprom.h not found