Тёмный

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

Weintek USA, Inc.
Подписаться 8 тыс.
Просмотров 43 тыс.
50% 1

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

Опубликовано:

 

30 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 47   
@therzook
@therzook 2 года назад
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 3 месяца назад
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
@umargul5644
@umargul5644 2 года назад
Great
@jahaniausman5406
@jahaniausman5406 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.
@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
@rickdalton7907
@rickdalton7907 Год назад
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.
@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
@francescogaudio1222
@francescogaudio1222 2 года назад
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
@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.
@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
@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?
@vishnuhu9086
@vishnuhu9086 8 месяцев назад
Is there any way to choose serial3 output for those with a mega/controllino board?
@nguyenao783
@nguyenao783 3 года назад
Hi can you write simple connection code between arduino rs485 to plc fx3u ?? Thank you
@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.
@user-zj2wm1hy4q
@user-zj2wm1hy4q 4 месяца назад
Can we do it using an ethernet shield using an ethernet cable to any iP weintek series.
@pdelettronica
@pdelettronica 3 года назад
I forgot to mention that no icons appear on the HMI
@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.
@edwinhdz5014
@edwinhdz5014 Год назад
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 10 месяцев назад
Hello, Did you retrieve this code from the Github link in the description? If so, were you able to resolve this issue?
@maikoncesar7093
@maikoncesar7093 9 месяцев назад
The libraries are not complete and compiled, can you send a new link please
@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.
@revanthkumar3246
@revanthkumar3246 3 месяца назад
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?
@WeintekUSAInc
@WeintekUSAInc Месяц назад
Hi @revanthkumar3246, Some items discussed within this tutorial may be outdated, we will try to release a new tutorial soon!
@pdelettronica
@pdelettronica 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 года назад
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 3 года назад
@@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 ?
@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.
@engrmunir7861
@engrmunir7861 7 месяцев назад
Help me to compile this code.my arduino ide is 2.2
@YAgni-ug5jf
@YAgni-ug5jf Год назад
Cannot download the Arduino library
@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?
@pawelwojcik7550
@pawelwojcik7550 8 месяцев назад
not working, this example you show on you movie doesn't exist in arduino modbus library
@YAgni-ug5jf
@YAgni-ug5jf 11 месяцев назад
Yellow light did not light up, red and green light does.
@engrmunir7861
@engrmunir7861 7 месяцев назад
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
Далее
LOW COST ARDUINO NANO PLC
10:44
Просмотров 3,7 тыс.
TK4S & Weintek MT8071iE "Modbus-RTU" via RS485
4:47
Просмотров 10 тыс.
“Hello, world” from scratch on a 6502 - Part 1
27:25
6 Horribly Common PCB Design Mistakes
10:40
Просмотров 174 тыс.