Arduino Based PLC with Codesys

  Рет қаралды 16,012

Leo Nunes (Simplifying Everything)

Leo Nunes (Simplifying Everything)

Күн бұрын

Пікірлер: 24
@rfcasaeestilo1212
@rfcasaeestilo1212 11 ай бұрын
Hello Leo! My name is Junior, I would like to know if it is possible to create a program in Ladder language on Codesys and convert it to Arduino language, is this possible? How did you do it in your video?
@ಠಿ_ಠ-ತ7ಭ
@ಠಿ_ಠ-ತ7ಭ Ай бұрын
the fact that the pc still is the plc master, wouldnt it better to use io tcp slave like moxa anyway right.
@lazaro7lakes750
@lazaro7lakes750 4 жыл бұрын
Excellent video! Very enlightening! Simple and straightforward explanation.
@leonunes8720
@leonunes8720 4 жыл бұрын
Thank you so much for your feedback, really appreciate it!
@kenneth4575
@kenneth4575 3 жыл бұрын
I'm having trouble using my Arduino UNO: the modbus slave status is ''bus failure'' how do I fix this?
@leonunes8720
@leonunes8720 3 жыл бұрын
Hi Kenneth! That problem occours everytime that something is wrong with the modbus communication. That means there is some problem either with your connections (less common) or with your setup (most common issue). My first thought would be to make sure that the programm you are running on the Arduino is properly configured. Once you have done this and if the problem continue to persist I would have a look into the slave's configurations inside the codesys. You have to determine a adress based on the function code you are using on your modbus communication (It have to be supported by your library - There is some libraries out there that doesn't support all function codes) and you have to use the right Read offset for your inputs (dependant on the way you have programmed your Arduino device). After all that troubleshooting if you still have some issue, let me know.
@omarzedan1261
@omarzedan1261 3 жыл бұрын
Hi Leo the MODBUS object in device tree is unavailable how can I insert it????
@omarzedan1261
@omarzedan1261 3 жыл бұрын
I find it from device right click select add device thank you.
@leonunes8720
@leonunes8720 3 жыл бұрын
Hi! I'm Glad you found. if you need anything just let me know!
@omarzedan1261
@omarzedan1261 3 жыл бұрын
@@leonunes8720 Hi Leo I try to connect to uno device via modbut rtu but the log in need user name and password what can I do to solve this issue (I use Administrator in user name and password but It is not correct)?
@leonunes8720
@leonunes8720 3 жыл бұрын
@@omarzedan1261 Normally you don't need credentials to connect to your modbus device. There is though a couple of things you can check out to make sure your workflow is ok. First you can check if your device is properly connected and configured on the modbus (things like port, stop bit, etc.). Make sure the gateway is up and running. Look if your control win V3 service (dependant on the OS and the device you're connecting) is up and running. And last but not least, you need to have a proper program (that suports modbus communication) running on the Arduino to connect. With all that out of the way you can try again. It should not ask for credentials at this point. If you have any troubles, just let me know.
@omarzedan1261
@omarzedan1261 3 жыл бұрын
@@leonunes8720 Dear Leo 1- I use opctechs software (it is a free OPC server ) to connect with my Uno device via Modbus RTU and set the parameters (baud rate, parity stop bit, com port number, and slave address) correctly and the test pass. This means Uno IED program and communication parameters are good. 2- I am sure that codesys gateway sys try-64 (running) 3- I am sure Codesys control Win sys try-x64 is started (64 is red) but when I scan the device there is no Uno appears What can I do ? shall I add some libraries? Thanks in advance.
@2011JESUSBELEN
@2011JESUSBELEN 4 жыл бұрын
Leo, cómo vc conseguiu conectar Arduino ao codesys
@leonunes8720
@leonunes8720 3 жыл бұрын
With Modbus RTU Communication (Master/Slave) & Codesys Control Win V3. help.codesys.com/webapp/_mod_f_configurator;product=core_Modbus_Configuration_Editor;version=3.5.14.0 (link to some documentation about Modbus RTU) and store.codesys.com/codesys.html (Codesys V3 - it is free). Com comunicação Modbus RTU (Master / Slave) e Codesys Control Win V3. help.codesys.com/webapp/_mod_f_configurator;product=core_Modbus_Configuration_Editor;version=3.5.14.0 (link para alguma documentação sobre Modbus RTU) e store.codesys.com/codesys.html (Codesys V3 - é de graça).
@arduinosantacruzbolivia4601
@arduinosantacruzbolivia4601 2 жыл бұрын
Podrias hacer un video explicando la comunicacion modbus rtu gracias
@CaMo200sx
@CaMo200sx 3 жыл бұрын
Modbus RTU I assume. Does it auto reconnect when disconnected? I have a similar setup but codesys on raspberry pi usinf modbus RTU to nano. Can't get it to reconnect no matter what :(
@leonunes8720
@leonunes8720 3 жыл бұрын
Hello Cam__D! Yes it is RTU and yes it does reconnect with no problem. Try to clean the build on your device and rebuild it and see if it works. Sometimes dependant on the way you configured your system it can bring some troubles to reconnect. If with the cleaning process does not work for you lemme know, maybe we can see a different solution for you.
@gabrielmacedo4693
@gabrielmacedo4693 4 жыл бұрын
That’s some good stuff!!!
@leonunes8720
@leonunes8720 4 жыл бұрын
Thanks for your support! We have more stuff coming soon... ;)
@Time4yes
@Time4yes 2 жыл бұрын
Can we please have your arduino code, or do a video on how to establish the communication.
@leonunes8720
@leonunes8720 2 жыл бұрын
Here you go: github.com/LNentropy/Automation
@Time4yes
@Time4yes 2 жыл бұрын
@@leonunes8720 thank you so much.
@tiaportal
@tiaportal 3 жыл бұрын
awesome
OpenPLC and Arduino Part1.2 : Getting started and first project
11:38
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
This VS Code theme is threatening people?
14:26
Theo - t3․gg
Рет қаралды 30 М.
How to Upload PLC code directly to Arduino
8:29
seafox c
Рет қаралды 33 М.
RaspberryPi to PLC Codesys step by step (controling GPIO's)
11:54
Kevin Groenendijk
Рет қаралды 146 М.
HOW TO MAKE ARDUINO PLC | Arduino PLC 2.0
20:21
Kiyani's Lab
Рет қаралды 76 М.
Programing the Arduino with PLC Ladder Simulator Pro
7:43
casdata
Рет қаралды 170 М.
Raspberry Pi - Connect to CodeSys
4:47
ChunzPS
Рет қаралды 22 М.
Introduction to CODESYS and the CODESYS Simulator!
13:39
Scantime Automation & Training
Рет қаралды 28 М.
три кошака и ростелеком
0:26
Мистер Денала
Рет қаралды 2,4 МЛН
🪄Вечная спичка #diy #выживание #поход
1:00
Короче, ВИ
Рет қаралды 2,8 МЛН
Что такое дагестанский кирпичный завод!
0:53
АВТОБРОДЯГИ - ПУТЕШЕСТВИЯ НА МАШИНЕ
Рет қаралды 746 М.
Pixel 7 и 7 Pro с Face ID - лучше iPhone 14 Pro!
21:12
Rozetked
Рет қаралды 457 М.
DID YOU NOTICE ANY LAPSES IN THE VIDEO or NOT? / MARGO_FLURY
0:34
MARGO FLURY | Маргарита Дьяченкова
Рет қаралды 12 МЛН
Do YOU Understand WHAT JUST HAPPENED!? 😂 #shorts
0:57
LankyBox World
Рет қаралды 1,6 МЛН